DATA MINING
Concepts, Models, 
Methods, and Algorithms

  IEEE Press 
 445 Hoes Lane 
 Piscataway, NJ 08854 

  IEEE Press Editorial Board  
 Lajos Hanzo,  Editor in Chief  

  R. Abhari  

  J. Anderson  

  G. W. Arnold  

  F. Canavero  

  M. El - Hawary  

  B - M. Haemmerli  

  M. Lanzerotti  

  D. Jacobson  

  O. P. Malik  

  S. Nahavandi  

  T. Samad  

  G. Zobrist  

 Kenneth Moore,  Director of IEEE Book and Information Services (BIS)  

  Technical Reviewers  

 Mariofanna Milanova, Professor 
  Computer Science Department  
  University of Arkansas at Little Rock  
  Little Rock, Arkansas, USA  

 Jozef Zurada, Ph.D. 
  Professor of Computer Information Systems  
  College of Business  
  University of Louisville  
  Louisville, Kentucky, USA  

 Witold Pedrycz 
  Department of ECE  
  University of Alberta  
  Edmonton, Alberta, Canada       

DATA MINING
Concepts, Models, 
Methods, and Algorithms

SECOND EDITION

Mehmed Kantardzic
University of Louisville

IEEE PRESS

A JOHN WILEY & SONS, INC., PUBLICATION

Copyright © 2011 by Institute of Electrical and Electronics Engineers. All rights reserved.

Published by John Wiley & Sons, Inc., Hoboken, New Jersey.
Published simultaneously in Canada.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or 
by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as 
permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior 
written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to 
the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax 
(978) 750-4470, or on the web at www.copyright.com. Requests to the Publisher for permission should be 
addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, 
(201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.

Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in 
preparing this book, they make no representations or warranties with respect to the accuracy or 
completeness of the contents of this book and speciﬁ cally disclaim any implied warranties of 
merchantability or ﬁ tness for a particular purpose. No warranty may be created or extended by sales 
representatives or written sales materials. The advice and strategies contained herein may not be suitable 
for your situation. You should consult with a professional where appropriate. Neither the publisher nor 
author shall be liable for any loss of proﬁ t or any other commercial damages, including but not limited to 
special, incidental, consequential, or other damages.

For general information on our other products and services or for technical support, please contact our 
Customer Care Department within the United States at (800) 762-2974, outside the United States at (317) 
572-3993 or fax (317) 572-4002.

Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may 
not be available in electronic formats. For more information about Wiley products, visit our web site at 
www.wiley.com.

Library of Congress Cataloging-in-Publication Data:

Kantardzic, Mehmed.
  Data mining : concepts, models, methods, and algorithms / Mehmed Kantardzic. – 2nd ed.

  p. cm.

ISBN 978-0-470-89045-5 (cloth)

  1.  Data mining.  I.  Title. 
  QA76.9.D343K36 2011
  006.3'12–dc22

oBook ISBN: 978-1-118-02914-5
ePDF ISBN: 978-1-118-02912-1
ePub ISBN: 978-1-118-02913-8

Printed in the United States of America.

10  9  8  7  6  5  4  3  2  1

2011002190

 
 
 
 
  To Belma and Nermin      

CONTENTS

Preface to the Second Edition 
Preface to the First Edition 

xiii
xv

1

1  DATA-MINING CONCEPTS 
1.1 
1
Introduction 
1.2  Data-Mining Roots 
4
1.3  Data-Mining Process 
6
1.4  Large Data Sets 
9
1.5  Data Warehouses for Data Mining 
14
1.6  Business Aspects of Data Mining: Why a Data-Mining Project Fails  17
1.7  Organization of This Book 
21
1.8  Review Questions and Problems 
23
1.9  References for Further Study 
24

2  PREPARING THE DATA 

2.1  Representation of Raw Data 
2.2  Characteristics of Raw Data 
2.3  Transformation of Raw Data 
2.4  Missing Data 
2.5  Time-Dependent Data 
2.6  Outlier Analysis 
2.7  Review Questions and Problems 
2.8  References for Further Study 

3  DATA REDUCTION 

3.1  Dimensions of Large Data Sets 
3.2 
Feature Reduction 
3.3  Relief Algorithm 

26

26
31
33
36
37
41
48
51

53

54
56
66

vii

viii 

CONTENTS

PCA 

3.4  Entropy Measure for Ranking Features 
3.5 
3.6  Value Reduction 
3.7 
3.8  Case Reduction 
3.9  Review Questions and Problems 
3.10  References for Further Study 

Feature Discretization: ChiMerge Technique 

SLT 

4  LEARNING FROM DATA 
4.1  Learning Machine 
4.2 
4.3  Types of Learning Methods 
4.4  Common Learning Tasks 
4.5 
SVMs 
4.6 
kNN: Nearest Neighbor Classiﬁ er 
4.7  Model Selection versus Generalization 
4.8  Model Estimation 
4.9 
90% Accuracy: Now What? 
4.10  Review Questions and Problems 
4.11  References for Further Study 

5  STATISTICAL METHODS 
Statistical Inference 

Predictive Regression 

5.1 
5.2  Assessing Differences in Data Sets 
5.3  Bayesian Inference 
5.4 
5.5  ANOVA 
5.6  Logistic Regression 
5.7  Log-Linear Models 
5.8  LDA 
5.9  Review Questions and Problems 
5.10  References for Further Study 

6  DECISION TREES AND DECISION RULES 

6.1  Decision Trees 
6.2  C4.5 Algorithm: Generating a Decision Tree 
6.3  Unknown Attribute Values 

68
70
73
77
80
83
85

87

89
93
99
101
105
118
122
126
132
136
138

140

141
143
146
149
155
157
158
162
164
167

169

171
173
180

CONTENTS 

Pruning Decision Trees 

6.4 
6.5  C4.5 Algorithm: Generating Decision Rules 
6.6  CART Algorithm & Gini Index 
6.7  Limitations of Decision Trees and Decision Rules 
6.8  Review Questions and Problems 
6.9  References for Further Study 

7  ARTIFICIAL NEURAL NETWORKS 
7.1  Model of an Artiﬁ cial Neuron 
7.2  Architectures of ANNs 
7.3  Learning Process 
7.4  Learning Tasks Using ANNs 
7.5  Multilayer Perceptrons (MLPs) 
7.6  Competitive Networks and Competitive Learning 
7.7 
7.8  Review Questions and Problems 
7.9  References for Further Study 

SOMs 

8  ENSEMBLE LEARNING 

8.1  Ensemble-Learning Methodologies 
8.2  Combination Schemes for Multiple Learners 
8.3  Bagging and Boosting 
8.4  AdaBoost 
8.5  Review Questions and Problems 
8.6  References for Further Study 

9  CLUSTER ANALYSIS 

Partitional Clustering 
Incremental Clustering 

9.1  Clustering Concepts 
9.2 
Similarity Measures 
9.3  Agglomerative Hierarchical Clustering 
9.4 
9.5 
9.6  DBSCAN Algorithm 
9.7  BIRCH Algorithm 
9.8  Clustering Validation 
9.9  Review Questions and Problems 
9.10  References for Further Study 

ix

184
185
189
192
194
198

199

201
205
207
210
213
221
225
231
233

235

236
240
241
243
245
247

249

250
253
259
263
266
270
272
275
275
279

x 

CONTENTS

10  ASSOCIATION RULES 

Improving the Efﬁ ciency of the Apriori Algorithm 

10.1  Market-Basket Analysis 
10.2  Algorithm Apriori 
10.3  From Frequent Itemsets to Association Rules 
10.4 
10.5  FP Growth Method 
10.6  Associative-Classiﬁ cation Method 
10.7  Multidimensional Association–Rules Mining 
10.8  Review Questions and Problems 
10.9  References for Further Study 

11  WEB MINING AND TEXT MINING 

11.1  Web Mining 
11.2  Web Content, Structure, and Usage Mining 
11.3  HITS and LOGSOM Algorithms 
11.4  Mining Path–Traversal Patterns 
11.5  PageRank Algorithm 
11.6  Text Mining 
11.7  Latent Semantic Analysis (LSA) 
11.8  Review Questions and Problems 
11.9  References for Further Study 

12  ADVANCES IN DATA MINING 

12.1  Graph Mining 
12.2  Temporal Data Mining 
12.3  Spatial Data Mining (SDM) 
12.4  Distributed Data Mining (DDM) 
12.5  Correlation Does Not Imply Causality 
12.6  Privacy, Security, and Legal Aspects of Data Mining 
12.7  Review Questions and Problems 
12.8  References for Further Study 

13  GENETIC ALGORITHMS 

13.1  Fundamentals of GAs 
13.2  Optimization Using GAs 
13.3  A Simple Illustration of a GA 
13.4  Schemata 
13.5  TSP 

280

281
283
285
286
288
290
293
295
298

300

300
302
305
310
313
316
320
324
326

328

329
343
357
360
369
376
381
382

385

386
388
394
399
402

CONTENTS 

13.6  Machine Learning Using GAs 
13.7  GAs for Clustering 
13.8  Review Questions and Problems 
13.9  References for Further Study 

14  FUZZY SETS AND FUZZY LOGIC 

14.1  Fuzzy Sets 
14.2  Fuzzy-Set Operations 
14.3  Extension Principle and Fuzzy Relations 
14.4  Fuzzy Logic and Fuzzy Inference Systems 
14.5  Multifactorial Evaluation 
14.6  Extracting Fuzzy Models from Data 
14.7  Data Mining and Fuzzy Sets 
14.8  Review Questions and Problems 
14.9  References for Further Study 

15  VISUALIZATION METHODS 

15.1  Perception and Visualization 
15.2  Scientiﬁ c Visualization and 

Information Visualization 

15.3  Parallel Coordinates 
15.4  Radial Visualization 
15.5  Visualization Using Self-Organizing Maps (SOMs) 
15.6  Visualization Systems for Data Mining 
15.7  Review Questions and Problems 
15.8  References for Further Study 

Appendix A 

A.1  Data-Mining Journals 
A.2  Data-Mining Conferences 
A.3  Data-Mining Forums/Blogs 
A.4  Data Sets 
A.5  Comercially and Publicly Available Tools 
A.6  Web Site Links 

Appendix B: Data-Mining Applications 

B.1  Data Mining for Financial Data Analysis 
B.2  Data Mining for the Telecomunications Industry 

xi

404
409
411
413

414

415
420
425
429
433
436
441
443
445

447

448

449
455
458
460
462
467
468

470
470
473
477
478
480
489

496
496
499

xii 

CONTENTS

B.3  Data Mining for the Retail Industry 
B.4  Data Mining in Health Care and Biomedical Research 
B.5  Data Mining in Science and Engineering 
B.6  Pitfalls of Data Mining 

Bibliography 
Index 

501
503
506
509

510
529

 PREFACE TO 
THE SECOND EDITION     

  In the seven years that have passed since the publication of the ﬁ rst edition of this book, 
the ﬁ eld of data mining has made a good progress both in developing new methodolo-
gies and in extending the spectrum of new applications. These changes in data mining 
motivated me to update my data - mining book with a second edition. Although the core 
of material in this edition remains the same, the new version of the book attempts to 
summarize recent developments in our fast - changing ﬁ eld, presenting the state - of - the -
 art in data mining, both in academic research and in deployment in commercial applica-
tions. The most notable changes from the ﬁ rst edition are the addition of 

   •       new topics such as ensemble learning, graph mining, temporal, spatial, distrib-

uted, and privacy preserving data mining;  

   •       new algorithms such as Classiﬁ cation and Regression Trees (CART), Density -
 Based Spatial Clustering of Applications with Noise (DBSCAN), Balanced and 
Iterative  Reducing  and  Clustering  Using  Hierarchies  (BIRCH),  PageRank, 
AdaBoost,  support  vector  machines  (SVM),  Kohonen  self - organizing  maps 
(SOM), and latent semantic indexing (LSI);  

   •       more  details  on  practical  aspects  and  business  understanding  of  a  data - mining 
process,  discussing  important  problems  of  validation,  deployment,  data  under-
standing, causality, security, and privacy; and  

   •       some quantitative measures and methods for comparison of data - mining models 
such as ROC curve, lift chart, ROI chart, McNemar ’ s test, and K - fold cross vali-
dation paired t - test.    

 Keeping in mind the educational aspect of the book, many new exercises have been 
added. The bibliography and appendices have been updated to include work that has 
appeared in the last few years, as well as to reﬂ ect the change in emphasis when a new 
topic gained importance. 

 I would like to thank all my colleagues all over the world who used the ﬁ rst edition 
of the book for their classes and who sent me support, encouragement, and suggestions 
to put together this revised version. My sincere thanks are due to all my colleagues and 
students in the Data Mining Lab and Computer Science Department for their reviews 
of this edition, and numerous helpful suggestions. Special thanks go to graduate stu-
dents Brent Wenerstrom, Chamila Walgampaya, and Wael Emara for patience in proof-
reading this new edition and for useful discussions about the content of new chapters, 

xiii

xiv 

PREFACE  TO  THE  SECOND  EDITION 

numerous  corrections,  and  additions.  To  Dr.  Joung  Woo  Ryu,  who  helped  me  enor-
mously in the preparation of the ﬁ nal version of the text and all additional ﬁ gures and 
tables, I would like to express my deepest gratitude. 

 I  believe  this  book  can  serve  as  a  valuable  guide  to  the  ﬁ eld  for  undergraduate, 
graduate students, researchers, and practitioners. I hope that the wide range of topics 
covered  will  allow  readers  to  appreciate  the  extent  of  the  impact  of  data  mining  on 
modern business, science, even the entire society. 

   Mehmed Kantardzic 
  Louisville  
  July 2011         

 PREFACE TO 
THE FIRST EDITION     

  The modern technologies of computers, networks, and sensors have made data collec-
tion and organization an almost effortless task. However, the captured data need to be 
converted  into  information  and  knowledge  from  recorded  data  to  become  useful. 
Traditionally,  the  task  of  extracting  useful  information  from  recorded  data  has  been 
performed by analysts; however, the increasing volume of data in modern businesses 
and sciences calls for computer - based methods for this task. As data sets have grown 
in size and complexity, so there has been an inevitable shift away from direct hands - on 
data analysis toward indirect, automatic data analysis in which the analyst works via 
more complex and sophisticated tools. The entire process of applying computer - based 
methodology,  including  new  techniques  for  knowledge  discovery  from  data,  is  often 
called data mining. 

 The  importance  of  data  mining  arises  from  the  fact  that  the  modern  world  is  a 
data - driven world. We are surrounded by data, numerical and otherwise, which must 
be analyzed and processed to convert it into information that informs, instructs, answers, 
or  otherwise  aids  understanding  and  decision  making.  In  the  age  of  the  Internet, 
intranets, data warehouses, and data marts, the fundamental paradigms of classical data 
analysis are ripe for changes. Very large collections of data — millions or even hundred 
of  millions  of  individual  records — are  now  being  stored  into  centralized  data  ware-
houses,  allowing  analysts  to  make  use  of  powerful  data  mining  methods  to  examine 
data more comprehensively. The quantity of such data is huge and growing, the number 
of sources is effectively unlimited, and the range of areas covered is vast: industrial, 
commercial, ﬁ nancial, and scientiﬁ c activities are all generating such data. 

 The  new  discipline  of  data  mining  has  developed  especially  to  extract  valuable 
information  from  such  huge  data  sets.  In  recent  years  there  has  been  an  explosive 
growth of methods for discovering new knowledge from raw data. This is not surprising 
given the proliferation of low - cost computers (for implementing such methods in soft-
ware), low - cost sensors, communications, and database technology (for collecting and 
storing data), and highly computer - literate application experts who can pose  “ interest-
ing ”  and  “ useful ”  application problems. 

 Data - mining technology is currently a hot favorite in the hands of decision makers 
as  it  can  provide  valuable  hidden  business  and  scientiﬁ c   “ intelligence ”   from  large 
amount of historical data. It should be remembered, however, that fundamentally, data 
mining is not a new technology. The concept of extracting information and knowledge 
discovery  from  recorded  data  is  a  well - established  concept  in  scientiﬁ c  and  medical 

xv

xvi 

PREFACE  TO  THE  FIRST  EDITION 

studies. What is new is the convergence of several disciplines and corresponding tech-
nologies that have created a unique opportunity for data mining in scientiﬁ c and cor-
porate world. 

 The origin of this book was a wish to have a single introductory source to which 
we could direct students, rather than having to direct them to multiple sources. However, 
it soon became apparent that a wide interest existed, and potential readers other than 
our students would appreciate a compilation of some of the most important methods, 
tools, and algorithms in data mining. Such readers include people from a wide variety 
of  backgrounds  and  positions,  who  ﬁ nd  themselves  confronted  by  the  need  to  make 
sense of large amount of raw data. This book can be used by a wide range of readers, 
from students wishing to learn about basic processes and techniques in data mining to 
analysts and programmers who will be engaged directly in interdisciplinary teams for 
selected  data  mining  applications.  This  book  reviews  state - of - the - art  techniques  for 
analyzing enormous quantities of raw data in a high - dimensional data spaces to extract 
new information useful in decision - making processes. Most of the deﬁ nitions, classiﬁ -
cations, and explanations of the techniques covered in this book are not new, and they 
are presented in references at the end of the book. One of the author ’ s main goals was 
to concentrate on a systematic and balanced approach to all phases of a data mining 
process, and present them with sufﬁ cient illustrative examples. We expect that carefully 
prepared examples should give the reader additional arguments and guidelines in the 
selection and structuring of techniques and tools for his or her own data mining applica-
tions. A better understanding of the implementational details for most of the introduced 
techniques will help challenge the reader to build his or her own tools or to improve 
applied methods and techniques. 

 Teaching in data mining has to have emphasis on the concepts and properties of 
the  applied  methods,  rather  than  on  the  mechanical  details  of  how  to  apply  different 
data mining tools. Despite all of their attractive  “ bells and whistles, ”  computer - based 
tools  alone  will  never  provide  the  entire  solution. There  will  always  be  the  need  for 
the practitioner to make important decisions regarding how the whole process will be 
designed, and how and which tools will be employed. Obtaining a deeper understanding 
of  the  methods  and  models,  how  they  behave,  and  why  they  behave  the  way  they 
do is a prerequisite for efﬁ cient and successful application of data mining technology. 
The  premise  of  this  book  is  that  there  are  just  a  handful  of  important  principles  and 
issues in the ﬁ eld of data mining. Any researcher or practitioner in this ﬁ eld needs to 
be  aware  of  these  issues  in  order  to  successfully  apply  a  particular  methodology,  to 
understand  a  method ’ s  limitations,  or  to  develop  new  techniques.  This  book  is  an 
attempt to present and discuss such issues and principles and then describe representa-
tive and popular methods originating from statistics, machine learning, computer graph-
ics,  data  bases,  information  retrieval,  neural  networks,  fuzzy  logic,  and  evolutionary 
computation. 

 In this book, we describe how best to prepare environments for performing data 
mining and discuss approaches that have proven to be critical in revealing important 
patterns, trends, and models in large data sets. It is our expectation that once a reader 
has completed this text, he or she will be able to initiate and perform basic activities 
in all phases of a data mining process successfully and effectively. Although it is easy 

PREFACE  TO  THE  FIRST  EDITION 

xvii

to focus on the technologies, as you read through the book keep in mind that technol-
ogy alone does not provide the entire solution. One of our goals in writing this book 
was to minimize the hype associated with data mining. Rather than making false prom-
ises  that  overstep  the  bounds  of  what  can  reasonably  be  expected  from  data  mining, 
we have tried to take a more objective approach. We describe with enough information 
the processes and algorithms that are necessary to produce reliable and useful results 
in data mining applications. We do not advocate the use of any particular product or 
technique over another; the designer of data mining process has to have enough back-
ground for selection of appropriate methodologies and software tools. 

   Mehmed Kantardzic 
  Louisville  
  August 2002         

  1 

DATA - MINING CONCEPTS     

  Chapter Objectives 

     (cid:127)       Understand the need for analyses of large, complex, information - rich data sets.  
   (cid:127)       Identify the goals and primary tasks of data - mining process.  
   (cid:127)       Describe the roots of data - mining technology.  
   (cid:127)       Recognize the iterative character of a data - mining process and specify its basic 

steps.  

   (cid:127)       Explain the inﬂ uence of data quality on a data - mining process.  
   (cid:127)       Establish the relation between data warehousing and data mining.     

   1.1  

  INTRODUCTION 

 Modern science and engineering are based on using  ﬁ rst - principle models  to describe 
physical, biological, and social systems. Such an approach starts with a basic scientiﬁ c 
model, such as Newton ’ s laws of motion or Maxwell ’ s equations in electromagnetism, 
and then builds upon them various applications in mechanical engineering or electrical 
engineering.  In  this  approach,  experimental  data  are  used  to  verify  the  underlying 

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

1

 
2 

DATA-MINING  CONCEPTS

ﬁ rst - principle  models  and  to  estimate  some  of  the  parameters  that  are  difﬁ cult  or 
sometimes impossible to measure directly. However, in many domains the underlying 
ﬁ rst principles are unknown, or the systems under study are too complex to be math-
ematically formalized. With the growing use of computers, there is a great amount of 
data  being  generated  by  such  systems.  In  the  absence  of  ﬁ rst - principle  models,  such 
readily available data can be used to derive models by estimating useful relationships 
between  a  system ’ s  variables  (i.e.,  unknown  input – output  dependencies).   Thus  there 
is  currently  a  paradigm  shift  from  classical  modeling  and  analyses  based  on  ﬁ rst 
principles to developing models and the corresponding analyses directly from data.  

 We have gradually grown accustomed to the fact that there are tremendous volumes 
of  data  ﬁ lling  our  computers,  networks,  and  lives.  Government  agencies,  scientiﬁ c 
institutions,  and  businesses  have  all  dedicated  enormous  resources  to  collecting  and 
storing data. In reality, only a small amount of these data will ever be used because, in 
many cases, the volumes are simply too large to manage, or the data structures them-
selves  are  too  complicated  to  be  analyzed  effectively.  How  could  this  happen?  The 
primary reason is that the original effort to create a data set is often focused on issues 
such as storage efﬁ ciency; it does not include a plan for how the data will eventually 
be used and analyzed. 

 The need to understand large, complex, information - rich data sets is common to 
virtually all ﬁ elds of business, science, and engineering. In the business world, corpo-
rate  and  customer  data  are  becoming  recognized  as  a  strategic  asset.  The  ability  to 
extract useful knowledge hidden in these data and to act on that knowledge is becoming 
increasingly important in today ’ s competitive world. The entire process of applying a 
computer - based  methodology,  including  new  techniques,  for  discovering  knowledge 
from data is called data mining. 

 Data mining is an iterative process within which progress is deﬁ ned by discovery, 
through either automatic or manual methods. Data mining is most useful in an explor-
atory  analysis  scenario  in  which  there  are  no  predetermined  notions  about  what  will 
constitute an  “ interesting ”  outcome. Data mining is the search for new, valuable, and 
nontrivial  information  in  large  volumes  of  data.  It  is  a  cooperative  effort  of  humans 
and computers. Best results are achieved by balancing the knowledge of human experts 
in describing problems and goals with the search capabilities of computers. 

 In practice, the two primary goals of data mining tend to be  prediction  and  descrip-
tion .   Prediction   involves  using  some  variables  or  ﬁ elds  in  the  data  set  to  predict 
unknown or future values of other variables of interest.  Description , on the other hand, 
focuses  on  ﬁ nding  patterns  describing  the  data  that  can  be  interpreted  by  humans. 
Therefore, it is possible to put data - mining activities into one of two categories:

   1.      predictive data mining, which  produces the model  of the system described by 

the given data set, or  

  2.      descriptive data mining, which  produces new, nontrivial information  based on 

the available data set.    

 On  the  predictive  end  of  the  spectrum,  the  goal  of  data  mining  is  to  produce  a 
model, expressed as an executable code, which can be used to perform classiﬁ cation, 

INTRODUCTION 

3

prediction, estimation, or other similar tasks. On the descriptive end of the spectrum, 
the goal is to gain an understanding of the analyzed system by uncovering patterns and 
relationships in large data sets. The relative importance of prediction and description 
for particular data - mining applications can vary considerably. The goals of prediction 
and description are achieved by using data - mining techniques, explained later in this 
book, for the following  primary data - mining tasks :

   1.      Classiﬁ cation .       Discovery of a predictive learning function that classiﬁ es a data 

item into one of several predeﬁ ned classes.  

  2.      Regression .       Discovery of a predictive learning function that maps a data item 

to a real - value prediction variable.  

  3.      Clustering .       A common descriptive task in which one seeks to identify a ﬁ nite 

set of categories or clusters to describe the data.  

  4.      Summarization .       An  additional  descriptive  task  that  involves  methods  for 

ﬁ nding a compact description for a set (or subset) of data.  

  5.      Dependency Modeling .       Finding a local model that describes signiﬁ cant depen-
dencies between variables or between the values of a feature in a data set or in 
a part of a data set.  

  6.      Change and Deviation Detection .       Discovering the most signiﬁ cant changes in 

the data set.    

 The more formal approach, with graphical interpretation of data - mining tasks for 
complex and large data sets and illustrative examples, is given in Chapter  4 . Current 
introductory  classiﬁ cations  and  deﬁ nitions  are  given  here  only  to  give  the  reader  a 
feeling  of  the  wide  spectrum  of  problems  and  tasks  that  may  be  solved  using  data -
 mining technology. 

 The success of a data - mining engagement depends largely on the amount of energy, 
knowledge, and creativity that the designer puts into it. In essence, data mining is like 
solving a puzzle. The individual pieces of the puzzle are not complex structures in and 
of themselves. Taken as a collective whole, however, they can constitute very elaborate 
systems. As  you  try  to  unravel  these  systems,  you  will  probably  get  frustrated,  start 
forcing parts together, and generally become annoyed at the entire process, but once 
you know how to work with the pieces, you realize that it was not really that hard in 
the ﬁ rst place. The same analogy can be applied to data mining. In the beginning, the 
designers  of  the  data - mining  process  probably  did  not  know  much  about  the  data 
sources; if they did, they would most likely not be interested in performing data mining. 
Individually,  the  data  seem  simple,  complete,  and  explainable.  But  collectively,  they 
take on a whole new appearance that is intimidating and difﬁ cult to comprehend, like 
the puzzle. Therefore, being an analyst and designer in a data - mining process requires, 
besides  thorough  professional  knowledge,  creative  thinking  and  a  willingness  to  see 
problems in a different light. 

 Data mining is one of the fastest growing ﬁ elds in the computer industry. Once a 
small interest area within computer science and statistics, it has quickly expanded into 
a ﬁ eld of its own. One of the greatest strengths of data mining is reﬂ ected in its wide 

4 

DATA-MINING  CONCEPTS

range of methodologies and techniques that can be applied to a host of problem sets. 
Since data mining is a natural activity to be performed on large data sets, one of the 
largest target markets is the entire data - warehousing, data - mart, and decision - support 
community, encompassing professionals from such industries as retail, manufacturing, 
telecommunications,  health  care,  insurance,  and  transportation.  In  the  business  com-
munity, data mining can be used to discover new purchasing trends, plan investment 
strategies,  and  detect  unauthorized  expenditures  in  the  accounting  system.  It  can 
improve marketing campaigns and the outcomes can be used to provide customers with 
more focused support and attention. Data - mining techniques can be applied to problems 
of business process reengineering, in which the goal is to understand interactions and 
relationships among business practices and organizations. 

 Many law enforcement and special investigative units, whose mission is to identify 
fraudulent activities and discover crime trends, have also used data mining successfully. 
For  example,  these  methodologies  can  aid  analysts  in  the  identiﬁ cation  of  critical 
behavior  patterns,  in  the  communication  interactions  of  narcotics  organizations,  the 
monetary transactions of money laundering and insider trading operations, the move-
ments of serial killers, and the targeting of smugglers at border crossings. Data - mining 
techniques  have  also  been  employed  by  people  in  the  intelligence  community  who 
maintain many large data sources as a part of the activities relating to matters of national 
security. Appendix   B   of  the  book  gives  a  brief  overview  of  the  typical  commercial 
applications of data - mining technology today. Despite a considerable level of overhype 
and strategic misuse, data mining has not only persevered but matured and adapted for 
practical use in the business world.  

   1.2  

  DATA - MINING ROOTS 

 Looking at how different authors describe data mining, it is clear that we are far from 
a universal agreement on the deﬁ nition of data mining or even what constitutes data 
mining. Is data mining a form of statistics enriched with learning theory or is it a revo-
lutionary  new  concept?  In  our  view,  most  data - mining  problems  and  corresponding 
solutions have roots in classical data analysis. Data mining has its origins in various 
disciplines,  of  which  the  two  most  important  are   statistics   and   machine  learning . 
Statistics has its roots in mathematics; therefore, there has been an emphasis on math-
ematical rigor, a desire to establish that something is sensible on theoretical grounds 
before testing it in practice. In contrast, the machine - learning community has its origins 
very much in computer practice. This has led to a practical orientation, a willingness 
to test something out to see how well it performs, without waiting for a formal proof 
of effectiveness. 

 If the place given to mathematics and formalizations is one of the major differences 
between statistical and machine - learning approaches to data mining, another is the rela-
tive emphasis they give to models and algorithms. Modern statistics is almost entirely 
driven by the notion of a model. This is a postulated structure, or an approximation to 
a  structure,  which  could  have  led  to  the  data.  In  place  of  the  statistical  emphasis  on 

DATA-MINING  ROOTS 

5

models, machine learning tends to emphasize algorithms. This is hardly surprising; the 
very word  “ learning ”  contains the notion of a process, an implicit algorithm. 

 Basic modeling principles in data mining also have roots in  control theory,  which 
is primarily applied to engineering systems and industrial processes. The problem of 
determining a mathematical model for an unknown system (also referred to as the target 
system)  by  observing  its  input – output  data  pairs  is  generally  referred  to  as  system 
identiﬁ cation. The purposes of system identiﬁ cation are multiple and, from the stand-
point  of  data  mining,  the  most  important  are  to  predict  a  system ’ s  behavior  and  to 
explain the interaction and relationships between the variables of a system. 

 System identiﬁ cation generally involves two top - down steps:

   1.      Structure Identiﬁ cation .       In this step, we need to apply a priori knowledge about 
the target system to determine a class of models within which the search for the 
most suitable model is to be conducted. Usually this class of models is denoted 
by a parameterized function  y     =    f( u,t ), where y is the model ’ s output,  u  is an 
input vector, and  t  is a parameter vector. The determination of the function f is 
problem - dependent,  and  the  function  is  based  on  the  designer ’ s  experience, 
intuition, and the laws of nature governing the target system.  

  2.      Parameter Identiﬁ cation .       In the second step, when the structure of the model 
is  known,  all  we  need  to  do  is  apply  optimization  techniques  to  determine 
parameter  vector   t   such  that  the  resulting  model   y  *     =    f( u,t  * )  can  describe  the 
system appropriately.    

 In  general,  system  identiﬁ cation  is  not  a  one - pass  process:  Both  structure  and 
parameter identiﬁ cation need to be done repeatedly until a satisfactory model is found. 
This iterative process is represented graphically in Figure  1.1 . Typical steps in every 
iteration are as follows:

   1.      Specify  and  parameterize  a  class  of  formalized  (mathematical)  models, 

 y  *     =    f( u,t *  ), representing the system to be identiﬁ ed.    

  2.      Perform parameter identiﬁ cation to choose the parameters that best ﬁ t the avail-

able data set (the difference  y     −     y  *  is minimal).  

  3.      Conduct validation tests to see if the model identiﬁ ed responds correctly to an 
unseen data set (often referred to as test, validating or checking data set).  
  4.      Terminate the process once the results of the validation test are satisfactory.    

u               

Target system to be identified

y 

+

Mathematical model y* = f(

         y*     

u,t*)

Identification techniques

              y – y* 

     Figure 1.1.      Block diagram for parameter identiﬁ cation.  

6 

DATA-MINING  CONCEPTS

 If we do not have any a priori knowledge about the target system, then structure 
identiﬁ cation becomes difﬁ cult, and we have to select the structure by trial and error. 
While  we  know  a  great  deal  about  the  structures  of  most  engineering  systems  and 
industrial processes, in a vast majority of target systems where we apply data - mining 
techniques, these structures are totally unknown, or they are so complex that it is impos-
sible  to  obtain  an  adequate  mathematical  model.  Therefore,  new  techniques  were 
developed for parameter identiﬁ cation and they are today a part of the spectra of data -
 mining techniques. 

 Finally,  we  can  distinguish  between  how  the  terms   “ model ”   and   “ pattern ”   are 
interpreted in data mining. A model is a  “ large - scale ”  structure, perhaps summarizing 
relationships over many (sometimes all) cases, whereas a pattern is a local structure, 
satisﬁ ed by few cases or in a small region of a data space. It is also worth noting here 
that  the  word   “ pattern, ”   as  it  is  used  in  pattern  recognition,  has  a  rather  different 
meaning for data mining. In pattern recognition it refers to the vector of measurements 
characterizing a particular object, which is a point in a multidimensional data space. In 
data mining, a pattern is simply a local model. In this book we refer to n - dimensional 
vectors of data as  samples .  

   1.3  

  DATA - MINING PROCESS 

 Without  trying  to  cover  all  possible  approaches  and  all  different  views  about  data 
mining  as  a  discipline,  let  us  start  with  one  possible,  sufﬁ ciently  broad  deﬁ nition  of 
data mining:

   Data mining is a process of discovering various models, summaries, and derived values 
from a given collection of data.    

 The  word   “ process ”   is  very  important  here.  Even  in  some  professional  environ-
ments  there  is  a  belief  that  data  mining  simply  consists  of  picking  and  applying  a 
computer - based  tool  to  match  the  presented  problem  and  automatically  obtaining  a 
solution. This is a misconception based on an artiﬁ cial idealization of the world. There 
are several reasons why this is incorrect. One reason is that data mining is not simply 
a collection of isolated tools, each completely different from the other and waiting to 
be matched to the problem. A second reason lies in the notion of matching a problem 
to a technique. Only very rarely is a research question stated sufﬁ ciently precisely that 
a  single  and  simple  application  of  the  method  will  sufﬁ ce.  In  fact,  what  happens  in 
practice is that data mining becomes an iterative process. One studies the data, examines 
it using some analytic technique, decides to look at it another way, perhaps modifying 
it, and then goes back to the beginning and applies another data - analysis tool, reaching 
either better or different results. This can go around many times; each technique is used 
to probe slightly different aspects of data — to ask a slightly different question of the 
data.  What  is  essentially  being  described  here  is  a  voyage  of  discovery  that  makes 
modern data mining exciting. Still, data mining is not a random application of statistical 
and machine - learning methods and tools. It is not a random walk through the space of 

DATA-MINING  PROCESS 

7

analytic  techniques  but  a  carefully  planned  and  considered  process  of  deciding  what 
will be most useful, promising, and revealing. 

 It is important to realize that the problem of discovering or estimating dependencies 
from data or discovering totally new data is only one part of the general experimental 
procedure used by scientists, engineers, and others who apply standard steps to draw 
conclusions from the data. The general experimental procedure adapted to data - mining 
problems involves the following steps:

   1.      State the problem and formulate the hypothesis. 

 Most  data - based  modeling  studies  are  performed  in  a  particular  application 
domain. Hence, domain - speciﬁ c knowledge and experience are usually neces-
sary in order to come up with a meaningful problem statement. Unfortunately, 
many  application  studies  tend  to  focus  on  the  data - mining  technique  at  the 
expense of a clear problem statement. In this step, a modeler usually speciﬁ es 
a set of variables for the unknown dependency and, if possible, a general form 
of this dependency as an initial hypothesis. There may be several hypotheses 
formulated for a single problem at this stage. The ﬁ rst step requires the com-
bined expertise of an application domain and a data - mining model. In practice, 
it  usually  means  a  close  interaction  between  the  data - mining  expert  and  the 
application expert. In successful data - mining applications, this cooperation does 
not stop in the initial phase; it continues during the entire data - mining process.  

  2.      Collect the data. 

 This step is concerned with how the data are generated and collected. In general, 
there are two distinct possibilities. The ﬁ rst is when the data - generation process 
is under the control of an expert (modeler): this approach is known as a  designed 
experiment . The second possibility is when the expert cannot inﬂ uence the data -
 generation process: this is known as the  observational approach . An observa-
tional setting, namely, random data generation, is assumed in most data - mining 
applications. Typically, the sampling distribution is completely unknown after 
data are collected, or it is partially and implicitly given in the data - collection 
procedure.  It  is  very  important,  however,  to  understand  how  data  collection 
affects  its  theoretical  distribution,  since  such  a  priori  knowledge  can  be  very 
useful for modeling and, later, for the ﬁ nal interpretation of results. Also, it is 
important to make sure that the data used for estimating a model and the data 
used  later  for  testing  and  applying  a  model  come  from  the  same  unknown 
sampling  distribution.  If  this  is  not  the  case,  the  estimated  model  cannot  be 
successfully used in a ﬁ nal application of the results.  

  3.      Preprocess the data. 

 In the observational setting, data are usually  “ collected ”  from the existing data-
bases, data warehouses, and data marts. Data preprocessing usually includes at 
least two common tasks: 
   (a)      Outlier detection (and removal) 

 Outliers are unusual data values that are not consistent with most observa-
tions.  Commonly,  outliers  result  from  measurement  errors,  coding  and 

8 

DATA-MINING  CONCEPTS

recording errors, and, sometimes are natural, abnormal values. Such non-
representative samples can seriously affect the model produced later. There 
are two strategies for dealing with outliers: 
   (i)      Detect  and  eventually  remove  outliers  as  a  part  of  the  preprocessing 

phase, or  

  (ii)      Develop robust modeling methods that are insensitive to outliers.    

  (b)      Scaling, encoding, and selecting features 

 Data preprocessing includes several steps, such as variable scaling and dif-
ferent types of encoding. For example, one feature with the range [0, 1] and 
the other with the range [ − 100, 1000] will not have the same weight in the 
applied technique; they will also inﬂ uence the ﬁ nal data - mining results dif-
ferently. Therefore, it is recommended to scale them, and bring both features 
to the same weight for further analysis. Also, application - speciﬁ c encoding 
methods  usually  achieve  dimensionality  reduction  by  providing  a  smaller 
number of informative features for subsequent data modeling.   

 These two classes of preprocessing tasks are only illustrative examples 

of a large spectrum of preprocessing activities in a data - mining process. 

 Data - preprocessing steps should not be considered as completely inde-
pendent from other data - mining phases. In every iteration of the data - mining 
process, all activities, together, could deﬁ ne new and improved data sets for 
subsequent iterations. Generally, a good preprocessing method provides an 
optimal representation for a data - mining technique by incorporating a priori 
knowledge in the form of application - speciﬁ c scaling and encoding. More 
about these techniques and the preprocessing phase in general will be given 
in Chapters  2  and  3 , where we have functionally divided preprocessing and 
its corresponding techniques into two subphases: data preparation and data -
 dimensionality reduction.  

  4.      Estimate the model. 

 The selection and implementation of the appropriate data - mining technique is 
the  main  task  in  this  phase.  This  process  is  not  straightforward;  usually,  in 
practice, the implementation is based on several models, and selecting the best 
one is an additional task. The basic principles of learning and discovery from 
data are given in Chapter  4  of this book. Later, Chapters  5  through  13  explain 
and analyze speciﬁ c techniques that are applied to perform a successful learning 
process from data and to develop an appropriate model.  

  5.      Interpret the model and draw conclusions. 

 In most cases, data - mining models should help in decision making. Hence, such 
models need to be interpretable in order to be useful because humans are not 
likely  to  base  their  decisions  on  complex   “ black - box ”   models.  Note  that  the 
goals of accuracy of the model and accuracy of its interpretation are somewhat 
contradictory. Usually, simple models are more interpretable, but they are also 
less accurate. Modern data - mining methods are expected to yield highly accu-
rate results using high - dimensional models. The problem of interpreting these 

LARGE  DATA  SETS 

9

State the problem 

Collect the data

Preprocess the data 

Estimate the model (mine the data) 

Interpret the model and draw conclusions 

     Figure 1.2.      The data - mining process.  

models (also very important) is considered a separate task, with speciﬁ c tech-
niques to validate the results. A user does not want hundreds of pages of numeri-
cal results. He does not understand them; he cannot summarize, interpret, and 
use them for successful decision making. 

 Even though the focus of this book is on steps 3 and 4 in the data - mining 
process, we have to understand that they are just two steps in a more complex 
process. All phases, separately, and the entire data - mining process, as a whole, 
are highly iterative, as shown in Figure  1.2 . A good understanding of the whole 
process  is  important  for  any  successful  application.  No  matter  how  powerful 
the data - mining method used in step 4 is, the resulting model will not be valid 
if the data are not collected and preprocessed correctly, or if the problem for-
mulation is not meaningful.       

   1.4  

  LARGE DATA SETS 

 As we enter the age of digital information, the problem of data overload looms omi-
nously ahead. Our ability to analyze and understand massive  data sets , as we call large 
data, is far behind our ability to gather and store the data. Recent advances in comput-
ing, communications, and digital storage technologies, together with the development 
of high - throughput data - acquisition technologies, have made it possible to gather and 
store incredible volumes of data. Large databases of digital information are ubiquitous. 
Data from the neighborhood store ’ s checkout register, your bank ’ s credit card authoriza-
tion device, records in your doctor ’ s ofﬁ ce, patterns in your telephone calls, and many 
more applications generate streams of digital records archived in huge business data-
bases.  Complex  distributed  computer  systems,  communication  networks,  and  power 
systems, for example, are equipped with sensors and measurement devices that gather 

DATA-MINING  CONCEPTS

World Internet Hosts:1981–2009 (Data Source: ISC
https://www.isc.org/solutions/survey/history)

10 

s
n
o
i
l
l
i

M

s
t
s
o
H

t
e
n
r
e
t
n
I

800

700

600

500

400

300

200

100

0

81 82 83 84 85 86 87 88 89 90 91 92 93 93 94 95 96 97 98 99 00 01 02 03 04 05 06 07 08 09
Year

     Figure 1.3.      Growth of Internet hosts.  

and store a variety of data for use in monitoring, controlling, and improving their opera-
tions. Scientists are at the higher end of today ’ s data - collection machinery, using data 
from different sources — from remote - sensing platforms to microscope probing of cell 
details. Scientiﬁ c instruments can easily generate terabytes of data in a short period of 
time and store them in the computer. One example is the hundreds of terabytes of DNA, 
protein - sequence,  and  gene - expression  data  that  biological  science  researchers  have 
gathered  at  steadily  increasing  rates. The  information  age,  with  the  expansion  of  the 
Internet,  has  caused  an  exponential  growth  in  information  sources  and  also  in 
information - storage units. An illustrative example is given in Figure  1.3 , where we can 
see  a  dramatic  increase  in  Internet  hosts  in  recent  years;  these  numbers  are  directly 
proportional to the amount of data stored on the Internet.   

 It is estimated that the digital universe consumed approximately 281 exabytes in 
2007, and it is projected to be 10 times that size by 2011. (One exabyte is  ∼ 10 18  bytes 
or  1,000,000  terabytes).  Inexpensive  digital  and  video  cameras  have  made  available 
huge  archives  of  images  and  videos. The  prevalence  of  Radio  Frequency  ID  (RFID) 
tags or transponders due to their low cost and small size has resulted in the deployment 
of millions of sensors that transmit data regularly. E - mails, blogs, transaction data, and 
billions of Web pages create terabytes of new data every day. 

 There  is  a  rapidly  widening  gap  between  data - collection  and  data - organization 
capabilities and the ability to analyze the data. Current hardware and database technol-
ogy  allows  efﬁ cient,  inexpensive,  and  reliable  data  storage  and  access.  However, 
whether the context is business, medicine, science, or government, the data sets them-
selves, in their raw form, are of little direct value. What is of value is the knowledge 
that can be inferred from the data and put to use. For example, the marketing database 
of a consumer goods company may yield knowledge of the correlation between sales 

 
LARGE  DATA  SETS 

11

of  certain  items  and  certain  demographic  groupings. This  knowledge  can  be  used  to 
introduce  new,  targeted  marketing  campaigns  with  a  predictable  ﬁ nancial  return,  as 
opposed to unfocused campaigns. 

 The root of the problem is that the data size and dimensionality are too large for 
manual  analysis  and  interpretation,  or  even  for  some  semiautomatic  computer - based 
analyses. A scientist or a business manager can work effectively with a few hundred 
or  thousand  records.  Effectively  mining  millions  of  data  points,  each  described  with 
tens  or  hundreds  of  characteristics,  is  another  matter.  Imagine  the  analysis  of  tera-
bytes  of  sky - image  data  with  thousands  of  photographic  high - resolution  images 
(23,040    ×    23,040 pixels per image), or human genome databases with billions of com-
ponents. In theory,  “ big data ”  can lead to much stronger conclusions, but in practice 
many difﬁ culties arise. The business community is well aware of today ’ s information 
overload, and one analysis shows that 

  1.      61%  of  managers  believe  that  information  overload  is  present  in  their  own 

workplace,  

  2.      80% believe the situation will get worse,  
  3.      over  50%  of  the  managers  ignore  data  in  current  decision - making  processes 

because of the information overload,  

  4.      84% of managers store this information for the future; it is not used for current 

analysis, and  

  5.      60% believe that the cost of gathering information outweighs its value.    

 What are the solutions? Work harder. Yes, but how long can you keep up when the 
limits are very close? Employ an assistant. Maybe, if you can afford it. Ignore the data. 
But then you are not competitive in the market. The only real solution will be to replace 
classical  data  analysis  and  interpretation  methodologies  (both  manual  and  computer -
 based) with a new data - mining technology. 

 In theory, most data - mining methods should be happy with large data sets. Large 
data  sets  have  the  potential  to  yield  more  valuable  information.  If  data  mining  is  a 
search through a space of possibilities, then large data sets suggest many more possi-
bilities to enumerate and evaluate. The potential for increased enumeration and search 
is  counterbalanced  by  practical  limitations.  Besides  the  computational  complexity  of 
the  data - mining  algorithms  that  work  with  large  data  sets,  a  more  exhaustive  search 
may also increase the risk of ﬁ nding some low - probability solutions that evaluate well 
for the given data set, but may not meet future expectations. 

 In today ’ s multimedia - based environment that has a huge Internet infrastructure, 
different  types  of  data  are  generated  and  digitally  stored.  To  prepare  adequate  data -
 mining  methods,  we  have  to  analyze  the  basic  types  and  characteristics  of  data  sets. 
The ﬁ rst step in this analysis is systematization of data with respect to their computer 
representation and use. Data that are usually the source for a data - mining process can 
be classiﬁ ed into structured data, semi - structured data, and unstructured data. 

 Most business databases contain structured data consisting of well - deﬁ ned ﬁ elds 
with numeric or alphanumeric values, while scientiﬁ c databases may contain all three 

12 

DATA-MINING  CONCEPTS

Samples

Features

Values for a given sample and a given feature  

     Figure 1.4.      Tabular representation of a data set.  

classes. Examples of semi - structured data are electronic images of business documents, 
medical reports, executive summaries, and repair manuals. The majority of Web docu-
ments also fall into this category. An example of unstructured data is a video recorded 
by a surveillance camera in a department store. Such visual and, in general, multimedia 
recordings of events or processes of interest are currently gaining widespread popularity 
because  of  reduced  hardware  costs.  This  form  of  data  generally  requires  extensive 
processing to extract and structure the information contained in it. 

 Structured data are often referred to as traditional data, while semi - structured and 
unstructured data are lumped together as nontraditional data (also called multimedia data). 
Most of the current data - mining methods and commercial tools are applied to traditional 
data. However, the development of data - mining tools for nontraditional data, as well as 
interfaces for its transformation into structured formats, is progressing at a rapid rate. 

 The  standard  model  of  structured  data  for  data  mining  is  a  collection  of  cases. 
Potential measurements called features are speciﬁ ed, and these features are uniformly 
measured  over  many  cases.  Usually  the  representation  of  structured  data  for  data -
 mining problems is in a tabular form, or in the form of a single relation (term used in 
relational databases), where columns are features of objects stored in a table and rows 
are values of these features for speciﬁ c entities. A simpliﬁ ed graphical representation 
of a data set and its characteristics is given in Figure  1.4 . In the data - mining literature, 
we usually use the terms samples or cases for rows. Many different types of features 
(attributes or variables) — that is, ﬁ elds — in structured data records are common in data 
mining. Not all of the data - mining methods are equally good at dealing with different 
types of features.   

 There are several ways of characterizing features. One way of looking at a feature —
 or in a formalization process the more often used term is variable — is to see whether 
it  is  an   independent  variable   or  a   dependent  variable ,  that  is,  whether  or  not  it  is  a 
variable whose values depend upon values of other variables represented in a data set. 
This  is  a  model - based  approach  to  classifying  variables. All  dependent  variables  are 
accepted as outputs from the system for which we are establishing a model, and inde-
pendent variables are inputs to the system, as represented in Figure  1.5 .   

 There  are  some  additional  variables  that  inﬂ uence  system  behavior,  but  the  cor-
responding values are not available in a data set during a modeling process. The reasons 
are different: from high complexity and the cost of measurements for these features to 
a modeler ’ s not understanding the importance of some factors and their inﬂ uences on 

LARGE  DATA  SETS 

13

X 

Z 

System                                 Y 

     Figure 1.5.      A real system, besides input (independent) variables X and output (dependent) 
variables Y, often has unobserved inputs Z.  

the model. These are usually called unobserved variables, and they are the main cause 
of ambiguities and estimations in a model. 

 Today ’ s  computers  and  corresponding  software  tools  support  processing  of  data 
sets with millions of samples and hundreds of features. Large data sets, including those 
with mixed data types, are a typical initial environment for application of data - mining 
techniques. When a large amount of data is stored in a computer, one cannot rush into 
data - mining  techniques,  because  the  important  problem  of  data  quality  has  to  be 
resolved ﬁ rst. Also, it is obvious that a manual quality analysis is not possible at that 
stage. Therefore, it is necessary to prepare a data - quality analysis in the earliest phases 
of the data - mining process; usually it is a task to be undertaken in the data - preprocessing 
phase. The quality of data could limit the ability of end users to make informed deci-
sions. It has a profound effect on the image of the system and determines the corre-
sponding model that is implicitly described. Using the available data - mining techniques, 
it will be difﬁ cult to undertake major qualitative changes in an organization based on 
poor - quality data; also, to make sound new discoveries from poor - quality scientiﬁ c data 
will be almost impossible. There are a number of indicators of data quality that have 
to be taken care of in the preprocessing phase of a data - mining process:

   1.      The data should be accurate. The analyst has to check that the name is spelled 

correctly, the code is in a given range, the value is complete, and so on.  

  2.      The data should be stored according to data type. The analyst must ensure that 
the numerical value is not presented in character form, that integers are not in 
the form of real numbers, and so on.  

  3.      The data should have integrity. Updates should not be lost because of conﬂ icts 
among different users; robust backup and recovery procedures should be imple-
mented  if  they  are  not  already  part  of  the  Data  Base  Management  System 
(DBMS).  

  4.      The  data  should  be  consistent. The  form  and  the  content  should  be  the  same 

after integration of large data sets from different sources.  

  5.      The data should not be redundant. In practice, redundant data should be mini-
mized,  and  reasoned  duplication  should  be  controlled,  or  duplicated  records 
should be eliminated.  

  6.      The data should be timely. The time component of data should be recognized 
explicitly from the data or implicitly from the manner of its organization.  
  7.      The data should be well understood. Naming standards are a necessary but not 
the only condition for data to be well understood. The user should know that 
the data correspond to an established domain.  

14 

DATA-MINING  CONCEPTS

  8.      The data set should be complete. Missing data, which occurs in reality, should 
be minimized. Missing data could reduce the quality of a global model. On the 
other hand, some data - mining techniques are robust enough to support analyses 
of data sets with missing values.    

 How to work with and solve some of these problems of data quality is explained 
in greater detail in Chapters  2  and  3  where basic data - mining preprocessing methodolo-
gies are introduced. These processes are performed very often using data - warehousing 
technology, which is brieﬂ y explained in Section  1.5 .  

   1.5  

  DATA WAREHOUSES FOR DATA MINING 

 Although  the  existence  of  a  data  warehouse  is  not  a  prerequisite  for  data  mining,  in 
practice, the task of data mining, especially for some large companies, is made a lot 
easier by having access to a data warehouse. A primary goal of a data warehouse is to 
increase  the   “ intelligence ”   of  a  decision  process  and  the  knowledge  of  the  people 
involved in this process. For example, the ability of product marketing executives to 
look at multiple dimensions of a product ’ s sales performance — by region, by type of 
sales,  by  customer  demographics — may  enable  better  promotional  efforts,  increased 
production, or new decisions in product inventory and distribution. It should be noted 
that average companies work with averages. The superstars differentiate themselves by 
paying  attention  to  the  details. They  may  need  to  slice  and  dice  the  data  in  different 
ways  to  obtain  a  deeper  understanding  of  their  organization  and  to  make  possible 
improvements. To undertake these processes, users have to know what data exist, where 
they are located, and how to access them. 

 A data warehouse means different things to different people. Some deﬁ nitions are 
limited to data; others refer to people, processes, software, tools, and data. One of the 
global deﬁ nitions is the following:

   The data warehouse is a collection of integrated, subject - oriented databases designed 
to support the decision - support functions (DSF), where each unit of data is relevant to 
some moment in time .   

 Based  on  this  deﬁ nition,  a  data  warehouse  can  be  viewed  as  an  organization ’ s 
repository of data, set up to support strategic decision making. The function of the data 
warehouse is to store the historical data of an organization in an integrated manner that 
reﬂ ects  the  various  facets  of  the  organization  and  business. The  data  in  a  warehouse 
are never updated but used only to respond to queries from end users who are generally 
decision  makers. Typically,  data  warehouses  are  huge,  storing  billions  of  records.  In 
many  instances,  an  organization  may  have  several  local  or  departmental  data  ware-
houses often called data marts. A data mart is a data warehouse that has been designed 
to meet the needs of a speciﬁ c group of users. It may be large or small, depending on 
the subject area. 

DATA  WAREHOUSES  FOR  DATA  MINING 

15

 At this early time in the evolution of data warehouses, it is not surprising to ﬁ nd 
many projects ﬂ oundering because of the basic misunderstanding of what a data ware-
house is. What  does  surprise is the size and scale of these projects. Many companies 
err by not deﬁ ning exactly what a data warehouse is, the business problems it will solve, 
and the uses to which it will be put. Two aspects of a data warehouse are most important 
for a better understanding of its design process: the ﬁ rst is the speciﬁ c types (classiﬁ ca-
tion) of data stored in a data warehouse, and the second is the set of transformations 
used to prepare the data in the ﬁ nal form such that it is useful for decision making. A 
data  warehouse  includes  the  following  categories  of  data,  where  the  classiﬁ cation  is 
accommodated to the time - dependent data sources:

   1.      old detail data  
  2.      current (new) detail data  
  3.      lightly summarized data  
  4.      highly summarized data  
  5.      meta - data (the data directory or guide).    

 To prepare these ﬁ ve types of elementary or derived data in a data warehouse, the 
fundamental types of data transformation are standardized. There are four main types 
of transformations, and each has its own characteristics:

   1.      Simple Transformations .       These transformations are the building blocks of all 
other  more  complex  transformations.  This  category  includes  manipulation  of 
data that are focused on one ﬁ eld at a time, without taking into account their 
values in related ﬁ elds. Examples include changing the data type of a ﬁ eld or 
replacing an encoded ﬁ eld value with a decoded value.  

  2.      Cleansing and Scrubbing .       These transformations ensure consistent formatting 
and usage of a ﬁ eld, or of related groups of ﬁ elds. This can include a proper 
formatting of address information, for example. This class of transformations 
also includes checks for valid values in a particular ﬁ eld, usually checking the 
range or choosing from an enumerated list.  

  3.      Integration .       This  is  a  process  of  taking  operational  data  from  one  or  more 
sources and mapping them, ﬁ eld by ﬁ eld, onto a new data structure in the data 
warehouse. The common identiﬁ er problem is one of the most difﬁ cult integra-
tion issues in building a data warehouse. Essentially, this situation occurs when 
there  are  multiple  system  sources  for  the  same  entities,  and  there  is  no  clear 
way to identify those entities as the same. This is a challenging problem, and 
in many cases it cannot be solved in an automated fashion. It frequently requires 
sophisticated  algorithms  to  pair  up  probable  matches. Another  complex  data -
 integration scenario occurs when there are multiple sources for the same data 
element.  In  reality,  it  is  common  that  some  of  these  values  are  contradictory, 
and  resolving  a  conﬂ ict  is  not  a  straightforward  process.  Just  as  difﬁ cult  as 
having conﬂ icting values is having no value for a data element in a warehouse. 
All these problems and corresponding automatic or semiautomatic solutions are 
always domain - dependent.  

16 

DATA-MINING  CONCEPTS

  4.      Aggregation and Summarization .       These are methods of condensing instances 
of data found in the operational environment into fewer instances in the ware-
house  environment.  Although  the  terms  aggregation  and  summarization  are 
often used interchangeably in the literature, we believe that they do have slightly 
different meanings in the data - warehouse context. Summarization is a simple 
addition of values along one or more data dimensions, for example, adding up 
daily sales to produce monthly sales. Aggregation refers to the addition of dif-
ferent business elements into a common total; it is highly domain dependent. 
For example, aggregation is adding daily product sales and monthly consulting 
sales to get the combined, monthly total.    

 These transformations are the main reason why we prefer a warehouse as a source 
of data for a data - mining process. If the data warehouse is available, the preprocessing 
phase in data mining is signiﬁ cantly reduced, sometimes even eliminated. Do not forget 
that  this  preparation  of  data  is  the  most  time - consuming  phase. Although  the  imple-
mentation of a data warehouse is a complex task, described in many texts in great detail, 
in this text we are giving only the basic characteristics. A three - stage data - warehousing 
development process is summarized through the following basic steps:

   1.      Modeling .       In simple terms, to take the time to understand business processes, 
the information requirements of these processes, and the decisions that are cur-
rently made within processes.  

  2.      Building .       To  establish  requirements  for  tools  that  suit  the  types  of  decision 
support necessary for the targeted business process; to create a data model that 
helps further deﬁ ne information requirements; to decompose problems into data 
speciﬁ cations and the actual data store, which will, in its ﬁ nal form, represent 
either a data mart or a more comprehensive data warehouse.  

  3.      Deploying .       To implement, relatively early in the overall process, the nature of 
the  data  to  be  warehoused  and  the  various  business  intelligence  tools  to  be 
employed;  to  begin  by  training  users.  The  deploy  stage  explicitly  contains  a 
time during which users explore both the repository (to understand data that are 
and should be available) and early versions of the actual data warehouse. This 
can  lead  to  an  evolution  of  the  data  warehouse,  which  involves  adding  more 
data, extending historical periods, or returning to the build stage to expand the 
scope of the data warehouse through a data model.    

 Data mining represents one of the major applications for data warehousing, since 
the sole function of a data warehouse is to provide information to end users for decision 
support.  Unlike  other  query  tools  and  application  systems,  the  data - mining  process 
provides an end user with the capacity to extract hidden, nontrivial information. Such 
information, although more difﬁ cult to extract, can provide bigger business and scien-
tiﬁ c  advantages  and  yield  higher  returns  on   “ data - warehousing  and  data - mining ”  
investments. 

 How is data mining different from other typical applications of a data warehouse, 
such  as  structured  query  languages  (SQL)  and  online  analytical  processing  tools 

BUSINESS  ASPECTS  OF  DATA  MINING:  WHY  A  DATA-MINING  PROJECT  FAILS 

17

(OLAP), which are also applied to data warehouses? SQL is a standard relational data-
base language that is good for queries that impose some kind of constraints on data in 
the database in order to extract an answer. In contrast, data - mining methods are good 
for  queries  that  are  exploratory  in  nature,  trying  to  extract  hidden,  not  so  obvious 
information. SQL is useful when we know exactly what we are looking for, and we can 
describe  it  formally. We  will  use  data - mining  methods  when  we  know  only  vaguely 
what we are looking for. Therefore these two classes of data - warehousing applications 
are complementary. 

 OLAP  tools  and  methods  have  become  very  popular  in  recent  years  as  they  let 
users analyze data in a warehouse by providing multiple views of the data, supported 
by  advanced  graphical  representations.  In  these  views,  different  dimensions  of  data 
correspond to different business characteristics. OLAP tools make it very easy to look 
at dimensional data from any angle or to slice - and - dice it. OLAP is part of the spectrum 
of decision support tools. Traditional query and report tools describe  what  is in a data-
base.  OLAP  goes  further;  it  is  used  to  answer   why   certain  things  are  true.  The  user 
forms a hypothesis about a relationship and veriﬁ es it with a series of queries against 
the data. For example, an analyst might want to determine the factors that lead to loan 
defaults. He or she might initially hypothesize that people with low incomes are bad 
credit risks and analyze the database with OLAP to verify (or disprove) this assumption. 
In other words, the OLAP analyst generates a series of hypothetical patterns and rela-
tionships and uses queries against the database to verify them or disprove them. OLAP 
analysis is essentially a deductive process. 

 Although  OLAP  tools,  like  data - mining  tools,  provide  answers  that  are  derived 
from data, the similarity between them ends here. The derivation of answers from data 
in  OLAP  is  analogous  to  calculations  in  a  spreadsheet;  because  they  use  simple  and 
given - in - advance calculations, OLAP tools do not learn from data, nor do they create 
new knowledge. They are usually special - purpose visualization tools that can help end 
users draw their own conclusions and decisions, based on graphically condensed data. 
OLAP tools are very useful for the data - mining process; they can be a part of it, but 
they are not a substitute.  

  BUSINESS ASPECTS OF DATA MINING: WHY A DATA - MINING 

   1.6  
PROJECT FAILS 

 Data mining in various forms is becoming a major component of business operations. 
Almost  every  business  process  today  involves  some  form  of  data  mining.  Customer 
Relationship  Management,  Supply  Chain  Optimization,  Demand  Forecasting, 
Assortment Optimization, Business Intelligence, and Knowledge Management are just 
some  examples  of  business  functions  that  have  been  impacted  by  data  mining  tech-
niques. Even though data mining has been successful in becoming a major component 
of various business and scientiﬁ c processes as well as in transferring innovations from 
academic  research  into  the  business  world,  the  gap  between  the  problems  that  the 
data mining research community works on and real - world problems is still signiﬁ cant. 
Most  business  people  (marketing  managers,  sales  representatives,  quality  assurance 

18 

DATA-MINING  CONCEPTS

managers, security ofﬁ cers, and so forth) who work in industry are only interested in 
data mining insofar as it helps them do their job better. They are uninterested in techni-
cal details and do not want to be concerned with integration issues; a successful data 
mining  application  has  to  be  integrated  seamlessly  into  an  application.  Bringing  an 
algorithm  that  is  successful  in  the  laboratory  to  an  effective  data - mining  application 
with  real - world  data  in  industry  or  scientiﬁ c  community  can  be  a  very  long  process. 
Issues  like  cost  effectiveness,  manageability,  maintainability,  software  integration, 
ergonomics, and business process reengineering come into play as signiﬁ cant compo-
nents of a potential data - mining success. 

 Data  mining  in  a  business  environment  can  be  deﬁ ned  as  the  effort  to  generate 
actionable  models  through  automated  analysis  of  a  company ’ s  data.  In  order  to  be 
useful, data mining must have a ﬁ nancial justiﬁ cation. It must contribute to the central 
goals  of  the  company  by,  for  example,  reducing  costs,  increasing  proﬁ ts,  improving 
customer satisfaction, or improving the quality of service. The key is to ﬁ nd actionable 
information, or information that can be utilized in a concrete way to improve the proﬁ t-
ability of a company. For example, credit - card marketing promotions typically generate 
a response rate of about 1%. The praxis shows that this rate is improved signiﬁ cantly 
through data - mining analyses. In the telecommunications industry, a big problem is the 
concept of churn, when customers switch carriers. When dropped calls, mobility pat-
terns, and a variety of demographic data are recorded, and data - mining techniques are 
applied, churn is reduced by an estimated 61%. 

 Data mining does not replace skilled business analysts or scientists but rather gives 
them powerful new tools and the support of an interdisciplinary team to improve the 
job they are doing. Today, companies collect huge amounts of data about their custom-
ers, partners, products, and employees as well as their operational and ﬁ nancial systems. 
They hire professionals (either locally or outsourced) to create data - mining models that 
analyze  collected  data  to  help  business  analysts  create  reports  and  identify  trends  so 
that  they  can  optimize  their  channel  operations,  improve  service  quality,  and  track 
customer  proﬁ les,  ultimately  reducing  costs  and  increasing  revenue.  Still,  there  is  a 
semantic gap between the data miner who talks about regressions, accuracy, and ROC 
curves versus business analysts who talk about customer retention strategies, address-
able markets, proﬁ table advertising, and so on. Therefore, in all phases of a data - mining 
process, a core requirement is understanding, coordination, and successful cooperation 
between  all  team  members. The  best  results  in  data  mining  are  achieved  when  data -
 mining experts combine experience with organizational domain experts. While neither 
group needs to be fully proﬁ cient in the other ’ s ﬁ eld, it is certainly beneﬁ cial to have 
a basic background across areas of focus. 

 Introducing a data - mining application into an organization is essentially not very 
different from any other software application project, and the following conditions have 
to be satisﬁ ed:  

   (cid:127)       There must be a well - deﬁ ned problem.  
   (cid:127)       The data must be available.  
   (cid:127)       The data must be relevant, adequate, and clean.  

BUSINESS  ASPECTS  OF  DATA  MINING:  WHY  A  DATA-MINING  PROJECT  FAILS 

19

   (cid:127)       The problem should not be solvable by means of ordinary query or OLAP tools 

only.  

   (cid:127)       The results must be actionable.    

 A number of data mining projects have failed in the past years because one or more 

of these criteria were not met. 

 The initial phase of a data - mining process is essential from a business perspective. 
It focuses on understanding the project objectives and business requirements, and then 
converting this knowledge into a data - mining problem deﬁ nition and a preliminary plan 
designed to achieve the objectives. The ﬁ rst objective of the data miner is to understand 
thoroughly,  from  a  business  perspective,  what  the  client  really  wants  to  accomplish. 
Often the client has many competing objectives and constraints that must be properly 
balanced. The data miner ’ s goal is to uncover important factors at the beginning that 
can  inﬂ uence  the  outcome  of  the  project. A  possible  consequence  of  neglecting  this 
step is to expend a great deal of effort producing the right answers to the wrong ques-
tions. Data - mining projects do not fail because of poor or inaccurate tools or models. 
The most common pitfalls in data mining involve a lack of training, overlooking the 
importance  of  a  thorough  pre - project  assessment,  not  employing  the  guidance  of  a 
data - mining expert, and not developing a strategic project deﬁ nition adapted to what 
is  essentially  a  discovery  process.  A  lack  of  competent  assessment,  environmental 
preparation,  and  resulting  strategy  is  precisely  why  the  vast  majority  of  data - mining 
projects fail. 

 The model of a data - mining process should help to plan, work through, and reduce 
the  cost  of  any  given  project  by  detailing  procedures  to  be  performed  in  each  of 
the  phases.  The  model  of  the  process  should  provide  a  complete  description  of  all 
phases from problem speciﬁ cation to deployment of the results. Initially the team has 
to  answer  the  key  question:  What  is  the  ultimate  purpose  of  mining  these  data,  and 
more  speciﬁ cally,  what  are  the  business  goals? The  key  to  success  in  data  mining  is 
coming  up  with  a  precise  formulation  of  the  problem  the  team  is  trying  to  solve. A 
focused statement usually results in the best payoff. The knowledge of an organization ’ s 
needs or scientiﬁ c research objectives will guide the team in formulating the goal of a 
data - mining process. The prerequisite to knowledge discovery is understanding the data 
and the business. Without this deep understanding, no algorithm, regardless of sophis-
tication,  is  going  to  provide  results  in  which  a  ﬁ nal  user  should  have  conﬁ dence. 
Without this background a data miner will not be able to identify the problems he/she 
is trying to solve, or to even correctly interpret the results. To make the best use of data 
mining, we must make a clear statement of project objectives. An effective statement 
of the problem will include a way of measuring the results of a knowledge discovery 
project.  It  may  also  include  details  about  a  cost  justiﬁ cation.  Preparatory  steps  in  a 
data - mining process may also include analysis and speciﬁ cation of a type of data mining 
task, and selection of an appropriate methodology and corresponding algorithms and 
tools. When selecting a data - mining product, we have to be aware that they generally 
have  different  implementations  of  a  particular  algorithm  even  when  they  identify  it 
with the same name. Implementation differences can affect operational characteristics 

DATA-MINING  CONCEPTS

20 

)

%

(

t
r
o
f
f
E

60

50

40

30

20

10

0

 Business Objectives

Data Preparation       

Data Mining    

Consolidate Results 

     Figure 1.6.      Effort in data - mining process.  

such as memory usage and data storage, as well as performance characteristics such as 
speed and accuracy. 

 The data - understanding phase starts early in the project, and it includes important 
and time - consuming activities that could make enormous inﬂ uence on the ﬁ nal success 
of the project.  “ Get familiar with the data ”  is the phrase that requires serious analysis 
of data, including source of data, owner, organization responsible for maintaining the 
data,  cost  (if  purchased),  storage  organization,  size  in  records  and  attributes,  size 
in  bytes,  security  requirements,  restrictions  on  use,  and  privacy  requirements. Also, 
the  data  miner  should  identify  data - quality  problems  and  discover  ﬁ rst  insights  into 
the  data,  such  as  data  types,  deﬁ nitions  of  attributes,  units  of  measure,  list  or  range 
of  values,  collection  information,  time  and  space  characteristics,  and  missing  and 
invalid data. Finally, we should detect interesting subsets of data in these preliminary 
analyses to form hypotheses for hidden information. The important characteristic of a 
data - mining  process  is  the  relative  time  spent  to  complete  each  of  the  steps  in  the 
process,  and  the  data  are  counterintuitive  as  presented  in  Figure   1.6 .  Some  authors 
estimate that about 20% of the effort is spent on business objective determination, about 
60% on data preparation and understanding, and only about 10% for data mining and 
analysis.   

 Technical literature reports only on successful data - mining applications. To increase 
our  understanding  of  data - mining  techniques  and  their  limitations,  it  is  crucial  to 
analyze not only successful but also unsuccessful applications. Failures or dead ends 
also  provide  valuable  input  for  data - mining  research  and  applications.  We  have  to 
underscore  the  intensive  conﬂ icts  that  have  arisen  between  practitioners  of   “ digital 
discovery ”   and  classical,  experience - driven  human  analysts  objecting  to  these  intru-
sions  into  their  hallowed  turf.  One  good  case  study  is  that  of  U.S.  economist  Orley 
Ashenfelter, who used data - mining techniques to analyze the quality of French Bordeaux 
wines. Speciﬁ cally, he sought to relate auction prices to certain local annual weather 

 
ORGANIZATION  OF  THIS  BOOK 

21

conditions,  in  particular,  rainfall  and  summer  temperatures.  His  ﬁ nding  was  that  hot 
and dry years produced the wines most valued by buyers. Ashenfelter ’ s work and ana-
lytical  methodology  resulted  in  a  deluge  of  hostile  invective  from  established  wine -
 tasting experts and writers. There was a fear of losing a lucrative monopoly, and the 
reality that a better informed market is more difﬁ cult to manipulate on pricing. Another 
interesting study is that of U.S. baseball analyst William James, who applied analytical 
methods to predict which of the players would be most successful in the game, chal-
lenging  the  traditional  approach.  James ’ s  statistically  driven  approach  to  correlating 
early performance to mature performance in players resulted very quickly in a barrage 
of criticism and rejection of the approach. 

 There  have  been  numerous  claims  that  data - mining  techniques  have  been  used 
successfully in counter - terrorism intelligence analyses, but little has surfaced to support 
these  claims. The  idea  is  that  by  analyzing  the  characteristics  and  proﬁ les  of  known 
terrorists, it should be feasible to predict who in a sample population might also be a 
terrorist. This is actually a good example of potential pitfalls in the application of such 
analytical techniques to practical problems, as this type of proﬁ ling generates hypoth-
eses, for which there may be good substantiation. The risk is that overly zealous law 
enforcement  personnel,  again  highly  motivated  for  good  reasons,  overreact  when  an 
individual, despite his or her proﬁ le, is not a terrorist. There is enough evidence in the 
media, albeit sensationalized, to suggest this is a real risk. Only careful investigation 
can prove whether the possibility is a probability. The degree to which a data - mining 
process  supports  business  goals  or  scientiﬁ c  objectives  of  data  explorations  is  much 
more important than the algorithms and data - mining tools it uses.  

   1.7  

  ORGANIZATION OF THIS BOOK 

 After introducing the basic concepts of data mining in Chapter  1 , the rest of the book 
follows  the  basic  phases  of  a  data - mining  process.  In  Chapters   2   and   3   the  common 
characteristics of raw, large, data sets and the typical techniques of data preprocessing 
are explained. The text emphasizes the importance and inﬂ uence of these initial phases 
on the ﬁ nal success and quality of data - mining results. Chapter  2  provides basic tech-
niques  for  transforming  raw  data,  including  data  sets  with  missing  values  and  with 
time - dependent attributes. Outlier analysis is a set of important techniques for prepro-
cessing of messy data and is also explained in this chapter. Chapter  3  deals with reduc-
tion of large data sets and introduces efﬁ cient methods for reduction of features, values, 
and cases. When the data set is preprocessed and prepared for mining, a wide spectrum 
of data - mining techniques is available, and the selection of a technique or techniques 
depends on the type of application and data characteristics. In Chapter  4 , before intro-
ducing particular data - mining methods, we present the general theoretical background 
and  formalizations  applicable  for  all  mining  techniques. The  essentials  of  the  theory 
can be summarized with the question: How can one learn from data? The emphasis in 
Chapter  4  is on statistical learning theory and the different types of learning methods 
and learning tasks that may be derived from the theory. Also, problems of evaluation 
and deployment of developed models is discussed in this chapter. 

22 

DATA-MINING  CONCEPTS

 Chapters  5  to  11  give an overview of common classes of data - mining techniques. 
Predictive methods are described in Chapters  5  to  8 , while descriptive data mining is 
given  in  Chapters   9   to   11 .  Selected  statistical  inference  methods  are  presented  in 
Chapter   5 ,  including  Bayesian  classiﬁ er,  predictive  and  logistic  regression,  analysis 
of variance (ANOVA), and log - linear models. Chapter  6  summarizes the basic charac-
teristics of the C4.5 algorithm as a representative of logic - based techniques for clas-
siﬁ cation  problems.  Basic  characteristics  of  the  Classiﬁ cation  and  Regression  Trees 
(CART) approach are also introduced and compared with C4.5 methodology. Chapter 
 7   discusses  the  basic  components  of  artiﬁ cial  neural  networks  and  introduces  two 
classes: multilayer perceptrons and competitive networks as illustrative representatives 
of  a  neural - network  technology.  Practical  applications  of  a  data - mining  technology 
show that the use of several models in predictive data mining increases the quality of 
results.  This  approach  is  called  ensemble  learning,  and  basic  principles  are  given  in 
Chapter  8 . 

 Chapter  9  explains the complexity of clustering problems and introduces agglom-
erative,  partitional,  and  incremental  clustering  techniques.  Different  aspects  of  local 
modeling  in  large  data  sets  are  addressed  in  Chapter   10 ,  and  common  techniques  of 
association - rule mining are presented. Web mining and text mining are becoming one 
of the central topics for many researchers, and results of these activities are new algo-
rithms summarized in Chapter  11 . There are a number of new topics and recent trends 
in data mining that are emphasized in the last 7 years. Some of these topics, such as 
graph mining, and temporal, spatial, and distributed data mining, are covered in Chapter 
 12 . Important legal restrictions and guidelines, and security and privacy aspects of data 
mining applications are also introduced in this chapter. Most of the techniques explained 
in  Chapters   13   and   14 ,  about  genetic  algorithms  and  fuzzy  systems,  are  not  directly 
applicable in mining large data sets. Recent advances in the ﬁ eld show that these tech-
nologies, derived from soft computing, are becoming more important in better repre-
senting  and  computing  data  as  they  are  combined  with  other  techniques.  Finally, 
Chapter   15   recognizes  the  importance  of  data - mining  visualization  techniques,  espe-
cially those for representation of large - dimensional samples. 

 It is our hope that we have succeeded in producing an informative and readable 
text  supplemented  with  relevant  examples  and  illustrations. All  chapters  in  the  book 
have  a  set  of  review  problems  and  reading  lists. The  author  is  preparing  a  solutions 
manual for instructors who might use the book for undergraduate or graduate classes. 
For an in - depth understanding of the various topics covered in this book, we recom-
mend to the reader a fairly comprehensive list of references, given at the end of each 
chapter. Although most of these references are from various journals, magazines, and 
conference and workshop proceedings, it is obvious that, as data mining is becoming 
a more mature ﬁ eld, there are many more books available, covering different aspects 
of  data  mining  and  knowledge  discovery.  Finally,  the  book  has  two  appendices  with 
useful background information for practical applications of data - mining technology. In 
Appendix   A   we  provide  an  overview  of  the  most  inﬂ uential  journals,  conferences, 
forums, and blogs, as well as a list of commercially and publicly available data - mining 
tools,  while Appendix   B   presents  a  number  of  commercially  successful  data - mining 
applications. 

REVIEW  QUESTIONS  AND  PROBLEMS 

23

 The  reader  should  have  some  knowledge  of  the  basic  concepts  and  terminology 
associated with data structures and databases. In addition, some background in elemen-
tary statistics and machine learning may also be useful, but it is not necessarily required 
as the concepts and techniques discussed within the book can be utilized without deeper 
knowledge of the underlying theory. 

   1.8  

  REVIEW QUESTIONS AND PROBLEMS 

       1.     Explain why it is not possible to analyze some large data sets using classical mod-

eling techniques.   

    2.     Do  you  recognize  in  your  business  or  academic  environment  some  problems  in 
which the solution can be obtained through classiﬁ cation, regression, or deviation? 
Give examples and explain.   

    3.     Explain the differences between statistical and machine - learning approaches to the 

analysis of large data sets.   

    4.     Why are preprocessing and dimensionality reduction important phases in success-

ful data - mining applications?   

    5.     Give  examples  of  data  where  the  time  component  may  be  recognized  explicitly, 
and  other  data  where  the  time  component  is  given  implicitly  in  a  data 
organization.   

    6.     Why is it important that the data miner understand data well?   

    7.     Give examples of structured, semi - structured, and unstructured data from everyday 

situations.   

    8.     Can a set with 50,000 samples be called a large data set? Explain your answer.   

    9.     Enumerate the tasks that a data warehouse may solve as a part of the data - mining 

process.   

    10.     Many authors include OLAP tools as a standard data - mining tool. Give the argu-

ments for and against this classiﬁ cation.   

    11.     Churn is a concept originating in the telephone industry. How can the same concept 

apply to banking or to human resources?   

    12.     Describe the concept of actionable information.   

    13.     Go to the Internet and ﬁ nd a data - mining application. Report the decision problem 
involved, the type of input available, and the value contributed to the organization 
that used it.   

    14.     Determine  whether  or  not  each  of  the  following  activities  is  a  data - mining  task. 

Discuss your answer.
   (a)      Dividing the customers of a company according to their age and sex.  
  (b)      Classifying the customers of a company according to the level of their debt.  

24 

DATA-MINING  CONCEPTS

  (c)      Analyzing  the  total  sales  of  a  company  in  the  next  month  based  on  current - month 

sales.  

  (d)      Classifying  a  student  database  based  on  a  department  and  sorting  based  on  student 

identiﬁ cation numbers.  

  (e)      Determining the inﬂ uence of the number of new University of Louisville students on 

the stock market value.  

  (f)      Estimating the future stock price of a company using historical records.  
  (g)      Monitoring the heart rate of a patient with abnormalities.  
  (h)      Monitoring seismic waves for earthquake activities.  
  (i)      Extracting frequencies of a sound wave.  
  (j)      Predicting the outcome of tossing a pair of dice.         

   1.9  

  REFERENCES FOR FURTHER STUDY 

    Berson ,  A.  ,   S.   Smith  ,   K.   Thearling  ,  Building Data Mining Applications for CRM ,  McGraw - Hill , 

 New York ,  2000 .  
  The book is written primarily for the business community, explaining the competitive advan-
tage of data - mining technology. It bridges the gap between understanding this vital technology 
and  implementing  it  to  meet  a  corporation ’ s  speciﬁ c  needs.  Basic  phases  in  a  data - mining 
process are explained through real - world examples.  

    Han ,  J.  ,   M.   Kamber  ,  Data Mining: Concepts and Techniques ,  2nd edition ,  Morgan Kaufmann , 

 San Francisco, CA ,  2006 .  
  This book gives a sound understanding of data - mining principles. The primary orientation of 
the  book  is  for  database  practitioners  and  professionals,  with  emphasis  on  OLAP  and  data 
warehousing. In - depth analysis of association rules and clustering algorithms is an additional 
strength of the book. All algorithms are presented in easily understood pseudo - code, and they 
are suitable for use in real - world, large - scale data - mining projects, including advanced appli-
cations such as Web mining and text mining.  

    Hand ,   D.  ,    H.    Mannila  ,    P.    Smith  ,   Principles  of  Data  Mining ,   MIT  Press ,   Cambridge,  MA ,  

2001.   
  The book consists of three sections. The ﬁ rst, foundations, provides a tutorial overview of the 
principles underlying data - mining algorithms and their applications. The second section, data -
 mining  algorithms,  shows  how  algorithms  are  constructed  to  solve  speciﬁ c  problems  in  a 
principled  manner.  The  third  section  shows  how  all  of  the  preceding  analyses  ﬁ t  together 
when applied to real - world data - mining problems.  

    Olson   D.  ,   S.   Yong  ,  Introduction to Business Data Mining ,  McGraw - Hill ,  Englewood Cliffs, NJ , 

 2007.   
   Introduction  to  Business  Data  Mining   was  developed  to  introduce  students,  as  opposed  to 
professional practitioners or engineering students, to the fundamental concepts of data mining. 
Most importantly, this text shows readers how to gather and analyze large sets of data to gain 
useful  business  understanding.  The  authors ’   team  has  had  extensive  experience  with  the 
quantitative analysis of business as well as with data - mining analysis. They have both taught 
this material and used their own graduate students to prepare the text ’ s data - mining reports. 
Using real - world vignettes and their extensive knowledge of this new subject, David Olson 
and Yong  Shi  have  created  a  text  that  demonstrates  data - mining  processes  and  techniques 
needed for business applications.  

REFERENCES  FOR  FURTHER  STUDY 

25

    Westphal ,   C.  ,    T.    Blaxton  ,   Data  Mining  Solutions:  Methods  and  Tools  for  Solving  Real - World 

Problems ,  John Wiley ,  New York ,  1998 .  
  This introductory book gives a refreshing  “ out - of - the - box ”  approach to data mining that will 
help  the  reader  to  maximize  time  and  problem - solving  resources,  and  prepare  for  the  next 
wave of data - mining visualization techniques. An extensive coverage of data - mining software 
tools is valuable to readers who are planning to set up their own data - mining environment.   

  2 

PREPARING THE DATA     

  Chapter Objectives 

     (cid:127)       Analyze basic representations and characteristics of raw and large data sets.  
   (cid:127)       Apply different normalization techniques on numerical attributes.  
   (cid:127)       Recognize  different  techniques  for  data  preparation,  including  attribute 

transformation.  

   (cid:127)       Compare different methods for elimination of missing values.  
   (cid:127)       Construct a method for uniform representation of time - dependent data.  
   (cid:127)       Compare different techniques for outlier detection.  
   (cid:127)       Implement some data preprocessing techniques.     

   2.1  

  REPRESENTATION OF RAW DATA 

 Data samples introduced as rows in Figure  1.4  are basic components in a data - mining 
process. Every sample is described with several features, and there are different types 
of values for every feature. We will start with the two most common types:  numeric  

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

26

 
REPRESENTATION  OF  RAW  DATA 

27

and  categorical . Numeric values include real - value variables or integer variables such 
as age, speed, or length. A feature with numeric values has two important properties: 
Its  values  have  an  order  relation  (2    <    5  and  5    <    7)  and  a  distance  relation  (d  [2.3, 
4.2]    =    1.9). 

 In contrast, categorical (often called symbolic) variables have neither of these two 
relations.  The  two  values  of  a  categorical  variable  can  be  either  equal  or  not  equal: 
They  only  support  an  equality  relation  (Blue    =    Blue,  or  Red    ≠    Black).  Examples  of 
variables of this type are eye color, sex, or country of citizenship. A categorical variable 
with two values can be converted, in principle, to a numeric binary variable with two 
values:  0  or  1. A  categorical  variable  with   n   values  can  be  converted  into   n   binary 
numeric variables, namely, one binary variable for each categorical value. These coded 
categorical variables are known as  “ dummy variables ”  in statistics. For example, if the 
variable eye color has four values (black, blue, green, and brown), they can be coded 
with four binary digits. 

   Feature Value  

  Black  
  Blue  
  Green  
  Brown  

   Code  

  1000  
  0100  
  0010  
  0001  

 Another  way  of  classifying  a  variable,  based  on  its  values,  is  to  look  at  it  as  a 

continuous variable or a discrete variable. 

 Continuous variables are also known as  quantitative  or  metric variables . They are 
measured using either an interval scale or a ratio scale. Both scales allow the underlying 
variable to be deﬁ ned or measured theoretically with inﬁ nite precision. The difference 
between these two scales lies in how the 0 point is deﬁ ned in the scale. The 0 point in 
the  interval scale  is placed arbitrarily, and thus it does not indicate the complete absence 
of whatever is being measured. The best example of the interval scale is the temperature 
scale,  where  0  degrees  Fahrenheit  does  not  mean  a  total  absence  of  temperature. 
Because of the arbitrary placement of the 0 point, the ratio relation does not hold true 
for variables measured using interval scales. For example, 80 degrees Fahrenheit does 
not imply twice as much heat as 40 degrees Fahrenheit. In contrast, a  ratio scale  has 
an absolute 0 point and, consequently, the ratio relation holds true for variables mea-
sured  using  this  scale.  Quantities  such  as  height,  length,  and  salary  use  this  type  of 
scale.  Continuous  variables  are  represented  in  large  data  sets  with  values  that  are 
numbers — real or integers. 

  Discrete  variables   are  also  called  qualitative  variables.  Such  variables  are  mea-
sured,  or  their  values  deﬁ ned,  using  one  of  two  kinds  of  nonmetric  scales —  nominal  
or  ordinal . A nominal scale is an orderless scale, which uses different symbols, char-
acters,  and  numbers  to  represent  the  different  states  (values)  of  the  variable  being 
measured. An  example  of  a  nominal  variable,  a  utility,  customer - type  identiﬁ er  with 
possible values is residential, commercial, and industrial. These values can be coded 
alphabetically as A, B, and C, or numerically as 1, 2, or 3, but they do not have metric 

     
28 

PREPARING  THE  DATA

Type

Description

Examples

Nominal

Ordinal

Interval

Ratio

Uses a label or name to
distinguish one object
from another.

Uses values to provide the 
ordering of objects.

Uses units of measurement, but
the origin is arbitrary.

Zip code, ID, gender

Opinion, grades

Celsius or Fahrenheit, calendar dates

Uses units of measurement, and
the origin is not arbitrary.

Temperature in Kelvin, length,
counts, age, income

     Figure 2.1.      Variable types with examples.  

Operations

= or not =

< or >

+ or −

+, −, ∗, /

characteristics as the other numeric data have. Another example of a nominal attribute 
is the zip code ﬁ eld available in many data sets. In both examples, the numbers used 
to designate different attribute values have no particular order and no necessary relation 
to one another. 

 An  ordinal scale  consists of ordered, discrete gradations, for example, rankings. 
An  ordinal  variable  is  a  categorical  variable  for  which  an  order  relation  is  deﬁ ned 
but  not  a  distance  relation.  Some  examples  of  an  ordinal  attribute  are  the  rank  of  a 
student in a class and the gold, silver, and bronze medal positions in a sports competi-
tion.  The  ordered  scale  need  not  be  necessarily  linear;  for  example,  the  difference 
between  the  students  ranked  fourth  and  ﬁ fth  need  not  be  identical  to  the  difference 
between the students ranked 15th and 16th. All that can be established from an ordered 
scale for ordinal attributes with greater - than, equal - to, or less - than relations. Typically, 
ordinal variables encode a numeric variable onto a small set of overlapping intervals 
corresponding to the values of an ordinal variable. These ordinal variables are closely 
related  to  the  linguistic  or  fuzzy  variables  commonly  used  in  spoken  English,  for 
example, AGE (with values young, middle aged, and old) and INCOME (with values 
low - middle  class,  upper  middle  class,  and  rich).  More  examples  are  given  in  Figure 
 2.1 , and the formalization and use of fuzzy values in a data - mining process are given 
in Chapter  14 .   

 A special class of discrete variables is periodic variables. A  periodic variable  is a 
feature for which the distance relation exists, but there is no order relation. Examples 
are days of the week, days of the month, or days of the year. Monday and Tuesday, as 
the values of a feature, are closer than Monday and Thursday, but Monday can come 
before or after Friday. 

 Finally, one additional dimension of classiﬁ cation of data is based on its behavior 
with respect to time. Some data do not change with time, and we consider them  static 
data . On the other hand, there are attribute values that change with time, and this type 
of  data  we  call   dynamic   or   temporal  data . The  majority  of  data - mining  methods  are 
more suitable for static data, and special consideration and some preprocessing are often 
required to mine dynamic data. 

 Most data - mining problems arise because there are large amounts of samples with 
different types of features. Additionally, these samples are very often high dimensional, 

REPRESENTATION  OF  RAW  DATA 

29

     Figure 2.2.      High - dimensional data look conceptually like a porcupine.  

which means they have extremely large number of measurable features. This additional 
dimension of large data sets causes the problem known in data - mining terminology as 
 “ the  curse  of  dimensionality. ”  The   “ curse  of  dimensionality ”   is  produced  because  of 
the geometry of high - dimensional spaces, and these kinds of data spaces are typical for 
data - mining problems. The properties of high - dimensional spaces often appear coun-
terintuitive  because  our  experience  with  the  physical  world  is  in  a  low - dimensional 
space,  such  as  a  space  with  two  or  three  dimensions.  Conceptually,  objects  in  high -
 dimensional spaces have a larger surface area for a given volume than objects in low -
 dimensional  spaces.  For  example,  a  high - dimensional  hypercube,  if  it  could  be 
visualized, would look like a porcupine, as in Figure  2.2 . As the dimensionality grows 
larger, the edges grow longer relative to the size of the central part of the hypercube. 
Four  important  properties  of  high - dimensional  data  affect  the  interpretation  of  input 
data and data - mining results.

   1.      The size of a data set yielding the same density of data points in an n - dimensional 
space  increases  exponentially  with  dimensions.  For  example,  if  a  one -
 dimensional (1 - D) sample containing n data points has a satisfactory level of 
density, then to achieve the same density of points in k dimensions, we need n k  
data points. If integers 1 to 100 are values of 1 - D samples, where the domain 
of  the  dimension  is  [0,  100],  then  to  obtain  the  same  density  of  samples  in  a 
5 - D space we will need 100 5     =    10 10  different samples. This is true even for the 
largest real - world data sets; because of their large dimensionality, the density 
of samples is still relatively low and, very often, unsatisfactory for data - mining 
purposes.    

  2.      A  larger  radius  is  needed  to  enclose  a  fraction  of  the  data  points  in  a  high -
 dimensional space. For a given fraction of samples, it is possible to determine 
the edge length  e  of the hypercube using the formula

( ) = 1/
p d

   e p

where p is the prespeciﬁ ed fraction of samples, and d is the number of dimen-
sions. For example, if one wishes to enclose 10% of the samples (p    =    0.1)  , the 

 
30 

PREPARING  THE  DATA

0.10 

     0.32 

64.0

     Figure  2.3.      Regions  enclose  10%  of  the  samples  for  one - ,  two - ,  and  three - dimensional 
spaces.  

corresponding  edge  for  a  2 - D  space  will  be   e  2 (0.1)    =    0.32,  for  a  3 - D  space 
 e  3 (0.1)    =    0.46, and for a 10 - D space  e  10 (0.1)    =    0.80. Graphical interpretation of 
these edges is given in Figure  2.3 .   

 This  shows  that  a  very  large  neighborhood  is  required  to  capture  even  a 

small portion of the data in a high - dimensional space.  

  3.      Almost every point is closer to an edge than to another sample point in a high -
 dimensional  space.  For  a  sample  of  size  n,  the  expected  distance  D  between 
data points in a d - dimensional space is

(
   D d n

,

) =

(
1 n
/

)
1

/

d

1

2

 For  example,  for  a  2 - D  space  with  10,000  points  the  expected  distance  is 
D(2,10,000)    =    0.005  and  for  a  10 - D  space  with  the  same  number  of  sample 
points D(10,10,000)    =    0.4. Keep in mind that the maximum distance from any 
point to the edge occurs at the center of the distribution, and it is 0.5 for nor-
malized values of all dimensions.  

  4.      Almost every point is an outlier. As the dimension of the input space increases, 
the distance between the prediction point and the center of the classiﬁ ed points 
increases. For example, when d    =    10, the expected value of the prediction point 
is  3.1  standard  deviations  away  from  the  center  of  the  data  belonging  to  one 
class.  When  d    =    20,  the  distance  is  4.4  standard  deviations.  From  this  stand-
point,  the  prediction  of  every  new  point  looks  like  an  outlier  of  the  initially 
classiﬁ ed  data. This  is  illustrated  conceptually  in  Figure   2.2 ,  where  predicted 
points are mostly in the edges of the porcupine, far from the central part.    

 These rules of the  “ curse of dimensionality ”  most often have serious consequences 
when dealing with a ﬁ nite number of samples in a high - dimensional space. From prop-
erties (1) and (2) we see the difﬁ culty of making local estimates for high - dimensional 
samples;  we  need  more  and  more  samples  to  establish  the  required  data  density  for 
performing planned mining activities. Properties (3) and (4) indicate the difﬁ culty of 
predicting a response at a given point, since any new point will on average be closer 
to an edge than to the training examples in the central part. 

 One interesting experiment, performed recently by a group of students, shows the 
importance  of  understanding  curse - of - dimensionality  concepts  for  data - mining  tasks. 

  
CHARACTERISTICS  OF  RAW  DATA 

31

)
T
S
I
D
_
N
M

I

/
]
T
S
I
D
_
N
M

I

-
T
S
I
D
_
X
A
M

[
(
0
1
g
o
l

3.5

3

2.5

2

1.5

1

0.5

0

2

5

10

15

20

25

30

35

40

45

50

Number of dimensions

     Figure 2.4.      With large number of dimensions, the concept of a distance changes the meaning.  

They generated randomly 500 points for different n - dimensional spaces. The number 
of dimensions was between 2 and 50. Then, they measured in each space all distances 
between any pair of points and calculated the parameter P:

=

   P
n

log ([
10

MAX_DIST MIN_DIST MIN_DIST
n

] /

n

n

−

)

where n is the number of dimensions, and MAX - DIST and MIN - DIST are maximum 
and minimum distances in the given space, respectively. The results are presented in 
Figure   2.4 .  What  is  interesting  from  the  graph  is  that  as  the  number  of  dimensions 
increases,  the  parameter  P n   approaches  the  value  of  0.  That  means  maximum  and 
minimum distances are becoming very close in these spaces; in other words, there are 
no differences in distances between any two points in these large - dimensional spaces. 
It  is  an  experimental  conﬁ rmation  that  traditional  deﬁ nitions  of  density  and  distance 
between points, which are critical for many data - mining tasks, change their meaning. 
When  dimensionality  of  a  data  set  increases,  data  become  increasingly  sparse,  with 
mostly outliers in the space that they occupy. Therefore, we have to revisit and reevalu-
ate  traditional  concepts  from  statistics:  distance,  similarity,  data  distribution,  mean, 
standard deviation, and so on.    

   2.2  

  CHARACTERISTICS OF RAW DATA 

 All raw data sets initially prepared for data mining are often large; many are related to 
human beings and have the potential for being messy. A priori, one should expect to 
ﬁ nd missing values, distortions, misrecording, inadequate sampling, and so on in these 
initial  data  sets.  Raw  data  that  do  not  appear  to  show  any  of  these  problems  should 
immediately arouse suspicion. The only real reason for the high quality of data could 
be that the presented data have been cleaned up and preprocessed before the analyst 
sees them, as in data of a correctly designed and prepared data warehouse. 

 
 
 
 
32 

PREPARING  THE  DATA

 Let us see what the sources and implications of messy data are. First, data may be 
 missing  for a huge variety of reasons. Sometimes there are mistakes in measurements 
or recordings, but in many cases, the value is unavailable. To cope with this in a data -
 mining process, one must be able to model with the data that are presented, even with 
their values missing. We will see later that some data - mining techniques are more or 
less sensitive to missing values. If the method is robust enough, then the missing values 
are not a problem. Otherwise, it is necessary to solve the problem of missing values 
before the application of a selected data - mining technique. The second cause of messy 
data is  misrecording of data , and that is typical in large volumes of data. We have to 
have mechanisms to discover some of these  “ unusual ”  values, and in some cases, even 
to work with them to eliminate their inﬂ uence on the ﬁ nal results. Further, data may 
 not  be  from the population  they are supposed to be from. Outliers are typical examples 
here, and they require careful analysis before the analyst can decide whether they should 
be dropped from the data - mining process as anomalous or included as unusual examples 
from the population under study. 

 It is very important to examine the data thoroughly before undertaking any further 
steps  in  formal  analysis. Traditionally,  data - mining  analysts  had  to  familiarize  them-
selves  with  their  data  before  beginning  to  model  them  or  use  them  with  some  data -
 mining algorithms. However, with the large size of modern data sets, this is less feasible 
or even entirely impossible in many cases. Here we must rely on computer programs 
to check the data for us. 

 Distorted data, incorrect choice of steps in methodology, misapplication of data -
 mining tools, too idealized a model, a model that goes beyond the various sources of 
uncertainty and ambiguity in the data — all these represent possibilities for taking the 
wrong direction in a data - mining process. Therefore, data mining is not just a matter 
of simply applying a directory of tools to a given problem, but rather a process of criti-
cal assessments, exploration, testing, and evaluation. The data should be well - deﬁ ned, 
consistent, and nonvolatile in nature. The quantity of data should be large enough to 
support  data  analysis,  querying,  reporting,  and  comparisons  of  historical  data  over  a 
long period of time. 

 Many  experts  in  data  mining  will  agree  that  one  of  the  most  critical  steps  in  a 
data - mining process is the preparation and transformation of the initial data set. This 
task often receives little attention in the research literature, mostly because it is con-
sidered too application - speciﬁ c. But, in most data - mining applications, some parts of 
a  data - preparation  process  or,  sometimes,  even  the  entire  process  can  be  described 
independently of an application and a data - mining method. For some companies with 
extremely large and often distributed data sets, most of the data - preparation tasks can 
be performed during the design of the data warehouse, but many specialized transfor-
mations may be initialized only when a data - mining analysis is requested. 

 Raw  data  are  not  always  (in  our  opinion  very  seldom)  the  best  data  set  for  data 
mining.  Many  transformations  may  be  needed  to  produce  features  more  useful  for 
selected data - mining methods such as prediction or classiﬁ cation. Counting in different 
ways,  using  different  sampling  sizes,  taking  important  ratios,  varying  data - window 
sizes for time - dependent data, and including changes in moving averages (MA) may 
all contribute to better data - mining results. Do not expect that the machine will ﬁ nd the 

TRANSFORMATION  OF  RAW  DATA 

33

best set of transformations without human assistance, and do not expect that transfor-
mations used in one data - mining application are the best for another. 

 The preparation of data is sometimes dismissed as a minor topic in the data - mining 
literature and used just formally as a phase in a data - mining process. In the real world 
of data - mining applications, the situation is reversed. More effort is expended preparing 
data than applying data - mining methods. There are two central tasks for the preparation 
of data:

   1.      organizing data into a standard form that is ready for processing by data - mining 
and other computer - based tools (a standard form is a relational table), and  

  2.      preparing data sets that lead to the best data - mining performances.     

   2.3  

  TRANSFORMATION OF RAW DATA 

 We  will  review  a  few  general  types  of  transformations  of  data  that  are  not  problem -
 dependent and that may improve data - mining results. Selection of techniques and use 
in particular applications depend on types of data, amounts of data, and general char-
acteristics of the data - mining task. 

   2.3.1  

  Normalizations 

 Some  data - mining  methods,  typically  those  that  are  based  on  distance  computation 
between points in an n - dimensional space, may need normalized data for best results. 
The measured values can be scaled to a speciﬁ c range, for example, [ − 1, 1], or [0, 1]. 
If the values are not normalized, the distance measures will overweight those features 
that  have,  on  average,  larger  values. There  are  many  ways  of  normalizing  data. The 
following are three simple and effective normalization techniques. 

  Decimal Scaling.      Decimal scaling moves the decimal point but still preserves most 
of the original digit value. The typical scale maintains the values in a range of  − 1 to 1. 
The following equation describes decimal scaling, where v(i) is the value of the feature 
v for case i and v ′ (i) is a scaled value

′ ( ) = ( ) /10  
v i

   v i

k

for the smallest k such that  max  (|v ′ (i)|)    <    1. 

 First, the maximum |v ′ (i)| is found in the data set, and then the decimal point is 
moved until the new, scaled, maximum absolute value is less than 1. The divisor is then 
applied  to  all  other  v(i).  For  example,  if  the  largest  value  in  the  set  is  455,  and  the 
smallest value is  − 834, then the maximum absolute value of the feature becomes .834, 
and the divisor for all v(i) is 1000 (k    =    3).  

  Min – Max  Normalization.      Suppose  that  the  data  for  a  feature  v  are  in  a  range 
between  150  and  250.  Then,  the  previous  method  of  normalization  will  give  all 

34 

PREPARING  THE  DATA

normalized  data  between  .15  and  .25,  but  it  will  accumulate  the  values  on  a  small 
subinterval of the entire range. To obtain better distribution of values on a whole nor-
malized interval, for example, [0,1], we can use the min – max formula

′ ( ) =

   v i

(

( ) −

v i

min

[

( )
v i

]
)

/

(

max

[

( )
v i

] −

min

[

( )
v i

]
)

where the minimum and the maximum values for the feature v are computed on a set 
automatically, or they are estimated by an expert in a given domain. Similar transforma-
tion  may  be  used  for  the  normalized  interval  [ − 1,  1]. The  automatic  computation  of 
min  and  max  values  requires  one  additional  search  through  the  entire  data  set,  but 
computationally, the procedure is very simple. On the other hand, expert estimations 
of min and max values may cause unintentional accumulation of normalized values.  

  Standard  Deviation  Normalization.      Normalization  by  standard  deviation  often 
works well with distance measures but transforms the data into a form unrecognizable 
from the original data. For a feature v, the mean value  mean (v) and the standard devia-
tion  sd (v) are computed for the entire data set. Then, for a case i, the feature value is 
transformed using the equation

( ) =

   v i

(

[ ] −
v i

mean

[ ]
v

)

sd/

( )
v

 For  example,  if  the  initial  set  of  values  of  the  attribute  is  v    =    {1,  2,  3},  then 

 mean (v)    =    2,  sd (v)    =    1, and the new set of normalized values is v *     =    { − 1, 0, 1}. 

 Why  not  treat  normalization  as  an  implicit  part  of  a  data - mining  method?  The 
simple  answer  is  that  normalizations  are  useful  for  several  diverse  methods  of 
data mining. Also very important is that the normalization is not a one - time or a one -
 phase  event.  If  a  method  requires  normalized  data,  available  data  should  be  initially 
transformed  and  prepared  for  the  selected  data - mining  technique,  but  an  identical 
normalization must be applied in all other phases of data - mining and with all new and 
future  data.  Therefore,  the  normalization  parameters  must  be  saved  along  with  a 
solution.   

   2.3.2  

  Data Smoothing 

 A numeric feature, y, may range over many distinct values, sometimes as many as the 
number of training cases. For many data - mining techniques, minor differences among 
these values are not signiﬁ cant and may degrade the performance of the method and 
the ﬁ nal results. They may be considered as random variations of the same underlying 
value. Hence, it can be advantageous sometimes to smooth the values of the variable. 
 Many simple smoothers can be speciﬁ ed that average similar measured values. For 
example, if the values are real numbers with several decimal places, rounding the values 
to  the  given  precision  could  be  a  simple  smoothing  algorithm  for  a  large  number  of 
samples, where each sample has its own real value. If the set of values for the given 
feature  F  is  {0.93,  1.01,  1.001,  3.02,  2.99,  5.03,  5.01,  4.98},  then  it  is  obvious  that 
smoothed values will be F smoothed     =    {1.0, 1.0, 1.0, 3.0, 3.0, 5.0, 5.0, 5.0}. This simple 

 
  
TRANSFORMATION  OF  RAW  DATA 

35

transformation is performed without losing any quality in a data set, and, at the same 
time, it reduces the number of different real values for the feature to only three. 

 Some of these smoothing algorithms are more complex, and they are explained in 
Section  3.2 . Reducing the number of distinct values for a feature means reducing the 
dimensionality  of  the  data  space  at  the  same  time.  Reduced  values  are  particularly 
useful  for  logic - based  methods  of  data  mining,  as  will  be  explained  in  Chapter   6 . 
Smoothers in this case can be used to discretize continuous features into a set of features 
with binary true – false values.  

   2.3.3  

  Differences and Ratios 

 Even  small  changes  to  features  can  produce  signiﬁ cant  improvement  in  data - mining 
performances. The effects of relatively minor transformations of input or output fea-
tures are particularly important in the speciﬁ cation of the data - mining goals. Two types 
of  simple  transformations,   differences   and   ratios,   could  make  improvements  in  goal 
speciﬁ cation, especially if they are applied to the output features. 

 These transformations sometimes produce better results than the simple, initial goal 
of predicting a number. In one application, for example, the objective is to move the 
controls for a manufacturing process to an optimal setting. But instead of optimizing 
the absolute magnitude speciﬁ cation for the output s(t    +    1), it is more effective to set 
the  goal  of  a  relative  move  from  current  value  to  a  ﬁ nal  optimal  s(t    +    1)    −    s(t). The 
range of values for the relative moves is generally much smaller than the range of values 
for  the  absolute  control  setting. Therefore,  for  many  data - mining  methods,  a  smaller 
number of alternatives will improve the efﬁ ciency of the algorithm and will very often 
give better results. 

 Ratios are the second simple transformation of a target or output features. Using 
s(t    +    1)/s(t)  as  the  output  of  a  data - mining  process  instead  of  absolute  value  s(t    +    1) 
means that the level of increase or decrease in the values of a feature may also improve 
the performances of the entire mining process. 

 Differences  and  ratio  transformations  are  not  only  useful  for  output  features  but 
also for inputs. They can be used as changes in time for one feature or as a composition 
of different input features. For example, in many medical data sets, there are two fea-
tures of a patient (height and weight) that are taken as input parameters for different 
diagnostic analyses. Many applications show that better diagnostic results are obtained 
when an initial transformation is performed using a new feature called the body mass 
index (BMI), which is the weighted ratio between weight and height. This composite 
feature  is  better  than  the  initial  parameters  to  describe  some  of  the  characteristics  of 
the patient, such as whether or not the patient is overweight. 

 Logical transformations can also be used to compose new features. For example, 
sometimes it is useful to generate a new feature that will determine the logical value 
of the relation A    >    B between existing features A and B. But there are no universally 
best data - transformation methods. The lesson to be learned is that a major role remains 
for human insight while deﬁ ning the problem. Attention should be paid to composing 
features, because relatively simple transformations can sometimes be far more effective 
for the ﬁ nal performance than switching to some other techniques of data mining.   

36 

PREPARING  THE  DATA

   2.4  

  MISSING DATA 

 For many real - world applications of data mining, even when there are huge amounts 
of  data,  the  subset  of  cases  with  complete  data  may  be  relatively  small.  Available 
samples  and  also  future  cases  may  have  values  missing.  Some  of  the  data - mining 
methods accept missing values and satisfactorily process data to reach a ﬁ nal conclu-
sion. Other methods require that all values be available. An obvious question is whether 
these missing values can be ﬁ lled in during data preparation, prior to the application 
of the data - mining methods. The simplest solution for this problem is the reduction of 
the  data  set  and  the  elimination  of  all  samples  with  missing  values. That  is  possible 
when large data sets are available, and missing values occur only in a small percentage 
of samples. If we do not drop the samples with missing values, then we have to ﬁ nd 
values for them. What are the practical solutions? 

 First, a data miner, together with the domain expert, can manually examine samples 
that  have  no  values  and  enter  a  reasonable,  probable,  or  expected  value,  based  on  a 
domain experience. The method is straightforward for small numbers of missing values 
and relatively small data sets. But, if there is  no obvious or plausible value for  each 
case, the miner is introducing noise into the data set by manually generating a value. 
 The  second  approach  gives  an  even  simpler  solution  for  elimination  of  missing 
values.  It  is  based  on  a  formal,  often  automatic  replacement  of  missing  values  with 
some constants, such as:

   1.      replace all missing values with a single global constant (a selection of a global 

constant is highly application dependent);  

  2.      replace a missing value with its feature mean; and  
  3.      replace a missing value with its feature mean for the given class (this approach 
is  possible  only  for  classiﬁ cation  problems  where  samples  are  classiﬁ ed  in 
advance).    

 These simple solutions are tempting. Their main ﬂ aw is that the substituted value 
is not the correct value. By replacing the missing value with a constant or changing the 
values for a few different features, the data are biased. The replaced value (values) will 
homogenize the cases with missing values into a uniform subset directed toward the 
class with the most missing values (an artiﬁ cial class). If missing values are replaced 
with a single global constant for all features, an unknown value may be implicitly made 
into a positive factor that is not objectively justiﬁ ed. 

 One possible interpretation of missing values is that they are  “ don ’ t care ”  values. 
In  other  words,  we  suppose  that  these  values  do  not  have  any  inﬂ uence  on  the  ﬁ nal 
data - mining results. In that case, a sample with the missing value may be extended to 
the set of artiﬁ cial samples, where, for each new sample, the missing value is replaced 
with one of the possible feature values of a given domain. Although this interpretation 
may look more natural, the problem with this approach is the combinatorial explosion 
of artiﬁ cial samples. For example, if one 3 - D sample X is given as X    =    {1, ?, 3}, where 
the second feature ’ s value is missing, the process will generate ﬁ ve artiﬁ cial samples 
for the feature domain [0, 1, 2, 3, 4]

TIME-DEPENDENT  DATA 

37

   X
1

= {

}
,
1 0 3
,

,

X

2

= {

}
,
1 1 3
,

,

X

3

= {

}
,
1 2 3
,

,

X

4

= {

}
,
1 3 3
,

,

and X

5

= {

}
,
1 4 3
,

 Finally,  the  data  miner  can  generate  a  predictive  model  to  predict  each  of  the 
missing values. For example, if three features A, B, and C are given for each sample, 
then based on samples that have all three values as a training set, the data miner can 
generate a model of correlation between features. Different techniques, such as regres-
sion, Bayesian formalism, clustering, or decision - tree induction, may be used depend-
ing on data types (all these techniques are explained later in Chapters  5 ,  6 , and  7 ). Once 
you have a trained model, you can present a new sample that has a value missing and 
generate a  “ predictive ”  value. For example, if values for features A and B are given, 
the model generates the value for the feature C. If a missing value is highly correlated 
with the other known features, this process will generate the best value for that feature. 
Of course, if you can always predict a missing value with certainty, this means that the 
feature is redundant in the data set and not necessary in further data - mining analyses. 
In  real - world  applications,  you  should  expect  an  imperfect  correlation  between  the 
feature with the missing value and other features. Therefore, all automatic methods ﬁ ll 
in values that may not be correct. Such automatic methods are among the most popular 
in the data - mining community. In comparison to the other methods, they use the most 
information from the present data to predict missing values. 

 In general, it is speculative and often misleading to replace missing values using 
a simple, artiﬁ cial schema of data preparation. It is best to generate multiple solutions 
of  data  mining  with  and  without  features  that  have  missing  values  and  then  analyze 
and interpret them.  

   2.5  

  TIME - DEPENDENT DATA 

 Practical data - mining applications will range from those having strong time - dependent 
relationships  to  those  with  loose  or  no  time  relationships.  Real - world  problems  with 
time dependencies require special preparation and transformation of data, which are, 
in  many  cases,  critical  for  successful  data  mining.  We  will  start  with  the  simplest 
case — a single feature measured over time. This feature has a series of values over ﬁ xed 
time units. For example, a temperature reading could be measured every hour, or the 
sales of a product could be recorded every day. This is the classical univariate time -
 series problem, where it is expected that the value of the variable X at a given time can 
be related to previous values. Because the time series is measured at ﬁ xed units of time, 
the series of values can be expressed as

{
= ( )
1
   X t

,

( )
2

,

t

( )
3

,

t

,…

}
( )
t n

where t(n) is the most recent value. 

 For many time - series problems, the goal is to forecast t(n    +    1) from previous values 
of the feature, where these values are directly related to the predicted value. One of the 
most important steps in the preprocessing of raw, time - dependent data is the speciﬁ ca-
tion of a window or a time lag. This is the number of previous values that inﬂ uence 

  
 
38 

PREPARING  THE  DATA

the prediction. Every window represents one sample of data for further analysis. For 
example, if the time series consists of the 11 measurements

{ 0
= ( )

   X t

,

( )
1

,

t

( )
2

,

t

( )
3

,

t

( )
4

,

t

( )
5

,

t

( )
6

,

t

( )
7

,

t

( )
8

,

t

( )
9

,

t

(
10

}}  
)

t

and if the window for analysis of the time - series is ﬁ ve, then it is possible to reorganize 
the input data into a tabular form with six samples, which is more convenient (standard-
ized)  for  the  application  of  data - mining  techniques.  Transformed  data  are  given  in 
Table  2.1 .   

 The  best  time  lag  must  be  determined  by  the  usual  evaluation  techniques  for  a 
varying complexity measure using independent test data. Instead of preparing the data 
once  and  turning  them  over  to  the  data - mining  programs  for  prediction,  additional 
iterations  of  data  preparation  have  to  be  performed. Although  the  typical  goal  is  to 
predict the next value in time, in some applications, the goal can be modiﬁ ed to predict 
values  in  the  future,  several  time  units  in  advance.  More  formally,  given  the  time -
 dependent values t(n    −    i),    . . .    , t(n), it is necessary to predict the value t(n    +    j). In the 
previous example, taking j    =    3, the new samples are given in Table  2.2 .   

 In general, the further in the future, the more difﬁ cult and less reliable is the fore-
cast. The goal for a time series can easily be changed from predicting the next value 
in  the  time  series  to  classiﬁ cation  into  one  of  predeﬁ ned  categories.  From  a  data -

  TA BLE 2.1.     Transformation of Time Series to Standard 
Tabular Form (Window    =    5) 

   Sample  

   WINDOW  

   Next Value  

   M1  

   M2  

   M3  

   M4  

   M5  

  t(0)  
  t(1)  
  t(2)  
  t(3)  
  t(4)  
  t(5)  

  t(1)  
  t(2)  
  t(3)  
  t(4)  
  t(5)  
  t(6)  

  t(2)  
  t(3)  
  t(4)  
  t(5)  
  t(6)  
  t(7)  

  t(3)  
  t(4)  
  t(5)  
  t(6)  
  t(7)  
  t(8)  

  t(4)  
  t(5)  
  t(6)  
  t(7)  
  t(8)  
  t(9)  

  t(5)  
  t(6)  
  t(7)  
  t(8)  
  t(9)  
  t(10)  

  1  
  2  
  3  
  4  
  5  
  6  

  TA BLE 2.2.     Time - Series Samples in Standard Tabular Form 
(Window    =    5) with Postponed Predictions (j    =    3) 

   Sample  

   WINDOW  

   Netxt Value  

   M1  

   M2  

   M3  

   M4  

   M5  

  1  
  2  
  3  
  4  

  t(0)  
  t(1)  
  t(2)  
  t(3)  

  t(1)  
  t(2)  
  t(3)  
  t(4)  

  t(2)  
  t(3)  
  t(4)  
  t(5)  

  t(3)  
  t(4)  
  t(5)  
  t(6)  

  t(4)  
  t(5)  
  t(6)  
  t(7)  

  t(7)  
  t(8)  
  t(9)  
  t(10)  

TIME-DEPENDENT  DATA 

39

 preparation  perspective,  there  are  no  signiﬁ cant  changes.  For  example,  instead  of 
predicted  output  value  t(i    +    1),  the  new  classiﬁ ed  output  will  be  binary:   T   for 
t(i    +    1)    ≥    threshold value and  F  for t(i    +    1)    <    threshold value. 

 The time units can be relatively small, enlarging the number of artiﬁ cial features 
in a tabular representation of time series for the same time period. The resulting problem 
of high dimensionality is the price paid for precision in the standard representation of 
the time - series data. 

 In  practice,  many  older  values  of  a  feature  may  be  historical  relics  that  are  no 
longer relevant and should not be used for analysis. Therefore, for many business and 
social  applications,  new  trends  can  make  old  data  less  reliable  and  less  useful.  This 
leads to a greater emphasis on recent data, possibly discarding the oldest portions of 
the time series. Now we are talking not only of a ﬁ xed window for the presentation of 
a time series but also on a ﬁ xed size for the data set. Only the n most recent cases are 
used for analysis, and, even then, they may not be given equal weight. These decisions 
must  be  given  careful  attention  and  are  somewhat  dependent  on  knowledge  of  the 
application  and  past  experience.  For  example,  using  20 - year - old  data  about  cancer 
patients will not give the correct picture about the chances of survival today. 

 Besides  standard  tabular  representation  of  time  series,  sometimes  it  is  necessary 
to additionally preprocess raw data and summarize their characteristics before applica-
tion  of  data - mining  techniques.  Many  times  it  is  better  to  predict  the  difference 
t(n    +    1)    −    t(n) instead of the absolute value t(n    +    1) as the output. Also, using a ratio, 
t(n    +    1)/t(n),  which  indicates  the  percentage  of  changes,  can  sometimes  give  better 
prediction results. These transformations of the predicted values of the output are par-
ticularly  useful  for  logic - based  data - mining  methods  such  as  decision  trees  or  rules. 
When differences or ratios are used to specify the goal, features measuring differences 
or ratios for input features may also be advantageous. 

 Time - dependent cases are speciﬁ ed in terms of a goal and a time lag or a window 
of size m. One way of summarizing features in the data set is to average them, produc-
ing MA. A single average summarizes the most recent m feature values for each case, 
and for each increment in time, its value is

(
   MA i m

,

) =

i

∑1
/
m

( )
j

t

= − +
1
i m

j

 Knowledge of the application can aid in specifying reasonable sizes for m. Error 
estimation  should  validate  these  choices.  MA  weight  all  time  points  equally  in  the 
average. Typical examples are MA in the stock market, such as 200 days MA for the 
DOW or NASDAQ. The objective is to smooth neighboring time points by an MA to 
reduce the random variation and noise components

) = ( ) =
   MA i m t i mean i

,(

( ) +

error

 Another type of average is an  exponential moving average  (EMA) that gives more 

weight to the most recent time periods. It is described recursively as

  
  
40 

PREPARING  THE  DATA

   EMA i  m p* t i

,

) =

(

( ) + −(
1
, 1(

   EMA  i

(
) ∗
p EMA  i
) = ( )  
t i

−

1
,

 m

−

)
1  

where p is a value between 0 and 1. For example, if p    =    0.5, the most recent value t(i) 
is equally weighted with the computation for all previous values in the window, where 
the computation begins with averaging the ﬁ rst two values in the series. The computa-
tion starts with the following two equations:

(
   EMA  i
,
) =

0 5
.

) =

2
( ) +
t i

3

(
   EMA i
,

( ) +

0 5
.

 t i
[
0 5 0 5
.
.

.
0 5
−(
t i

−(
t i
) +
1

)  
1

0 5
.

−(
t i

)

]   

2

 As usual, application knowledge or empirical validation determines the value of 
p. The exponential MA has performed very well for many business - related applications, 
usually producing results superior to the MA. 

 An MA summarizes the recent past, but spotting a change in the trend of the data 
may additionally improve forecasting performances. Characteristics of a trend can be 
measured by composing features that compare recent measurements with those of the 
more distant past. Three simple comparative features are 

  1.      t(i)    −    MA(i, m), the difference between the current value and an MA,  
  2.      MA(i,  m)    −    MA(i    −    k,  m),  the  difference  between  two  MAs,  usually  of  the 

same window size, and  

  3.      t(i)/MA(i, m), the ratio between the current value and an MA, which may be 

preferable for some applications.    

 In general, the main components of the summarizing features for a time series are 

  1.      current values,  
  2.      smoothed values using MA, and  
  3.      derived trends, differences, and ratios.    

 The immediate extension of a univariate time series is to a multivariate one. Instead 
of having a single measured value at time i, t(i), multiple measurements t[a(i), b(j)] are 
taken at the same time. There are no extra steps in data preparation for the multivariate 
time series. Each series can be transformed into features, and the values of the features 
at each distinct time A(i) are merged into a sample i. The resultant transformations yield 
a standard tabular form of data such as the table given in Figure  2.5 .   

 While some data - mining problems are characterized by a single time series, hybrid 
applications  are  more  frequent  in  real - world  problems,  having  both  time  series  and 
features that are not dependent on time. In these cases, standard procedures for time -
 dependent transformation and summarization of attributes are performed. High dimen-
sions of data generated during these transformations can be reduced through the next 
phase of a data - mining process: data reduction. 

OUTLIER  ANALYSIS 

41

Time

1
2
3
4
5
6

a

5
8
4
9
10
12

(a)

b 

117
113
116
118
119
120

Sample    a(n−2) a(n−1)   a(n)    b(n−2)  b(n−1)   b(n)

1
2
3
4

5
8
4
9

8
4
9
10

4
9
8
12

117
113
116
118

113
116
118
119

116
118
119
120

(b)

     Figure  2.5.      Tabulation  of  time - dependent  features.  (a)  Initial  time - dependent  data; 
(b) samples prepared for data mining with time window    =    3.  

 Some data sets do not include a time component explicitly, but the entire analysis 
is performed in the time domain (typically based on several dates that are attributes of 
described entities). One very important class of data belonging to this type is  survival 
data .  Survival  data  are  data  concerning  how  long  it  takes  for  a  particular  event  to 
happen. In many medical applications, the event is the death of a patient, and therefore 
we analyze the patient ’ s survival time. In industrial applications, the event is often the 
failure of a component in a machine. Thus, the output in these sorts of problems is the 
survival time. The inputs are the patient ’ s records in medical applications and charac-
teristics  of  the  machine  component  in  industrial  applications.  There  are  two  main 
characteristics  of  survival  data  that  make  them  different  from  the  data  in  other  data -
 mining problems. The ﬁ rst characteristic is called  censoring . In many studies, the event 
has not happened by the end of the study period. So, for some patients in a medical 
trial, we may know that the patient was still alive after 5 years, but do not know when 
the patient died. This sort of observation would be called a censored observation. If the 
output  is  censored,  we  do  not  know  the  value  of  the  output,  but  we  do  have  some 
information about it. The second characteristic of survival data is that the input values 
are  time - dependent . Since collecting data entails waiting until the event happens, it is 
possible for the inputs to change its value during the waiting period. If a patient stops 
smoking or starts with a new drug during the study, it is important to know what data 
to  include  into  the  study  and  how  to  represent  these  changes  in  time.  Data - mining 
analysis for these types of problems concentrates on the survivor function or the hazard 
function. The survivor function is the probability of the survival time being greater than 
the time t. The hazard function indicates how likely a failure (of the industrial compo-
nent) is at time t, given that a failure has not occurred before time t.  

   2.6  

  OUTLIER ANALYSIS 

 Very often in large data sets, there exist samples that do not comply with the general 
behavior of the data model. Such samples, which are signiﬁ cantly different or incon-
sistent  with  the  remaining  set  of  data,  are  called  outliers.  Outliers  can  be  caused  by 
measurement error, or they may be the result of inherent data variability. If, for example, 
the display of a person ’ s age in the database is  − 1, the value is obviously not correct, 
and the error could have been caused by a default setting of the ﬁ eld  “ unrecorded age ”  

42 

PREPARING  THE  DATA

in the computer program. On the other hand, if in the database the number of children 
for one person is 25, this datum is unusual and has to be checked. The value could be 
a typographical error, or it could be correct and represent real variability for the given 
attribute. 

 Many data - mining algorithms try to minimize the inﬂ uence of outliers on the ﬁ nal 
model, or to eliminate them in the preprocessing phases. Outlier detection methodolo-
gies have been used to detect and, where appropriate, remove anomalous observations 
from data. Outliers arise due to mechanical faults, changes in system behavior, fraudu-
lent  behavior,  human  error,  instrument  error,  or  simply  through  natural  deviations  in 
populations. Their detection can identify system faults and fraud before they escalate 
with  potentially  catastrophic  consequences.  The  literature  describes  the  ﬁ eld  with 
various names, including outlier detection, novelty detection, anomaly detection, noise 
detection, deviation detection, or exception mining. Efﬁ cient detection of such outliers 
reduces the risk of making poor decisions based on erroneous data, and aids in identify-
ing, preventing, and repairing the effects of malicious or faulty behavior. Additionally, 
many data - mining techniques may not work well in the presence of outliers. Outliers 
may introduce skewed distributions or complexity into models of the data, which may 
make it difﬁ cult, if not impossible, to ﬁ t an accurate model to the data in a computa-
tionally feasible manner. 

 The  data - mining  analyst  has  to  be  very  careful  in  the  automatic  elimination  of 
outliers because if the data are correct, that could result in the loss of important hidden 
information. Some data - mining applications are focused on outlier detection, and it is 
the essential result of a data analysis. The process consists of two main steps: (1) Build 
a proﬁ le of the  “ normal ”  behavior, and (2) use the  “ normal ”  proﬁ le to detect outliers. 
The  proﬁ le  can  be  patterns  or  summary  statistics  for  the  overall  population.  The 
assumption is that there are considerably more  “ normal ”  observations than  “ abnormal ”  —
 outliers/anomalies  in  the  data.  For  example,  when  detecting  fraudulent  credit  card 
transactions  at  a  bank,  the  outliers  are  typical  examples  that  may  indicate  fraudulent 
activity, and the entire data - mining process is concentrated on their detection. But, in 
many of the other data - mining applications, especially if they are supported with large 
data  sets,  outliers  are  not  very  useful,  and  they  are  more  the  result  of  errors  in  data 
collection than a characteristic of a data set. 

 Outlier  detection  and  potential  removal  from  a  data  set  can  be  described  as  a 
process of the selection of k out of n samples that are considerably dissimilar, excep-
tional,  or  inconsistent  with  respect  to  the  remaining  data  (k    <<    n).  The  problem  of 
deﬁ ning outliers is nontrivial, especially in multidimensional samples. The main types 
of outlier detection schemes are 

   •       graphical or visualization techniques,  
   •       statistical - based techniques,  
   •       distance - based techniques, and  
   •       model - based techniques.    

 Examples of visualization methods include Boxplot (1 - D), Scatter plot (2 - D), and 
Spin plot (3 - D), and they will be explained in the following chapters. Data visualization 

OUTLIER  ANALYSIS 

43

y
t
i
l
i
b
a
b
o
r
P

2.5%

95%
of
Area

95% Confidence
Limits

Data Values

2.5%

     Figure 2.6.      Outliers for univariate data based on mean value and standard deviation  .  

y

x

     Figure 2.7.      Two - dimensional data set with one outlying sample.  

methods that are useful in outlier detection for one to three dimensions are weaker in 
multidimensional data because of a lack of adequate visualization methodologies for 
n - dimensional  spaces. An  illustrative  example  of  a  visualization  of  2 - D  samples  and 
visual  detection  of  outliers  is  given  in  Figures   2.6   and   2.7 .  The  main  limitations  of 
the  approach  are  its  time - consuming  process  and  the  subjective  nature  of  outlier 
detection.   

 Statistically  based  outlier  detection  methods  can  be  divided  between   univariate 
methods ,  proposed  in  earlier  works  in  this  ﬁ eld,  and   multivariate  methods ,  which 
usually form most of the current body of research. Statistical methods either assume a 
known underlying distribution of the observations or, at least, they are based on statisti-
cal estimates of unknown distribution parameters. These methods ﬂ ag as outliers those 
observations that deviate from the model assumptions. The approach is often unsuitable 
for high - dimensional data sets and for arbitrary data sets without prior knowledge of 
the underlying data distribution. 

 Most of the earliest univariate methods for outlier detection rely on the assumption 
of an underlying known distribution of the data, which is assumed to be identically and 
independently  distributed.  Moreover,  many  discordance  tests  for  detecting  univariate 

44 

PREPARING  THE  DATA

outliers further assume that the distribution parameters and the type of expected outliers 
are  also  known. Although  traditionally  the  normal  distribution  has  been  used  as  the 
target  distribution,  this  deﬁ nition  can  be  easily  extended  to  any  unimodal  symmetric 
distribution  with  positive  density  function.  Traditionally,  the  sample  mean  and  the 
sample variance give good estimation for data location and data shape if it is not con-
taminated by outliers. When the database is contaminated, those parameters may deviate 
and signiﬁ cantly affect the outlier - detection performance. Needless to say, in real - world 
data - mining applications, these assumptions are often violated. 

 The simplest approach to outlier detection for 1 - D samples is based on traditional 
unimodal statistics. Assuming that the distribution of values is given, it is necessary to 
ﬁ nd basic statistical parameters such as mean value and variance. Based on these values 
and the expected (or predicted) number of outliers, it is possible to establish the thresh-
old value as a function of variance. All samples out of the threshold value are candidates 
for outliers as presented in Figure  2.6 . The main problem with this simple methodology 
is an a priori assumption about data distribution. In most real - world examples, the data 
distribution may not be known. 

 For  example,  if  the  given  data  set  represents  the  feature  age  with  20  different 

values:

   Age =

{
3 56 23 39 156 52 41 22 9 28 139 31 55 20
,
,
,

,

,

,

,

,

,

,

,

,

,

,

−

,,
67 37 11 55
,

,

,

,45 37

}  

then, the corresponding statistical parameters are

   Mean = 39 9.
   Standard deviation = 45 65.

 If we select the threshold value for normal distribution of data as

   Threshold Mean

=

± ×2

Standard deviation

then, all data that are out of range [ − 54.1, 131.2] will be potential outliers. Additional 
knowledge of the characteristics of the feature (age is always greater then 0) may further 
reduce the range to [0, 131.2]. In our example there are three values that are outliers 
based on the given criteria: 156, 139, and  − 67. With a high probability we can conclude 
that all three of them are typo errors (data entered with additional digits or an additional 
 “  –  ”  sign). 

 An additional single - dimensional method is Grubbs ’  method (Extreme Studentized 
Deviate), which calculates a Z value as the difference between the mean value for the 
attribute and the analyzed value divided by the standard deviation for the attribute. The 
Z value is compared with a 1% or 5% signiﬁ cance level showing an outlier if the Z 
parameter is above the threshold value. 

 In many cases multivariable observations cannot be detected as outliers when each 
variable is considered independently. Outlier detection is possible only when multivari-
ate analysis is performed, and the interactions among different variables are compared 

 
  
 
OUTLIER  ANALYSIS 

45

within the class of data. An illustrative example is given in Figure  2.7  where separate 
analysis of each dimension will not give any outlier, but analysis of 2 - D samples (x,y) 
gives one outlier detectable even through visual inspection. 

 Statistical methods for multivariate outlier detection often indicate those samples 
that are located relatively far from the center of the data distribution. Several distance 
measures  can  be  implemented  for  such  a  task.  The  Mahalanobis  distance  measure 
includes the inter - attribute dependencies so the system can compare attribute combina-
tions. It is a well - known approach that depends on estimated parameters of the multi-
variate  distribution.  Given   n   observations   x i    from  a  p - dimensional  data  set  (often 
_
 n     >>    p), denote the sample mean vector by    
x  n   and the sample covariance matrix by V  n  , 
where

=

   V
n

n

n

∑1
−
1 1

=

i

−(
x
i

)

−(
x
i

x

n

x

n

)
T

 The   Mahalanobis   distance  for  each  multivariate  data  point   i  (i     =    1,    . . .    ,   n )  is 

denoted by  M i   and given by

   Mi

=





n

∑ x

−(
i

=
1

i

)
T

−
1
V x
n

−(
i

x

n

)

x

n

1 2




 Accordingly, those n - dimensional samples with a large  Mahalanobis  distance are 
indicated as outliers. Many statistical methods require data - speciﬁ c parameters repre-
senting a priori data knowledge. Such information is often not available or is expensive 
to compute. Also, most real - world data sets simply do not follow one speciﬁ c distribu-
tion model. 

  Distance - based techniques  are simple to implement and make no prior assumptions 
about  the  data  distribution  model.  However,  they  suffer  exponential  computational 
growth  as  they  are  founded  on  the  calculation  of  the  distances  between  all  samples. 
The computational complexity is dependent on both the dimensionality of the data set 
m and the number of samples n and usually is expressed as O(n 2 m). Hence, it is not an 
adequate approach to use with very large data sets. Moreover, this deﬁ nition can lead 
to problems when the data set has both dense and sparse regions. For example, as the 
dimensionality  increases,  the  data  points  are  spread  through  a  larger  volume  and 
become less dense. This makes the convex hull harder to discern and is known as the 
 “ curse of dimensionality. ”  

 Distance - based outlier detection method, presented in this section, eliminates some 
of the limitations imposed by the statistical approach. The most important difference 
is that this method is applicable to multidimensional samples while most of statistical 
descriptors analyze only a single dimension, or several dimensions, but separately. The 
basic computational complexity of this method is the evaluation of distance measures 
between  all  samples  in  an  n - dimensional  data  set.  Then,  a  sample  s i   in  a  data  set  S 
is an outlier if at least a fraction p of the samples in S lies at a distance greater than 
d. In other words, distance - based outliers are those samples that do not have enough 

  
  
46 

PREPARING  THE  DATA

neighbors, where neighbors are deﬁ ned through the multidimensional distance between 
samples.  Obviously,  the  criterion  for  outlier  detection  is  based  on  two  parameters,  p 
and d, which may be given in advance using knowledge about the data, or which may 
be changed during the iterations (trial - and - error approach) to select the most representa-
tive outliers. 

 To illustrate the approach we can analyze a set of 2 - D samples S, where the require-

ments for outliers are the values of thresholds: p    ≥    4 and d    >    3.

= {

,
s s
1

   S

,

s

3

,

s

4

,

s

5

,

s

6

,

s

7

2

{
} = (

,
2 4

) (
,

,
3 2

) (
,

,
1 1

) (
,

,
4 3

) (
,

,
1 6

)

,

,((
5 3

) (
,

,4 2

}
)

 The  table  of  Euclidian  distances,  d    =    [(x1    −    x2) 2     +    [y1    −    y2] 2 ]  ½  ,  for  the  set  S  is 
given in Table  2.3  and, based on this table, we can calculate a value for the parameter 
p with the given threshold distance (d    =    3) for each sample. The results are represented 
in Table  2.4 .   

 Using the results of the applied procedure and given threshold values, it is possible 
to select samples s 3  and s 5  as outliers (because their values for p is above the threshold 
value:  p    =    4). The  same  results  could  be  obtained  by  visual  inspection  of  a  data  set, 
represented in Figure  2.8 . Of course, the given data set is very small and a 2 - D graphi-
cal representation is possible and useful. For n - dimensional, real -  world data analyses 
the  visualization  process  is  much  more  difﬁ cult,  and  analytical  approaches  in  outlier 
detection are often more practical and reliable.   

  TA BLE 2.3.     Table of Distances for Data Set  S  

   s 1   

   s 2   

   s 3   

   s 4   

   s 5   

   s 6   

   s 7   

  s 1   
  s 2   
  s 3   
  s 4   
  s 5   
  s 6   

  2.236  

  3.162  
  2.236  

  2.236  
  1.414  
  3.605  

  2.236  
  4.472  
  5.000  
  4.242  

  3.162  
  2.236  
  4.472  
  1.000  
  5.000  

  2.828  
  1.000  
  3.162  
  1.000  
  5.000  
  1.414  

  TAB LE 2.4.     The Number of 
Points p with the Distance 
Greater Than d for Each Given 
Point in  S  

   Sample  

  s 1   
  s 2   
  s 3   
  s 4   
  s 5   
  s 6   
  s 7   

   p  

  2  
  1  
  5  
  2  
  5  
  3  
  2  

  
     
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
OUTLIER  ANALYSIS 

47

x2

 7 
 6 
 5 
 4
 3
 2
1 

(cid:127)
s5

(cid:127)

s3

(cid:127)s1

(cid:127)s6

(cid:127)s4
(cid:127)s7

(cid:127)s2

1

 2

 3

 4

 5

 6

 7

x1

     Figure 2.8.      Visualization of two - dimensional data set for outlier detection.  

 There is a possibility for reducing complexity of the algorithm by partitioning the 
data into n - dimensonal   cells. If any cell and its directly adjacent neighbors contain more 
than k points, then the points in the cell are deemed to lie in a dense area of the distri-
bution so the points contained are unlikely to be outliers. If the number of points is less 
than k, then all points in the cell are potential outliers. Hence, only a small number of 
cells need to be processed and only a relatively small number of distances need to be 
calculated for outlier detection. 

  Model - based  techniques   are  the  third  class  of  outlier - detection  methods.  These 
techniques  simulate  the  way  in  which  humans  can  distinguish  unusual  samples  from 
a  set  of  other  similar  samples.  These  methods  deﬁ ne  the  basic  characteristics  of  the 
sample  set,  and  all  samples  that  deviate  from  these  characteristics  are  outliers.  The 
sequential - exception technique is one possible approach that is based on a dissimilarity 
function.  For  a  given  set  of  n  samples,  a  possible  dissimilarity  function  is  the  total 
variance  of  the  sample  set.  Now,  the  task  is  to  deﬁ ne  the  smallest  subset  of  samples 
whose  removal  results  in  the  greatest  reduction  of  the  dissimilarity  function  for 
the  residual  set.  The  general  task  of  ﬁ nding  outliers  using  this  method  can  be  very 
complex  (combinational  explosion  of  different  selections  of  the  set  of  potential 
outliers — the so called exception set), and it can be theoretically deﬁ ned as an NP - hard   
problem (i.e., intractable). If we settle for a less - than - optimal answer, the algorithm ’ s 
complexity can be reduced to the linear level, using a sequential approach. Using the 
greedy method, the algorithm reduces the size sequentially, sample by sample (or subset 
by  subset),  by  selecting  at  each  step  the  one  that  causes  the  greatest  decrease  in  the 
total variance. 

 Many data - mining algorithms are robust and as such tolerant to outliers but were 
speciﬁ cally  optimized  for  clustering  or  classiﬁ cation  in  large  data  sets.  It  includes 
clustering  algorithms  such  as  Balanced  and  Iterative  Reducing  and  Clustering  Using 
Hierarchies (BIRCH) and Density - Based Spatial Clustering of Applications with Noise 
(DBSCAN),  k  nearest  neighbor  (kNN)  classiﬁ cation  algorithms,  and  different  neural 
networks. These methodologies are explained with more details later in the book, but 
the reader has to be aware about applicability of these techniques as powerful tools for 
outliers ’  detection. For example, in the data set represented in Figure  2.9 , clustering -
 based methods consider a cluster of small sizes, including the size of one sample, as 
clustered outliers. Note that since their main objective is clustering, these methods are 

48 

PREPARING  THE  DATA

Potential outliers

     Figure 2.9.      Determining outliers through clustering.  

not always optimized for outlier detection. In most cases, the outlier detection criteria 
are implicit and cannot easily be inferred from the clustering procedures.   

 Most of outlier detection techniques have only focused on continuous real - valued 
data  attributes,  and  there  has  been  little  focus  on  categorical  data.  Most  approaches 
require cardinal or at the least ordinal data to allow vector distances to be calculated, 
and have no mechanism for processing categorical data with no implicit ordering. 

   2.7  

  REVIEW QUESTIONS AND PROBLEMS 

      1.    Generate the tree structure of data types explained in Section  2.1 .   

   2.    If one attribute in the data set is student grade with values A, B, C, D, and F, what 
type  are  these  attribute  values?  Give  a  recommendation  for  preprocessing  of  the 
given attribute.   

   3.    Explain why  “ the curse of dimensionality ”  principles are especially important in 

understanding large data sets.   

   4.    Every attribute in a 6 - D sample is described with one out of three numeric values 
{0, 0.5, 1}. If there exist samples for all possible combinations of attribute values, 
what  will  be  the  number  of  samples  in  a  data  set  and  what  will  be  the  expected 
distance between points in a 6 - D space?   

   5.    Derive the formula for min – max normalization of data on [ − 1, 1] interval.   
   6.    Given 1 - D data set X    =    { − 5.0, 23.0, 17.6, 7.23, 1.11}, normalize the data set using 

  (a)      decimal scaling on interval [ − 1, 1],  
  (b)      min – max normalization on interval [0, 1],  

REVIEW  QUESTIONS  AND  PROBLEMS 

49

  (c)      min – max normalization on interval [ − 1, 1], and  
  (d)      standard deviation normalization.    

 Compare  the  results  of  previous  normalizations  and  discuss  the  advantages  and 
disadvantages of the different techniques.   

   7.    Perform data smoothing using a simple rounding technique for a data set

   Y = {

}
.
1 17 2 59 3 38 4 23 2 67 1 73 2 53 3 28 3 44

.

.

.

,

,

,

.

,

,

.

,

.

,

.

.

,

and present the new data set when the rounding is performed to the precision of 
  (a)      0.1 and  
  (b)      1.      

   8.    Given a set of 4 - D samples with missing values,

   X1

   X2

=

= {

,

}
0 1 1 2
,
,
{
,
2 1
,

−
,

}
1

   X3

   X4

=

{
,
1
{
= −
,

− −
,
,

2 1
,
,

}
0
}
−

if the domains for all attributes are [0, 1, 2], what will be the number of  “ artiﬁ cial ”  
samples  if  missing  values  are  interpreted  as   “ don ’ t  care  values ”   and  they  are 
replaced with all possible values for a given domain?   

   9.    A 24 - h, time - dependent data set X is collected as a training data set to predict values 

3   h in advance. If the data set X is

   X = { ,

7 8 9 10 9 8 7 9 11 13 15 17 16 15 14 13 12 11 10 9 7 5,,
,

,

,

,

,

,

,

,

,

,

,

,

,

,

,

,

,

,

,

,

3 1  
, ),

   (a)      What will be a standard tabular representation of data set X if 

   (i)      the window width is 6, and a prediction variable is based on the difference between 

the current value and the value after 3   h. What is the number of samples?  

  (ii)      the window 4width is 12, and the prediction variable is based on ratio. What is the 

number of samples?    

  (b)      Plot discrete X values together with computed 6 -  and 12 - h MA.  
  (c)      Plot time - dependent variable X and its 4 - h EMA.      

   10.    The number of children for different patients in a database is given with a vector

   C =

{
,
3 1 0 2 7 3 6 4
,
,

,

,

,

,

,

−

}
,
2 0 0 10 15 6
,

,

,

,

.   

 Find  the  outliers  in  set  C  using  standard  statistical  parameters  mean  and 
variance. 

 If the threshold value is changed from  ± 3 standard deviations to  ± 2 standard 

deviations, what additional outliers are found?   

 
 
 
 
 
50 

PREPARING  THE  DATA

   11.    For a given data set X of 3 - D samples,

,
1 2 0
,

[
X = {
{
,
4 4 2
,

} {
,
} {
,

,
2 1 5
,

} {
,
,
3 1 4
,
{
}
7 7 7
,
,
,
5 2 1
,

,,

} {
,
} {
,

,
0 1 6
,

0 0 0
,
,

} {
,
} {
,

}
,
2 4 3
,
,
}]  
.

3 3 3
,
,

   (a)      ﬁ nd the outliers using the distance - based technique if 

   (i)      the threshold distance is 4, and threshold fraction p for non - neighbor samples is 3, 

and  

  (ii)      the threshold distance is 6, and threshold fraction p for non - neighbor samples is 2.    
  (b)      Describe the procedure and interpret the results of outlier detection based on mean values 

and variances for each dimension separately.      

   12.    Discuss the applications in which you would prefer to use EMA instead of MA.   

   13.    If your data set contains missing values, discuss the basic analyses and correspond-
ing decisions you will take in the preprocessing phase of the data - mining process.   

   14.    Develop a software tool for the detection of outliers if the data for preprocessing 

are given in the form of a ﬂ at ﬁ le with n - dimensional samples.   

   15.    The  set  of  seven  2 - D  samples  is  given  in  the  following  table.  Check  if  we  have 

outliers in the data set. Explain and discuss your answer. 

   Sample #  

  1  
  2  
  3  
  4  
  5  
  6  
  7  

   X  

  1  
  7  
  2  
  6  
  4  
  2  
  7  

   Y  

  3  
  1  
  4  
  3  
  2  
  2  
  2  

   16.    Given  the  data  set  of  10  3 - D  samples:  {(1,2,0),  (3,1,4),  (2,1,5),  (0,1,6),  (2,4,3), 
(4,4,2),  (5,2,1),  (7,7,7),  (0,0,0),  (3,3,3)},  is  the  sample  S4    =    (0,1,6)  outlier  if  the 
threshold  values  for  the  distance  d    =    6,  and  for  the  number  of  samples  in  the 
neighborhood p    >    2? (Note: Use distance - based outlier - detection technique.)   

   17.    What is the difference between  nominal  and  ordinal  data? Give examples.   

   18.    Using the method of  distance - based outliers detection  ﬁ nd the outliers in the set

{
   X = (

,
0 0

) (
,

,
1 1

) (
,

,
3 2

) (
,

,
6 3

) (
,

,
5 4

) (
,

,
2 4

}
)

if the criterion is that at least the fraction p    ≥    3 of the samples in X lies at a distance 
d greater than 4.   

   19.    What will be normalized values (using  min - max normalization  of data for the range 

[ − 1, 1]) for the data set X?

   
       
 
REFERENCES  FOR  FURTHER  STUDY 

51

   X = −{

}
,
5 11 26 57 61 75
,

,

,

,

   20.    Every attribute in 6 - D samples is described with one out of three numerical values: 
{0, 0.5, 1}. If there exist samples for all possible combinations of attribute values 
  (a)      What will be the number of samples in a data set, and  
  (b)      What will be the expected distance between points in a 6 - D space?      

   21.    Classify the following attributes as  binary, discrete, or continuous . Also, classify 
them as  qualitative  ( nominal or ordinal ) or  quantitative  ( interval or ratio ). Some 
cases  may  have  more  than  one  interpretation,  so  brieﬂ y  indicate  your  reasoning 
(e.g., age in years; answer: discrete, quantitative, ratio).
   (a)      Time in terms of AM or PM.  
  (b)      Brightness as measured by a light meter.  
  (c)      Brightness as measured by people ’ s judgment.  
  (d)      Angles as measured in degrees between 0 and 360.  
  (e)      Bronze, Silver, and Gold medals at the Olympics.  
  (f)      Height above sea level.  
  (g)      Number of patients in a hospital.  
  (h)      ISBN numbers for books.  
  (i)      Ability  to  pass  light  in  terms  of  the  following  values:  opaque,  translucent, 

transparent.  
  (j)      Military rank.  
  (k)      Distance from the center of campus.  
  (l)      Density of a substance in grams per cubic centimeter.  
  (m)      Coats check number when you attend the event.         

   2.8  

   REFERENCES FOR FURTHER STUDY 

    Bischoff ,   J.  ,   T.   Alexander  ,   Data  Warehouse:  Practical Advice  from  the  Experts ,   Prentice  Hall , 

 Upper Saddle River, NJ ,  1997 .  
  The  objective  of  a  data  warehouse  is  to  provide  any  data,  anywhere,  anytime  in  a  timely 
manner at a reasonable cost. Different techniques used to preprocess the data in warehouses 
reduce the effort in initial phases of data mining.  

    Cios ,  K.J.  ,   W.   Pedrycz  ,   R. W.   Swiniarski  ,   L. A.   Kurgan  ,  Data Mining: A Knowledge Discovery 

Approach ,  Springer ,  New York ,  2007 .  
  This comprehensive textbook on data mining details the unique steps of the knowledge dis-
covery  process  that  prescribe  the  sequence  in  which  data - mining  projects  should  be  per-
formed.   Data  Mining   offers  an  authoritative  treatment  of  all  development  phases  from 
problem and data understanding through data preprocessing to deployment of the results. This 
knowledge - discovery approach is what distinguishes this book from other texts in the area. 
It  concentrates  on  data  preparation,  clustering  and  association - rule  learning  (required  for 
processing unsupervised data), decision trees, rule induction algorithms, neural networks, and 
many other data - mining methods, focusing predominantly on those which have proven suc-
cessful in data - mining projects.  

    Hand ,  D.  ,   H.   Mannila  ,   P.   Smith  ,  Principles of Data Mining ,  MIT Press ,  Cambridge, MA ,  2001 .  
  The  book  consists  of  three  sections. The  ﬁ rst,  foundations,  provides  a  tutorial  overview  of 
the principles underlying data - mining algorithms and their applications. The second section, 

    
52 

PREPARING  THE  DATA

data - mining algorithms, shows how algorithms are constructed to solve speciﬁ c problems in 
a principled manner. The third section shows how all of the preceding analyses ﬁ t together 
when applied to real - world data - mining problems.  

    Hodge ,   J.  V.  ,    J.    Austin  ,   A  Survey  of  Outlier  Detection  Methodologies ,   Artiﬁ cial  Intelligence 

Review , Vol.  22 , No.  2 , October  2004 , pp.  85  –  127 .  
  The  original  outlier - detection  methods  were  arbitrary  but  now,  principled  and  systematic 
techniques are used, drawn from the full gamut of Computer Science and Statistics. In this 
paper, a survey of contemporary techniques for outlier detection is introduced. The authors 
identify respective motivations and distinguish advantages and disadvantages of these tech-
niques in a comparative review.  

    Ben - Gal ,  I.  ,  Outlier Detection , in  Data Mining and Knowledge Discovery Handbook: A Complete 
Guide for Practitioners and Researchers ,   O.   Maimon   and   L.   Rockach   eds.,  Kluwer Academic 
Publishers ,  Boston ,  2005 .  
  The author presents several methods for outlier detection, while distinguishing between uni-
variate  versus  multivariate  techniques  and  parametric  versus  nonparametric  procedures.  In 
the presence of outliers, special attention should be taken to assure the robustness of the used 
estimators. Outlier detection for data mining is often based on distance measures, clustering, 
and spatial methods.  

    Kennedy ,  R. L.   et al.,  Solving Data Mining Problems through Pattern Recognition ,  Prentice Hall , 

 Upper Saddle River, NJ ,  1998 .  
  The book takes a practical approach to overall data - mining project development. The rigorous, 
multistep methodology includes deﬁ ning the data set; collecting, preparing, and preprocessing 
data; choosing the appropriate technique and tuning the parameters; and training, testing, and 
troubleshooting.  

    Weiss ,   S.  M.  ,    N.    Indurkhya  ,   Predictive  Data  Mining:  A  Practical  Guide ,   Morgan  Kaufman 

Publishers ,  San Francisco, CA ,  1998 .  
  This  book  focuses  on  the  data - preprocessing  phase  in  successful  data - mining  applications. 
Preparation and organization of data and development of an overall strategy for data mining 
are not only time - consuming processes, but also fundamental requirements in real - world data 
mining. The simple presentation of topics with a large number of examples is an additional 
strength of the book.   

 
 
  3 

DATA REDUCTION     

  Chapter Objectives 

     (cid:127)       Identify the differences in dimensionality reduction based on features, cases, and 

reduction of value techniques.  

   (cid:127)       Explain the advantages of data reduction in the preprocessing phase of a data -

 mining process.  

   (cid:127)       Understand  the  basic  principles  of  feature - selection  and  feature - composition 

tasks using corresponding statistical methods.  

   (cid:127)       Apply and compare entropy - based technique and principal component analysis 

(PCA) for feature ranking.  

   (cid:127)       Understand  the  basic  principles  and  implement  ChiMerge  and  bin - based  tech-

niques for reduction of discrete values.  

   (cid:127)       Distinguish  approaches  in  cases  where  reduction  is  based  on  incremental  and 

average samples.     

    For small or moderate data sets, the preprocessing steps mentioned in the previous 
chapter in preparation for data mining are usually enough. For really large data sets, 

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

53

 
54 

DATA  REDUCTION

there is an increased likelihood that an intermediate, additional step — data reduction —
 should  be  performed  prior  to  applying  the  data - mining  techniques.  While  large  data 
sets  have  the  potential  for  better  mining  results,  there  is  no  guarantee  that  they  will 
yield  better  knowledge  than  small  data  sets.  Given  multidimensional  data,  a  central 
question is whether it can be determined, prior to searching for all data - mining solutions 
in all dimensions, that the method has exhausted its potential for mining and discovery 
in a reduced data set. More commonly, a general solution may be deduced from a subset 
of available features or cases, and it will remain the same even when the search space 
is enlarged. 

 The main theme for simplifying the data in this step is dimension reduction, and 
the  main  question  is  whether  some  of  these  prepared  and  preprocessed  data  can  be 
discarded  without  sacriﬁ cing  the  quality  of  results.  There  is  one  additional  question 
about techniques for data reduction: Can the prepared data be reviewed and a subset 
found in a reasonable amount of time and space? If the complexity of algorithms for 
data reduction increases exponentially, then there is little to gain in reducing dimensions 
in big data. In this chapter, we will present basic and relatively efﬁ cient techniques for 
dimension reduction applicable to different data - mining problems.  

   3.1  

  DIMENSIONS OF LARGE DATA SETS 

 The choice of data representation and selection, reduction, or transformation of features 
is probably the most important issue that determines the quality of a data - mining solu-
tion.  Besides  inﬂ uencing  the  nature  of  a  data - mining  algorithm,  it  can  determine 
whether  the  problem  is  solvable  at  all,  or  how  powerful  the  resulting  model  of  data 
mining  is. A  large  number  of  features  can  make  available  samples  of  data  relatively 
insufﬁ cient for mining. In practice, the number of features can be as many as several 
hundred. If we have only a few hundred samples for analysis, dimensionality reduction 
is required in order for any reliable model to be mined or to be of any practical use. 
On the other hand, data overload, because of high dimensionality, can make some data -
 mining  algorithms  non - applicable,  and  the  only  solution  is  again  a  reduction  of  data 
dimensions.  For  example,  a  typical  classiﬁ cation  task  is  to  separate  healthy  patients 
from cancer patients, based on their gene expression  “ proﬁ le. ”  Usually fewer than 100 
samples  (patients ’   records)  are  available  altogether  for  training  and  testing.  But  the 
number of features in the raw data ranges from 6000 to 60,000. Some initial ﬁ ltering 
usually brings the number of features to a few thousand; still it is a huge number and 
additional reduction is necessary. The three main dimensions of preprocessed data sets, 
usually  represented  in  the  form  of  ﬂ at  ﬁ les,  are   columns   (features),   rows   (cases  or 
samples), and  values  of the features. 

 Therefore,  the  three  basic  operations  in  a  data - reduction  process  are  delete  a 
column, delete a row, and reduce the number of values in a column (smooth a feature). 
These operations attempt to preserve the character of the original data by deleting data 
that are nonessential. There are other operations that reduce dimensions, but the new 
data are unrecognizable when compared with the original data set, and these operations 
are  mentioned  here  just  brieﬂ y  because  they  are  highly  application - dependent.  One 

DIMENSIONS  OF  LARGE  DATA  SETS 

55

approach is the replacement of a set of initial features with a new composite feature. 
For  example,  if  samples  in  a  data  set  have  two  features,  person  height  and  person 
weight, it is possible for some applications in the medical domain to replace these two 
features with only one, body mass index, which is proportional to the quotient of the 
initial  two  features.  Final  reduction  of  data  does  not  reduce  the  quality  of  results;  in 
some applications, the results of data mining are even improved. 

 In  performing  standard  data - reduction  operations  (deleting  rows,  columns,  or 
values) as a preparation for data mining, we need to know what we gain and/or lose 
with  these  activities.  The  overall  comparison  involves  the  following  parameters  for 
analysis:

   1.      Computing Time .       Simpler data, a result of the data - reduction process, can hope-
fully lead to a reduction in the time taken for data mining. In most cases, we 
cannot afford to spend too much time on the data - preprocessing phases, includ-
ing a reduction of data dimensions, although the more time we spend in prepara-
tion the better the outcome.  

  2.      Predictive/Descriptive Accuracy .       This is the dominant measure for most data -
 mining models since it measures how well the data are summarized and general-
ized into the model. We generally expect that by using only relevant features, 
a data - mining algorithm can learn not only faster but also with higher accuracy. 
Irrelevant data may mislead a learning process and a ﬁ nal model, while redun-
dant data may complicate the task of learning and cause unexpected data - mining 
results.  

  3.      Representation  of  the  Data - Mining  Model .       The  simplicity  of  representation, 
obtained usually with data reduction, often implies that a model can be better 
understood. The simplicity of the induced model and other results depends on 
its  representation.  Therefore,  if  the  simplicity  of  representation  improves,  a 
relatively small decrease in accuracy may be tolerable. The need for a balanced 
view between accuracy and simplicity is necessary, and dimensionality reduc-
tion is one of the mechanisms for obtaining this balance.    

 It would be ideal if we could achieve reduced time, improved accuracy, and simpli-
ﬁ ed representation at the same time, using dimensionality reduction. More often than 
not, however, we gain in some and lose in others, and balance between them according 
to the application at hand. It is well known that no single data - reduction method can 
be best suited for all applications. A decision about method selection is based on avail-
able knowledge about an application (relevant data, noise data, meta - data, correlated 
features), and required time constraints for the ﬁ nal solution. 

 Algorithms  that  perform  all  basic  operations  for  data  reduction  are  not  simple, 
especially when they are applied to large data sets. Therefore, it is useful to enumerate 
the  desired  properties  of  these  algorithms  before  giving  their  detailed  descriptions. 
Recommended characteristics of data - reduction algorithms that may be guidelines for 
designers of these techniques are as follows:

   1.      Measurable Quality .       The quality of approximated results using a reduced data 

set can be determined precisely.  

56 

DATA  REDUCTION

  2.      Recognizable Quality .       The quality of approximated results can be easily deter-
mined  at  run  time  of  the  data - reduction  algorithm,  before  application  of  any 
data - mining procedure.  

  3.      Monotonicity .       The algorithms are usually iterative, and the quality of results is 

a nondecreasing function of time and input data quality.  

  4.      Consistency .       The  quality  of  results  is  correlated  with  computation  time  and 

input data quality.  

  5.      Diminishing  Returns .       The  improvement  in  the  solution  is  large  in  the  early 

stages (iterations) of the computation, and it diminishes over time.  

  6.      Interruptability .       The algorithm can be stopped at any time and provide some 

answers.  

  7.      Preemptability .       The  algorithm  can  be  suspended  and  resumed  with  minimal 

overhead.     

   3.2  

  FEATURE REDUCTION 

 Most of the real - world data mining applications are characterized by high - dimensional 
data, where not all of the features are important. For example, high - dimensional data 
(i.e., data sets with hundreds or even thousands of features) can contain a lot of irrel-
evant,  noisy  information  that  may  greatly  degrade  the  performance  of  a  data - mining 
process. Even state - of - the - art data - mining algorithms cannot overcome the presence of 
a large number of weakly relevant and redundant features. This is usually attributed to 
the  “ curse of dimensionality, ”  or to the fact that irrelevant features decrease the signal -
 to - noise ratio. In addition, many algorithms become computationally intractable when 
the dimensionality is high. 

 Data such as images, text, and multimedia are high - dimensional in nature, and this 
dimensionality of data poses a challenge to data - mining tasks. Researchers have found 
that reducing the dimensionality of data results in a faster computation while maintain-
ing reasonable accuracy. In the presence of many irrelevant features, mining algorithms 
tend  to  overﬁ t  the  model.  Therefore,  many  features  can  be  removed  without  perfor-
mance deterioration in the mining process. 

 When  we  are  talking  about  data  quality  and  improved  performances  of  reduced 
data sets, we can see that this issue is not only about noisy or contaminated data (prob-
lems mainly solved in the preprocessing phase), but also about irrelevant, correlated, 
and redundant data. Recall that data with corresponding features are not usually col-
lected solely for data - mining purposes. Therefore, dealing with relevant features alone 
can be far more effective and efﬁ cient. Basically, we want to choose features that are 
relevant to our data - mining application in order to achieve maximum performance with 
minimum  measurement  and  processing  effort.  A  feature - reduction  process  should 
result in 

  1.      less data so that the data - mining algorithm can learn faster;  
  2.      higher accuracy of a data - mining process so that the model can generalize better 

from the data;  

FEATURE  REDUCTION 

57

  3.      simple results of the data - mining process so that they are easier to understand 

and use; and  

  4.      fewer features so that in the next round of data collection, savings can be made 

by removing redundant or irrelevant features.    

 Let us start our detailed analysis of possible column - reduction techniques, where 
features are eliminated from the data set based on a given criterion. To address the curse 
of  dimensionality,  dimensionality - reduction  techniques  are  proposed  as  a  data -
 preprocessing step. This process identiﬁ es a suitable low - dimensional representation of 
original data. Reducing the dimensionality improves the computational efﬁ ciency and 
accuracy  of  the  data  analysis. Also,  it  improves  comprehensibility  of  a  data - mining 
model. Proposed techniques are classiﬁ ed as supervised and unsupervised techniques 
based on the type of learning process. Supervised algorithms need a training set with 
the output class label information to learn the lower dimensional representation accord-
ing to some criteria. Unsupervised approaches project the original data to a new lower 
dimensional  space  without  utilizing  the  label  (class)  information.  Dimensionality -
 reduction  techniques  function  either  by  transforming  the  existing  features  to  a  new 
reduced set of features or by selecting a subset of the existing features. Therefore, two 
standard  tasks  are  associated  with  producing  a  reduced  set  of  features,  and  they  are 
classiﬁ ed as:

   1.      Feature Selection .       Based on the knowledge of the application domain and the 
goals of the mining effort, the human analyst may select a subset of the features 
found in the initial data set. The process of feature selection can be manual or 
supported by some automated procedures. 
 Roughly speaking, feature - selection methods are applied in one of three con-
ceptual  frameworks:  the   ﬁ lter  model ,  the   wrapper  model ,  and   embedded 
methods .  These  three  basic  families  differ  in  how  the  learning  algorithm  is 
incorporated in evaluating and selecting features. In the ﬁ lter model the selec-
tion of features is done as a preprocessing activity, without trying to optimize 
the performance of any speciﬁ c data - mining technique directly. This is usually 
achieved through an (ad hoc) evaluation function using a search method in order 
to  select  a  subset  of  features  that  maximizes  this  function.  Performing  an 
exhaustive search is usually intractable due to the large number of initial fea-
tures.  Therefore,  different  methods  may  apply  a  variety  of  search  heuristics. 
Wrapper methods select features by  “ wrapping ”  the search around the selected 
learning  algorithm  and  evaluate  feature  subsets  based  on  the  learning  perfor-
mance of the data - mining technique for each candidate feature subset. The main 
drawback of this approach is its computational complexity. Main characteristics 
of both approaches are given in Figure  3.1 . Finally, embedded methods incor-
porate  feature  search  and  the  learning  algorithm  into  a  single  optimization 
problem  formulation. When  the  number  of  samples  and  dimensions  becomes 
very large, the ﬁ lter approach is usually a choice due to its computational efﬁ -
ciency and neutral bias toward any learning methodology.    

58 

DATA  REDUCTION

Full Set

Feature
Generation

Subset

Measuring

Measurement

Training
Data

No

Good or
Stop?

Phase 1

Yes

Accuracy

Classifier

Testing

Learning
Algorithm

Best Subset

Phase 2

Testing
Data
(a)

Full Set

Feature
Generation

Subset

Learning
Algorithm

Accuracy

Training
Data

Training
Data

No

Good?

Accuracy

Classifier

Testing

Learning
Algorithm

Best Subset

Phase 1

Yes

Phase 2

Testing
Data
(b)

Training
Data

     Figure 3.1.      Feature - selection approaches. (a) Filter model; (b) wrapper model.  

  2.      Feature Extraction/Transformation .       There are transformations of data that can 
have a surprisingly strong impact on the results of data - mining methods. In this 
sense, the composition and/or transformation of features is a greater determining 
factor in the quality of data - mining results. In most instances, feature composi-
tion  is  dependent  on  knowledge  of  the  application,  and  an  interdisciplinary 
approach to feature composition tasks produces signiﬁ cant improvements in the 
preparation of data. Still, some general purpose techniques, such as PCA, are 
often used and with great success. 
 Feature  selection  is  typically  preferred  over  extraction/transformation  when 
one  wishes  to  keep  the  original  meaning  of  the  features  and  wishes  to  deter-
mine  which  of  those  features  are  important.  Moreover,  once  features  are 
selected,  only  those  features  need  to  be  calculated  or  collected,  whereas  in 
transformation - based  methods  all  input  features  are  still  needed  to  obtain  the 
reduced  dimension.    

   3.2.1  

  Feature Selection 

 In data mining, feature selection, also known as variable selection, feature reduction, 
attribute selection, or variable subset selection, is a set of techniques that select a subset 
of relevant features for building robust learning models by removing most irrelevant 

FEATURE  REDUCTION 

59

and redundant features from the data. The objective of feature selection is threefold: 
improving the performance of a data - mining model, providing a faster and more cost -
 effective  learning  process,  and  providing  a  better  understanding  of  the  underlying 
process  that  generates  the  data.  Feature - selection  algorithms  typically  fall  into  two 
categories:  feature ranking  and  subset selection . Feature ranking ranks all features by 
a  speciﬁ ed  metric  and  eliminates  all  features  that  do  not  achieve  an  adequate  score. 
Subset selection, on the other hand, searches the set of all features for the optimal subset 
where features in the selected subset are not ranked. We have to be aware that different 
feature - selection methods may give different reduced feature sets. 

 In the feature - ranking algorithm, one can expect a ranked list of features that are 
ordered according to a speciﬁ c evaluation measure. A measure can be based on accuracy 
of  available  data,  consistency,  information  content,  distances  between  samples,  and 
ﬁ nally, statistical dependencies between features. These algorithms do not tell you what 
the minimum set of features for further analysis is; they indicate only the relevance of 
a feature compared with others. Minimum - subset algorithms, on the other hand, return 
a minimum feature subset and no differences are made among features in the subset —
 all have the same ranking. The features in the subset are relevant for the mining process; 
the  others  are  irrelevant.  In  both  types  of  algorithms,  it  is  important  to  establish  a 
feature - evaluation scheme: the way in which the features are evaluated and then ranked, 
or added to the selected subset. 

 Feature selection in general can be viewed as a search problem, with each state in 
the search space specifying a subset of the possible features. If, for example, a data set 
has three features, {A 1 , A 2 , A 3 }, and in the process of selecting features, the presence 
of a feature is coded with 1 and its absence with 0, then there should be a total of 2 3  
reduced - feature subsets coded with {0, 0, 0}, {1, 0, 0}, {0, 1, 0}, {0, 0, 1}, {1, 1, 0}, 
{1, 0, 1}, {0, 1, 1}, and {1, 1, 1}. The problem of feature selection is relatively trivial 
if the search space is small, since we can analyze all subsets in any order and a search 
will get completed in a short time. However, the search space is usually not small. It 
is  2 N   where  the  number  of  dimensions  N  in  typical  data - mining  applications  is  large 
(N    >    20).  This  makes  the  starting  point  and  the  search  strategy  very  important.  An 
exhaustive search of all subsets of features very often is replaced with some heuristic 
search procedures. With knowledge of the problem, these procedures ﬁ nd near - optimal 
subsets of features that further improve the quality of the data - mining process. 

 The objective of feature selection is to ﬁ nd a subset of features with data - mining 
performances  comparable  to  the  full  set  of  features.  Given  a  set  of  features  m,  the 
number of subsets to be evaluated as candidates for column reduction is ﬁ nite, but still 
very  large  for  iterative  analysis  through  all  cases.  For  practical  reasons,  an  optimal 
search is not feasible, and simpliﬁ cations are made to produce reasonable, acceptable, 
and timely results. If the reduction task is to create a subset, one possibility — the so -
 called  bottom - up  approach — starts  with  an  empty  set,  and  ﬁ lls  it  in  by  choosing  the 
most relevant features from the initial set of features. This process is based on some 
heuristic criteria for a feature evaluation. The top - down approach, on the other hand, 
begins with a full set of original features and then removes one - by - one those that are 
shown  as  irrelevant  based  on  the  selected  heuristic  evaluation  measure.  Additional 
approximations to the optimal approach are 

60 

DATA  REDUCTION

  1.      to  examine  only  promising  subsets  of  features  where  promising  subsets  are 
usually  obtained  heuristically — this  provides  enough  room  for  exploration  of 
competing alternatives;  

  2.      to substitute computationally simple distance measures for the error measures —
 this approximation will reduce the computation time yet give satisfactory results 
for comparison of subset alternatives;  

  3.      to select features based only on subsets of large amounts of data, but the sub-

sequent steps of data mining will be applied on the whole set.    

 The application of feature selection and reduction of data dimensionality may be 
used  in  all  phases  of  the  data - mining  process  for  successful  knowledge  discovery.  It 
has to be started in the preprocessing phase, but, on many occasions, feature selection 
and reduction is a part of the data - mining algorithm, even if it is applied in postprocess-
ing for better evaluation and consolidation of obtained results. 

 Let  us  return  to  the  promising  subsets  of  features.  One  possible  technique  for 
feature selection is based on comparison of  means  and  variances . To summarize the key 
characteristics of the distribution of values for a given feature, it is necessary to compute 
the mean value and the corresponding variance. The main weakness in this approach is 
that the distribution for the feature is not known. If it is assumed to be a normal curve, 
the statistics can work out very well, but this may in fact be a poor assumption. Without 
knowing  the  shape  of  the  distribution  curve,  the  means  and  variances  are  viewed  as 
heuristics for feature selection, not exact, mathematical modeling tools. 

 In  general,  if  one  feature  describes  different  classes  of  entities,  samples  of  two 
different classes can be examined. The means of feature values are normalized by their 
variances and then compared. If the means are far apart, interest in a feature increases; 
it has potential, in terms of its use in distinguishing between two classes. If the means 
are indistinguishable, interest wanes in that feature. It is a heuristic, nonoptimal approach 
to feature selection, but it is consistent with practical experience in many data - mining 
applications in the triage of features. Next, equations formalize the test, where A and 
B are sets of feature values measured for two different classes, and n 1  and n 2  are the 
corresponding number of samples:

) =

(
   SE A-B
−

(var(

) /
A n
1

+

var(

)

2

B n
) /
>

) | /
   TEST mean  A mean  B SE A-B threshold value

: |

(

(

)

(

)

 The mean of a feature is compared in both classes without taking into consideration 
relationship to other features. In this approach to feature selection, we assumed a priori 
that the given feature is independent of the others. A comparison of means is a natural 
ﬁ t to classiﬁ cation problems. For the purposes of feature selection, a regression problem 
can be considered as a pseudo - classiﬁ cation problem. For k classes, k pairwise com-
parisons can be made, comparing each class with its complement. A feature is retained 
if it is signiﬁ cant for any of the pairwise comparisons. 

 We can analyze this approach in feature selection through one example. A simple 
data set is given in Table  3.1  with two input features X and Y, and an additional output 

   
    
FEATURE  REDUCTION 

61

  TAB LE 3.1.     Dataset with Three Features 

   X  

  0.3  
  0.2  
  0.6  
  0.5  
  0.7  
  0.4  

   Y  

  0.7  
  0.9  
  0.6  
  0.5  
  0.7  
  0.9  

   C  

  A  
  B  
  A  
  A  
  B  
  B  

feature  C  that  classiﬁ es  samples  into  two  classes, A  and  B.  It  is  necessary  to  decide 
whether  the  features  X  and  Y  are  candidates  for  reduction  or  not.  Suppose  that  the 
threshold value of the applied test is 0.5.   

 First, we need to compute a mean value and a variance for both classes and both 

features X and Y. The analyzed subsets of the feature ’ s values are

   X

A

=

0 3 0 6 0 5
{ . ,
. ,

. },

X

B

=

0 2 0 7 0 4
{ . ,
. ,

. },

Y
A

=

0 7 0 6 0 5
{ . ,
. ,

. },

and Y
B

=

. ,
00 9 0 7 0 9
. ,
{

. }  

and the results of applied tests are

SE X -X

(

A

=

)

B

(var(

X

) /

n
1

A

+

var(

X

) /

n

2

)

B

=

(

SE Y -Y
)
B
A
−

mean X

)

(

A

   |

=

(var(

) /
Y n
A
1

+

var(

mean X

(

) | /

B

SE X -X

(

A

B

.

/

+
/ )
0 0233 3 0 06333 3
( .
= 00875
.
.

.
0 4667 0 4333 0 1699 0 19611 0 5< .
.
.

( .
/ )
0 01 3 0 0133 3
=
−

0 16699
.

| /

+

=

=

0

)

/

.

2

Y n
) /
B
=

)

|

   |

mean Y
A

(

)

−

mean Y
B

(

) | /

SE Y -Y
B

(

A

=

|

)

−

0 6 0 8333 0 0875 2 6667 0..5   
.

| /

.

.

.

=

>

 This  analysis  shows  that  X  is  a  candidate  for  reduction  because  its  mean  values 
are close and, therefore, the ﬁ nal test is below the threshold value. On the other hand, 
the  test  for  feature Y  is  signiﬁ cantly  above  the  threshold  value;  this  feature  is  not  a 
candidate  for  reduction  because  it  has  the  potential  to  be  a  distinguishing  feature 
between two classes. 

 A similar idea for feature ranking is shown in the algorithm that is based on cor-
relation  criteria.  Let  us  consider  ﬁ rst  the  prediction  of  a  continuous  outcome   y .  The 
Pearson correlation coefﬁ cient is deﬁ ned as:

   R i
( )

=

,

)

cvo X Y
(

i
var X var Y
( )
)
i

(

where  cov  designates the covariance and  var  the variance. The estimate of  R ( i ) for the 
given data set with samples ’  inputs  x k,,j   and outputs  y k   is deﬁ ned by:

   R i
( )

=

∑

m

=
1

k

(

x

k i
,

−

∑

m

=
1

k

(

x

k i
,

−

x
i

)

2

x
)(
i
∑

−

y

)

(

y

k

−

2

y

)

y

k

m

=
1

k

   
 
 
 
 
62 

DATA  REDUCTION

where the bar notation stands for an average over the index  k  (set of all samples). Using 
 R ( i ) 2  as a variable - ranking criterion enforces a ranking according to goodness of linear 
ﬁ t  of  individual  variables.  Correlation  criteria  such  as   R ( i ) 2   can  only  detect  linear 
dependencies  between  input  features  and  target  or  output  feature  (variable).  One 
common  criticism  of  variable  ranking  is  that  it  leads  to  the  selection  of  a  redundant 
subset.  The  same  performance  could  possibly  be  achieved  with  a  smaller  subset  of 
complementary variables. Still, one may wonder whether deleting presumably redun-
dant variables can result in a performance gain. 

 Practical  experiments  show  that  noise  reduction  and  consequently  better  model 
estimation may be obtained by adding features that are presumably redundant. Therefore, 
we  have  to  be  very  careful  in  the  preprocessing  analysis.  Yes,  perfectly  correlated 
variables are truly redundant in the sense that no additional information is gained by 
adding them. But, even variables with relatively high correlation (or anti - correlation) 
do  not  guarantee  absence  of  variables ’   complementarity.  We  can  ﬁ nd  cases  where  a 
feature looks completely useless by itself, and it is ranked very low, but it can provide 
signiﬁ cant information to the model and performance improvement when taken with 
others. These features by themselves may have little correlation with the output, target 
concept, but when combined with some other features, they can be strongly correlated 
with the target feature. Unintentional removal of these features can result in poor mining 
performance. 

 The  previous  simple  methods  test  features  separately.  Several  features  may  be 
useful  when  considered  separately,  but  they  may  be  redundant  in  their  predictive 
ability.  If  the  features  are  examined  collectively,  instead  of  independently,  additional 
information can be obtained about their characteristics and mutual relations. Assuming 
normal  distributions  of  values,  it  is  possible  to  describe  an  efﬁ cient  technique  for 
selecting  subsets  of  features.  Two  descriptors  characterize  a  multivariate  normal 
distribution:

   1.      M, a vector of the m feature means, and  
  2.      C, an m    ×    m covariance matrix of the means, where C i,i  are simply the variance 

of feature i, and C i,j  terms are correlations between each pair of features

n

∑1
n
/

=

   C

i j
,

=
1

k

 where 

((( ( , )

−
v k i m i

( ))

∗

−
v k j m j
( ( , )

( )))

  v(k,i) and v(k,j) are the values of features indexed with i and j,  
  m(i) and m(j) are feature means, and  
  n is the number of dimensions.    

 These two descriptors, M and C, provide a basis for detecting redundancies in a 
set of features. If two classes exist in a data set, then the heuristic measure, DM, for 
ﬁ ltering features that separate the two classes is deﬁ ned as

   
FEATURE  REDUCTION 

63

−
   DM M M C C

)(

+

=

(

1

2

1

−
1

(

)

2

−
M M T
)

1

2

where M 1  and C 1  are descriptors of samples for the ﬁ rst class, and M 2  and C 2  for the 
second class. Given the target of k best features, all subsets of k from m features must 
be evaluated to ﬁ nd the subset with the largest DM. With large data sets that have large 
numbers of features, this can be a huge search space, and alternative heuristic methods 
should  be  considered.  One  of  these  methods  selects  and  ranks  features  based  on  an 
entropy  measure.  Detailed  explanations  are  given  in  Section   3.4 . The  other  heuristic 
approach, explained in the following, is based on a combined correlation and covariance 
analyses and ranking of all features. 

 Existing  efﬁ cient  feature - selection  algorithms  usually  rank  features  under  the 
assumption  of  feature  independence.  Under  this  framework,  features  are  ranked  as 
relevant  mainly  based  on  their  individual  high  correlations  with  the  output  feature. 
Because of the irreducible nature of feature interactions, these algorithms cannot select 
interacting features. In principle, it can be shown that a feature is relevant due to two 
reasons:  (1)  It  is  strongly  correlated  with  the  target  feature,  or  (2)  it  forms  a  feature 
subset  and  the  subset  is  strongly  correlated  with  the  target.  A  heuristic  approach  is 
developed to analyze features of type (2) in the selection process. 

 In the ﬁ rst part of a selection process, the features are ranked in descending order 
based on their correlation values with output using a previously deﬁ ned technique. We 
may assume that a set of features S can be divided into subset S1 including relevant 
features,  and  subset  S2  containing  irrelevant  ones.  Heuristically,  critical  for  removal 
are features in S2 ﬁ rst, while features in S1 are more likely to remain in the ﬁ nal set 
of selected features. 

 In the second part, features are evaluated one by one starting from the end of the 
S2 ranked feature list. The monotonic property suggests that the backward elimination 
search strategy ﬁ ts best in feature selection. That is, one can start with the full feature 
set and successively eliminate features one at a time from the bottom of the ranked list 
if their interaction does not contribute to better correlation with output. The criterion 
could be, for example, based on a covariance matrix. If a feature, together with previ-
ously selected features, shows inﬂ uence on the output with less than threshold value 
(it could be expressed through some covariance matrix factor), the feature is removed; 
otherwise it is selected. Backward elimination allows every feature to be evaluated with 
the features it may interact with. The algorithm repeats until all features in the S2 list 
are checked.  

   3.2.2  

  Feature Extraction 

 The art of data mining starts with the design of appropriate data representations. Better 
performance is often achieved using features derived from the original input. Building 
a feature representation is an opportunity to incorporate domain knowledge into the data 
and can be very application - speciﬁ c. Transforming the input set into a new, reduced set 
of features is called  feature extraction . If the features extracted are carefully chosen, it 
is expected that the new feature set will extract the relevant information from the input 
data in order to perform the desired data - mining task using this reduced representation. 

 
64 

DATA  REDUCTION

 Feature - transformation  techniques  aim  to  reduce  the  dimensionality  of  data  to  a 
small number of dimensions that are linear or nonlinear combinations of the original 
dimensions. Therefore, we distinguish two major types of dimension - reduction methods: 
linear and nonlinear. Linear techniques result in  k  new derived features instead of initial 
p  (k    <<    p).  Components  of  the  new  feature  are  a  linear  combination  of  the  original 
features:

=
   s w x
1 1
,

i

i

+

…

+

w x
,
i p

p

for i

=

1
,

…  
k
,

or in a matrix form

=

   s W x

where  W k × p   is  the  linear  transformation  weight  matrix.  Such  linear  techniques  are 
simpler  and  easier  to  implement  than  more  recent  methods  considering  nonlinear 
transforms. 

 In general, the process reduces feature dimensions by combining features instead 
of by deleting them. It results in a new set of fewer features with totally new values. 
One well - known approach is merging features by  principal components . The features 
are examined collectively, merged, and transformed into a new set of features that, it 
is  hoped,  will  retain  the  original  information  content  in  a  reduced  form.  The  basic 
transformation is linear. Given p features, they can be transformed into a single new 
feature F ′  by the simple application of weights:

p

∑F
′ =

=
1

j

( )
w j

⋅

(
f j)

 Most likely, a single set of weights, w(j), will not be an adequate transformation 
for  a  complex  multidimensional  data  set,  and  up  to  p  transformations  are  generated. 
Each vector of p features combined by weights w is called a principal component, and 
it deﬁ nes a new transformed feature. The ﬁ rst vector of m weights is expected to be 
the strongest, and the remaining vectors are ranked according to their expected useful-
ness in reconstructing the original data. Eliminating the bottom - ranked transformation 
will reduce dimensions. The complexity of computation increases signiﬁ cantly with the 
number  of  features.  The  main  weakness  of  the  method  is  that  it  makes  an  advance 
assumption to a linear model that maximizes the variance of features. Formalization of 
PCA and the basic steps of the corresponding algorithm for selecting features are given 
in Section  3.4 . 

 Examples of additional methodologies in feature extraction include factor analysis 
(FA),  independent  component  analysis  (ICA),  and  multidimensional  scaling  (MDS). 
Probably  the  last  one  is  the  most  popular  and  it  represents  the  basis  for  some  new, 
recently developed techniques. Given n samples in a p - dimensional space and an n    ×    n 
matrix  of  distances  measures  among  the  samples,  MDS  produces  a  k - dimensional 
(k    <<    p) representation of the items such that the distances among the points in the new 
space reﬂ ect the distances in the original data. A variety of distance measures may be 

 
   
  
FEATURE  REDUCTION 

65

used in the technique and the main characteristics for all these measures is: The more 
similar two samples are, the smaller their distance is. Popular distance measures include 
the Euclidean distance (L2 norm), the Manhattan distance (L1, absolute norm), and the 
maximum norm; more details about these measures and their applications are given in 
Chapter  9 . MDS has been typically used to transform the data into two or three dimen-
sions; visualizing the result to uncover hidden structure in the data. A rule of thumb to 
determine the maximum number of k is to ensure that there are at least twice as many 
pairs of samples than the number of parameters to be estimated, resulting in p    ≥    k    +    1. 
Results of the MDS technique are indeterminate with respect to translation, rotation, 
and reﬂ ection of data. 

 PCA and metric MDS are both simple methods for linear dimensionality reduction, 
where  an  alternative  to  MDS  is  FastMap,  a  computationally  efﬁ cient  algorithm. The 
other  variant,   Isomap ,  has  recently  emerged  as  a  powerful  technique  for  nonlinear 
dimensionality reduction and is primarily a graph - based method. 

  Isomap   is  based  on  computing  the  low - dimensional  representation  of  a  high -
 dimensional data set that most faithfully preserves the pairwise distances between input 
samples  as  measured  along  geodesic  distance  (details  about  geodesic  are  given  in 
Chapter   12 ,  the  section  about  graph  mining).  The  algorithm  can  be  understood  as  a 
variant of MDS in which estimates of geodesic distances are substituted for standard 
Euclidean distances. 

 The algorithm has three steps. The ﬁ rst step is to compute the k - nearest neighbors 
of each input sample, and to construct a graph whose vertices represent input samples 
and whose (undirected) edges connect k - nearest neighbors. The edges are then assigned 
weights based on the Euclidean distance between nearest neighbors. The second step 
is to compute the pairwise distances between all nodes (i, j) along shortest paths through 
the graph. This can be done using the well - known Djikstra ’ s algorithm with complexity 
 O ( n  2 log n     +     n  2  k ).  Finally,  in  the  third  step,  the  pairwise  distances  are  fed  as  input  to 
MDS to determine a new reduced set of features. 

 With the amount of data growing larger and larger, all feature - selection (and reduc-
tion)  methods  also  face  a  problem  of  oversized  data  because  of  computers ’   limited 
resources. But do we really need so much data for selecting features as an initial process 
in data mining? Or can we settle for less data? We know that some portion of a huge 
data  set  can  represent  it  reasonably  well.  The  point  is  which  portion  and  how  large 
should it be. Instead of looking for the right portion, we can randomly select a part, P, 
of a data set, use that portion to ﬁ nd the subset of features that satisfy the evaluation 
criteria, and test this subset on a different part of the data. The results of this test will 
show whether the task has been successfully accomplished. If an inconsistency is found, 
we shall have to repeat the process with a slightly enlarged portion of the initial data 
set. What should be the initial size of the data subset P? Intuitively, we know that its 
size  should  not  be  too  small  or  too  large. A  simple  way  to  get  out  of  this  dilemma 
is  to  choose  a  percentage  of  data,  say  10%. The  right  percentage  can  be  determined 
experimentally. 

 What  are  the  results  of  a  feature - reduction  process,  and  why  do  we  need  this 
process for every speciﬁ c application? The purposes vary, depending upon the problem 
on hand, but, generally, we want 

66 

DATA  REDUCTION

  1.      to   improve  performances   of  the  model - generation  process  and  the  resulting 
model  itself  (typical  criteria  are  speed  of  learning,  predictive  accuracy,  and 
simplicity of the model);  

  2.      to  reduce dimensionality  of the model without reduction of its quality through 

   (a)      elimination of irrelevant features,  
  (b)      detection and elimination of redundant data and features,  
  (c)      identiﬁ cation of highly correlated features, and  
  (d)      extraction of independent features that determine the model; and    

  3.      to help the user  visualize  alternative results, which have fewer dimensions, to 

improve decision making.      

   3.3  

  RELIEF ALGORITHM 

 Relieﬁ s a feature weight - based algorithm for feature selection inspired by the so - called 
instance - based  learning.  It  relies  on  relevance  evaluation  of  each  feature  given  in  a 
training data set, where samples are labeled (classiﬁ cation problems). The main idea 
of Relief is to compute a ranking score for every feature indicating how well this feature 
separates neighboring samples. The authors of the Relief algorithm, Kira and Rendell, 
proved that the ranking score is large for relevant features and small for irrelevant ones. 
 The core of the Relief algorithm is to estimate the quality of features according to 
how well their values distinguish between samples close to each other. Given training 
data  S,  the  algorithm  randomly  selects  subset  of  samples  size  m,  where  m  is  a  user -
 deﬁ ned parameter. Relief analyzes each feature based on a selected subset of samples. 
For each randomly selected sample X from a training data set, Relief searches for its 
two nearest neighbors: one from the same class, called nearest hit H, and the other one 

x2

Dhit
Dmiss

nearest hit

nearest miss

x1

Dhit

Dmiss

     Figure 3.2.      Determining nearest hit H and nearest miss M samples.  

RELIEF  ALGORITHM 

67

from a different class, called nearest miss M. An example for two - dimensional data is 
given in Figure  3.2 .   

 The Relief algorithm updates the quality score W(A i ) for all feature A i  depending 

on the differences on their values for samples X, M, and H:

   W A W A
)
i

new

old

(

(

=

−

(

)

i

diff X A H A

],

[

(

[

i

+2

])

i

diff X A M A
i

],

[

[

(

]) ) /

2 mm   

i

 The process is repeated m times for randomly selected samples from the training 
data set and the scores W(A i ) are accumulated for each sample. Finally, using threshold 
of relevancy  τ , the algorithm detects those features that are statistically relevant to the 
target classiﬁ cation, and these are the features with W(A i )    ≥     τ . We assume the scale of 
every feature is either nominal (including Boolean) or numerical (integer or real). The 
main steps of the Relief algorithm may be formalized as follows: 

  Initialize : W(A j )    =    0; i    =    1,    . . .    , p (p is the number of features) 

 For i    =    1 to m 

  Randomly select sample X from training data set S.  
  Find nearest hit H and nearest miss M samples.    

 For j    =    1 to p   

=
   W A W A
)

(

(

j

−

(

)

j

diff X A H A

],

(

[

[

j

+2

])

j

diff X A M A
j

],

[

(

[

2
]) ) /

m

j

  End  .  

  End.    

  Output : Subset of feature where W(A j )    ≥     τ  

 For example, if the available training set is given in Table  3.2  with three features 
(the last one of them is classiﬁ cation decision) and four samples, the scoring values W 
for the features F 1  and F 2  may be calculated using Relief:

   W F(
1

)

=

(

0

+ − +

1 4

[

+ − +

1 9

[

]

]

+ − +

1 9

[

]

+ − +

1 4

[

]) /

4

=

5 5
.

   W F(
2

)

=

(

0

+ − +

1 4

[

]

+ − + + − +
1 1
]

1 4

[

[

]

+ − +

1 1

[

]) /

=
4 1 5

.

  TAB LE 3.2.     Training Data Set for Applying 
 Relief  Algorithm 

   Sample  

  1  
  2  
  3  
  4  

   F 1   

  3  
  2  
  6  
  5  

   F 2   

  4  
  5  
  7  
  6  

   Class  

  C1  
  C1  
  C2  
  C2  

   
 
    
68 

DATA  REDUCTION

 In  this  example  the  number  of  samples  is  low  and  therefore  we  use  all  samples 
(m    =    n) to estimate the feature scores. Based on the previous results feature F 1  is much 
more relevant in classiﬁ cation than feature F 2 . If we assign the threshold value of  τ     =    5, 
it is possible to eliminate feature F 2  and build the classiﬁ cation model only based on 
feature F 1 . 

 Relief is a simple algorithm that relies entirely on a statistical methodology. The 
algorithm employs few heuristics, and therefore it is efﬁ cient — its computational com-
plexity  is  O(mpn).  With  m,  number  of  randomly  selected  training  samples,  being  a 
user - deﬁ ned constant, the time complexity becomes O(pn), which makes it very scal-
able to data sets with both a huge number of samples  n  and a very high dimensionality 
p. When n is very large, it is assumed that m    <<    n. It is one of the few algorithms that 
can evaluate features for real - world problems with large feature space and large number 
of  samples.  Relief  is  also  noise - tolerant  and  is  unaffected  by  feature  interaction,  and 
this is especially important for hard data - mining applications. However, Relief does not 
help with removing redundant features. As long as features are deemed relevant to the 
class concept, they will be selected even though many of them are highly correlated to 
each other. 

 One of the Relief problems is to pick a proper value of  τ . Theoretically, using the 

so - called Cebysev ’ s inequality  τ  may be estimated  :

   τ

(cid:1) 1/

α

(

)m   

 While the above formula determines  τ  in terms of  α  (data - mining model accuracy) 
and m (the training data set size), experiments show that the score levels display clear 
contrast  between  relevant  and  irrelevant  features  so   τ   can  easily  be  determined  by 
inspection. 

 Relief  was  extended  to  deal  with  multi - class  problems,  noise,  redundant,  and 
missing data. Recently, additional feature - selection methods based on feature weighting 
are proposed including ReliefF, Simba, and I - Relief, and they are improvements of the 
basic Relief algorithm.  

   3.4  

  ENTROPY MEASURE FOR RANKING FEATURES 

 A method for unsupervised feature selection or ranking based on entropy measure is a 
relatively simple technique, but with a large number of features its complexity increases 
signiﬁ cantly. The basic assumption is that all samples are given as vectors of a feature ’ s 
values  without  any  classiﬁ cation  of  output  samples.  The  approach  is  based  on  the 
observation that removing an irrelevant feature, a redundant feature, or both from a set 
may not change the basic characteristics of the data set. The idea is to remove as many 
features  as  possible  and  yet  maintain  the  level  of  distinction  between  the  samples  in 
the data set as if no features had been removed. The algorithm is based on a similarity 
measure S that is in inverse proportion to the distance D between two n - dimensional 
samples. The distance measure D is small for close samples (close to 0) and large for 
distinct pairs (close to one). When the features are numeric, the similarity measure S 
of two samples can be deﬁ ned as

ENTROPY  MEASURE  FOR  RANKING  FEATURES 

69

   S
ij

= −α
e

Dij

where D ij  is the distance between samples x i  and x j  and  α  is a parameter mathematically 
expressed as

   α = −(ln . ) /

0 5 D   

 D is the average distance among samples in the data set. Hence,  α  is determined 
by  the  data.  But,  in  a  successfully  implemented  practical  application,  it  was  used  a 
constant value of  α     =    0.5. Normalized Euclidean distance measure is used to calculate 
the distance D ij  between two samples x i  and x j :

   D

ij

=





n

∑((

=
1

k

x

ik

−

x

jk

−
) /(max min ))
k

k

2

1 2
/





where n is the number of dimensions and max k  and min k  are maximum and minimum 
values used for normalization of the  k th dimension. 

 All  features  are  not  numeric.  The  similarity  for  nominal  variables  is  measured 

directly using Hamming distance  :

=

   S
ij





n

∑

=
1

k

x

ik

=

x

jk





/

n

where |x ik     =    x jk | is 1 if x ik     =    x jk , and 0 otherwise. The total number of variables is equal 
to n. For mixed data, we can discretize numeric values and transform numeric features 
into nominal features before we apply this similarity measure. Figure  3.3 a is an example 
of a simple data set with three categorical features; corresponding similarities are given 
in Figure  3.3 b.   

 The distribution of all similarities (distances) for a given data set is a characteristic 
of the organization and order of data in an n - dimensional space. This organization may 
be more or less ordered. Changes in the level of order in a data set are the main criteria 
for inclusion or exclusion of a feature from the feature set; these changes may be mea-
sured by entropy. 

 Sample  F

1

2

1

R
R
R
R
4
R5

3

A
B
C
B
C

(a)

F2

X
Y
Y
X
Z

F3

1
2
2
1
3

R1 R2 R3 R4 R5

R1
R2
R3
R4

0/3 0/3 2/3 0/3
2/3   1/3   0/3
0/3 1/3 
0/3

(b)

     Figure 3.3.      A tabular representation of similarity measures S. (a) Data set with three features; 
(b) a table of similarity measures categorical feature S ij  between samples.  

 
 
 
70 

DATA  REDUCTION

 From information theory, we know that entropy is a global measure, and that it is 
less for ordered conﬁ gurations and higher for disordered conﬁ gurations. The proposed 
technique compares the entropy measure for a given data set before and after removal 
of a feature. If the two measures are close, then the reduced set of features will satis-
factorily approximate the original set. For a data set of N samples, the entropy measure 
is

= −

   E

1

N

N

− ∑∑ (

S
ij

×

log

S
ij

+ −
1
(

×

S
ij

)

1
log(

−

S
ij

))

=
1

i

= +
1
i

j

where S ij  is the similarity between samples x i  and x j . This measure is computed in each 
of  the  iterations  as  a  basis  for  deciding  the  ranking  of  features. We  rank  features  by 
gradually removing the least important feature in maintaining the order in the conﬁ gura-
tions of data. The steps of the algorithm are based on sequential backward ranking, and 
they have been successfully tested on several real - world applications.

   1.      Start with the initial full set of feature F.  
  2.      For each feature f ∈ F, remove one feature f from F and obtain a subset F f . Find 
the difference between entropy for F and entropy for all F f . In the example in 
Figure  3.2 , we have to compare the differences (E F     −    E  F - F1 ), (E F     −    E  F - F2 ), and 
(E F     −    E  F - F3 ).  

  3.      Let f k  be a feature such that the difference between entropy for F and entropy 

for F fk  is minimum.  

  4.      Update the set of feature F    =    F    −    {f k }, where  “  –  ”  is a difference operation on 
sets. In our example, if the difference (E F     −    E  F - F1 ) is minimum, then the reduced 
set of features is {F 2 , F 3 }. F 1  becomes the bottom of the ranked list.  

  5.      Repeat steps 2 – 4 until there is only one feature in F.    

 A ranking process may be stopped in any iteration, and may be transformed into 
a process of selecting features, using the additional criterion mentioned in step 4. This 
criterion is that the difference between entropy for F and entropy for F f  should be less 
than  the  approved  threshold  value  to  reduce  feature  f k   from  set  F.  A  computational 
complexity is the basic disadvantage of this algorithm, and its parallel implementation 
could  overcome  the  problems  of  working  with  large  data  sets  and  large  number  of 
features sequentially.  

   3.5  

   PCA  

 The most popular statistical method for dimensionality reduction of a large data set is 
the Karhunen - Loeve (K - L) method, also called  PCA . In various ﬁ elds, it is also known 
as the singular value decomposition (SVD), the Hotelling transform, and the empirical 
orthogonal function (EOF) method. PCA is a method of transforming the initial data 

 
71

PCA 

x2

(cid:127)

(cid:127)

(cid:127)

(cid:127)

(cid:127)

(cid:127)

(cid:127)

     Figure 3.4.      The ﬁ rst principal component is an axis in the direction of maximum variance.  

x1

set represented by vector samples into a new set of vector samples with derived dimen-
sions. The goal of this transformation is to concentrate the information about the dif-
ferences  between  samples  into  a  small  number  of  dimensions.  Practical  applications 
conﬁ rmed that PCA is the best linear dimension - reduction technique in the mean - square 
error sense. Being based on the covariance matrix of the features, it is a second - order 
method. In essence, PCA seeks to reduce the dimension of the data by ﬁ nding a few 
orthogonal linear combinations of the original features with the largest variance. Since 
the variance depends on the scale of the variables, it is customary to ﬁ rst standardize 
each variable to have mean 0 and standard deviation 1. After the standardization, the 
original variables with possibly different units of measurement are all in comparable 
units. 

 More formally, the basic idea can be described as follows: A set of n - dimensional 
vector samples X    =    {x 1 , x 2 , x 3 ,    . . .    , x m } should be transformed into another set Y    =    {y 1 , 
y 2 ,    . . .    , y m } of the same dimensionality, but y - s have the property that most of their 
information content is stored in the ﬁ rst few dimensions. This will allow us to reduce 
the data set to a smaller number of dimensions with low information loss. 

 The transformation is based on the assumption that high information corresponds 
to  high  variance.  So,  if  we  want  to  reduce  a  set  of  input  dimensions  X  to  a  single 
dimension Y, we should transform X into Y as a matrix computation

=
   Y A X

⋅

choosing A such that Y has the largest variance possible for a given data set. The single 
dimension Y obtained in this transformation is called  the ﬁ rst principal component . The 
ﬁ rst principal component is an axis in the direction of maximum variance. It minimizes 
the  distance  of  the  sum  of  squares  between  data  points  and  their  projections  on  the 
component axis, as shown in Figure  3.4  where a two - dimensional space is transformed 
into a one - dimensional space in which the data set has the highest variance.   

 In  practice,  it  is  not  possible  to  determine  matrix  A  directly,  and  therefore  we 
compute the covariance matrix S as a ﬁ rst step in feature transformation. Matrix S is 
deﬁ ned as

 
72 

DATA  REDUCTION

S

×
n n

=

1

/(

n

where x

′ =

( /
1

n

∑

n

−

)
1





n∑ .
)
x

j

j

=
1

(

x

j

− ′
x

T
) (

x

j

− ′
)
x






=
11

j

 The eigenvalues of the covariance matrix S for the given data should be calculated 
in the next step. Finally, the m eigenvectors corresponding to the m largest eigenvalues 
of S deﬁ ne a linear transformation from the n - dimensional space to an m - dimensional 
space in which the features are uncorrelated. To specify the principal components we 
need the following additional explanations about the notation in matrix S:

   1.      The eigenvalues of S  n × n  are  λ  1 ,  λ  2 ,    . . .    ,  λ  n , where

   λ

1

≥

λ

≥

λ
… n
≥

≥

0

.    

2

  2.      The eigenvectors e 1 , e 2 ,    . . .    , e n  correspond to eigenvalues  λ  1 ,  λ  2 ,    . . .    ,  λ  n , and 

they are called the principal axes.    

 Principal axes are new, transformed axes of an n - dimensional space, where the new 
variables are uncorrelated, and variance for the  i th component is equal to the  i th eigen-
value. Because  λ  i  ’ s are sorted, most of the information about the data set is concentrated 
in  a  few  ﬁ rst - principal  components.  The  fundamental  question  is  how  many  of  the 
principal  components  are  needed  to  get  a  good  representation  of  the  data?  In  other 
words, what is the effective dimensionality of the data set? The easiest way to answer 
the question is to analyze the proportion of variance. Dividing the sum of the ﬁ rst m 
eigenvalues by the sum of all the variances (all eigenvalues), we will get the measure 
for the quality of representation based on the ﬁ rst m principal components. The result 
is expressed as a percentage, and if, for example, the projection accounts for over 90% 
of the total variance, it is considered to be good. More formally, we can express this 
ratio in the following way. The criterion for feature selection is based on the ratio of 
the  sum  of  the   m   largest  eigenvalues  of  S  to  the  trace  of  S. That  is  a  fraction  of  the 
variance  retained  in  the  m - dimensional  space.  If  the  eigenvalues  are  labeled  so  that 
 λ  1     ≥     λ  2     ≥     . . .     ≥     λ  n , then the ratio can be written as

=

   R





m

∑

=
1

i

n


∑λ







i

=
1

i

λ

i





 When the ratio R is sufﬁ ciently large (greater than the threshold value), all analyses 
of  the  subset  of  m  features  represent  a  good  initial  estimate  of  the  n - dimensionality 
space. This method is computationally inexpensive, but it requires characterizing data 
with the covariance matrix S. 

 We will use one example from the literature to show the advantages of PCA. The 
initial  data  set  is  the  well - known  set  of  Iris  data,  available  on  the  Internet  for  data -

   
  
  
VALUE  REDUCTION 

73

  TA BLE 3.3.     The Correlation Matrix for Iris Data 

   Feature 1  

   Feature 2  

   Feature 3  

   Feature 4  

  Feature 1  
  Feature 2  
  Feature 3  
  Feature 4  

  1.0000  
   − 0.1094  
  0.8718  
  0.8180  

   − 0.1094  
  1.0000  
   − 0.4205  
   − 0.3565  

  0.8718  
   − 0.4205  
  1.0000  
  0.9628  

  0.8180  
   − 0.3565  
  0.9628  
  1.0000  

  TAB LE 3.4.     The Eigenvalues for Iris Data 

   Feature  

  Feature 1  
  Feature 2  
  Feature 3  
  Feature 4  

   Eigenvalue  

  2.91082  
  0.92122  
  0.14735  
  0.02061  

 mining  experimentation.  This  data  set  has  four  features,  so  every  sample  is  a  four -
 dimensional  vector.  The  correlation  matrix,  calculated  from  the  Iris  data  after 
normalization of all values, is given in Table  3.3 .   

 Based on the correlation matrix, it is a straightforward calculation of eigenvalues 
(in practice, usually, one of the standard statistical packages is used), and these ﬁ nal 
results for the Iris data are given in Table  3.4 .   

 By setting a threshold value for R *     =    0.95, we choose the ﬁ rst two features as the 

subset of features for further data - mining analysis, because

   R =

+
2 91082 0 92122
( .

.

) /( .

+
2 91082 0 92122 0 14735 0 02061
)

+

+

.

.

.

=

0 9588
.

> .

0 95

 For the Iris data, the ﬁ rst two principal components should be adequate description 
of  the  characteristics  of  the  data  set.  The  third  and  fourth  components  have  small 
eigenvalues  and  therefore,  they  contain  very  little  variation;  their  inﬂ uence  on  the 
information content of the data set is thus minimal. Additional analysis shows that based 
on  the  reduced  set  of  features  in  the  Iris  data,  the  model  has  the  same  quality  using 
different data - mining techniques (sometimes the results were even better than with the 
original features). 

 The interpretation of the principal components can be difﬁ cult at times. Although 
they are uncorrelated features constructed as linear combinations of the original features, 
and they have some desirable properties, they do not necessarily correspond to mean-
ingful physical quantities. In some cases, such loss of interpretability is not satisfactory 
to the domain scientists, and they prefer others, usually feature - selection techniques.  

   3.6  

  VALUE REDUCTION 

 A reduction in the number of discrete values for a given feature is based on the second 
set  of  techniques  in  the  data - reduction  phase;  these  are  the   feature - discretization 

  
     
74 

DATA  REDUCTION

Cut points 

Age

0

Child

Adolescent Adult

Middle age

    150 

Elderly 

     Figure 3.5.      Discretization of the  age  feature.  

techniques.  The task of feature - discretization techniques is to discretize the values of 
continuous features into a small number of intervals, where each interval is mapped to 
a discrete symbol. The beneﬁ ts of these techniques are simpliﬁ ed data description and 
easy - to - understand  data  and  ﬁ nal  data - mining  results. Also,  more  data - mining  tech-
niques are applicable with discrete feature values. An  “ old - fashioned ”  discretization is 
made manually, based on our a priori knowledge about the feature. For example, using 
common sense or consensus, a person ’ s age, given at the beginning of a data - mining 
process as a continuous value (between 0 and 150 years), may be classiﬁ ed into cate-
gorical  segments:  child,  adolescent,  adult,  middle  age,  and  elderly.  Cutoff  points  are 
subjectively deﬁ ned (Fig.  3.5 ). Two main questions exist about this reduction process:

   1.      What are the cutoff points?    
  2.      How does one select representatives of intervals?    

 Without  any  knowledge  about  a  feature,  a  discretization  is  much  more  difﬁ cult 
and, in many cases, arbitrary. A reduction in feature values usually is not harmful for 
real - world data - mining applications, and it leads to a major decrease in computational 
complexity. Therefore, we will introduce, in the next two sections, several automated 
discretization techniques. 

 Within a column of a data set (set of feature values), the number of distinct values 
can be counted. If this number can be reduced, many data - mining methods, especially 
the  logic - based  methods  explained  in  Chapter   6 ,  will  increase  the  quality  of  a  data 
analysis. Reducing the number of values by smoothing feature values does not require 
a complex algorithm because each feature is smoothed independently of other features 
and the process is performed only once, without iterations. 

 Suppose that a feature has a range of numeric values, and that these values can be 
ordered from the smallest to the largest using standard greater - than and less - than opera-
tors. This leads naturally to the concept of  placing the values in bins  — partitioning into 
groups with close values. Typically, these bins have a close number of elements. All 
values in a bin will be merged into a single concept represented by a single value —
 usually either the mean or median of the bin ’ s values. The mean or the mode is effective 
for a moderate or large number of bins. When the number of bins is small, the closest 
boundaries of each bin can be candidates for representatives in a given bin. 

 For example, if a set of values for a given feature f is {3, 2, 1, 5, 4, 3, 1, 7, 5, 3}, 

then, after sorting, these values will be organized into an ordered set:

1 1 2 3 3 3 4 5 5 7   
   { ,
, }
,

,

,

,

,

,

,

VALUE  REDUCTION 

75

 Now, it is possible to split the total set of values into three bins with a close number 

of elements in each bin:

1 1 2 3 3 3 4 5 5 7  
   { ,
, }
;

;

,

,

,

,

,

   BIN BIN BIN

;

;

1

2

3

 In  the  next  step,  different  representatives  can  be  selected  for  each  bin.  If  the 
smoothing is performed based on bin modes, the new set of values for each bin will 
be

1 1 1 3 3 3 5 5 5 5  
   { ,
, }
;

, ;

,

,

,

,

   BIN BIN BIN

;

;

2

1

3

 If the smoothing is performed based on mean values, then the new distribution for 

reduced set of values will be

1 33 1 33 1 33 3 3 3 5 25 5 25 5 25 5 25  
   { .
. }
;

;

,

,

.

,

.

,

.

.

,

.

,

,

   BIN BIN BIN

;

;

1

2

3

and ﬁ nally, if all the values in a bin are replaced by the closest of the boundary values, 
the new set will be

1 1 2 3 3 3 4 4 4 7  
   { ,
, }
;

;

,

,

,

,

,

   BIN BIN BIN

;

;

2

1

3

 One  of  the  main  problems  of  this  method  is  to  ﬁ nd  the  best  cutoffs  for  bins.  In 
theory, a decision about cutoffs cannot be made independently of other features. Still, 
heuristic  decisions  for  every  feature  independently  give  good  results  in  many  data -
 mining  applications.  The  value - reduction  problem  can  be  stated  as  an  optimization 
problem in the selection of k bins. Given the number of k bins, distribute the values in 
the bins to minimize the average distance of a value from its bin mean or median. The 
distance is usually measured as the squared distance for a bin mean and as the absolute 
distance for a bin median. This algorithm can be computationally very complex, and a 
modiﬁ ed heuristic procedure is used to produce a near - optimum solution. The procedure 
consists of the following steps:

   1.      Sort all values for a given feature.  
  2.      Assign approximately equal numbers of sorted adjacent values (v i)  to each bin, 

where the number of bins is given in advance.  

  3.      Move  a  border  element  v i   from  one  bin  to  the  next  (or  previous)  when  that 
reduces the global distance error (ER; the sum of all distances from each v i  to 
the mean or mode of its assigned bin).    

  
  
 
  
76 

DATA  REDUCTION

 A simple example of the dynamic bin procedure for feature discretization is given 
next. The set of values for a feature f is {5, 1, 8, 2, 2, 9, 2, 1, 8, 6}. Split them into 
three bins (k    =    3), where the bins will be represented by their modes. The computations 
in the ﬁ rst iteration of the algorithm are 

  1.      Sorted set of values for feature f is {1, 1, 2, 2, 2, 5, 6, 8, 8, 9}  
  2.      Initial bins (k    =    3) are

1 1 2 2 2 5 6 8 8 9  
   { ,
, }
;
,

;

,

,

,

,

   BIN BIN BIN

;

;

1

2

3

  3.      (i) Modes for the three selected bins are {1, 2, 8}. After initial distribution, the 

total error, using absolute distance for modes, is

   ER = + + + + + + + + + =

0 0 1 0 0 3 2 0 0 1 7.    

  4.      (iv) After  moving  two  elements  from  BIN 2   into  BIN 1   and  one  element  from 
BIN 3  to BIN 2  in the next three iterations and obtaining smaller and smaller ER, 
the new and ﬁ nal distribution of elements will be

   f = { ,

1 1 2 2 2 5 6 8 8 9  
, }
,
;

;

,

,

,

,

   Final bins

⇒ 1

BIN BIN BIN

;

;

2

3

 The corresponding modes are {2, 5, 8}, and the total minimized error ER is 4. Any 
additional move of elements between bins will cause an increase in the ER value. 
The ﬁ nal distribution, with medians as representatives, will be the solution for a 
given value - reduction problem.    

 Another very simple method of smoothing feature values is  number approximation 
by rounding . Rounding is a natural operation for humans; it is also natural for a com-
puter, and it involves very few operations. First, numbers with decimals are converted 
to integers prior to rounding. After rounding, the number is divided by the same con-
stant. Formally, these steps are described with the following computations applied to 
the feature value X:

   1.      Integer division: Y    =    int (X/10 k )  
  2.      Rounding:  If  (mod [X,10 k ]    ≥    [10 k /2])  then  Y    =    Y    +    1  
  3.      Integer multiplication: X    =    Y    *    10 k     

 where k is the number of rightmost decimal places to round. For example, the number 
1453  is  rounded  to  1450  if  k    =    1,  rounded  to  1500  if  k    =    2,  and  rounded  to  1000  if 
k    =    3. 

 Given a number of values for a feature as an input parameter of the procedure, this 
simple rounding algorithm can be applied in iterations to reduce these values in large 

   
  
FEATURE  DISCRETIZATION:  CHIMERGE  TECHNIQUE 

77

data sets. First, a feature ’ s values are sorted so that the number of distinct values after 
rounding can be counted. Starting at k    =    1, rounding is performed for all values, and 
the  number  of  distinct  values  counted.  Parameter  k  is  increased  in  the  next  iteration 
until  the  number  of  values  in  the  sorted  list  is  reduced  to  less  than  the  allowable 
maximum, typically in real - world applications between 50 and 100.  

   3.7  

  FEATURE DISCRETIZATION: CHIMERGE TECHNIQUE 

 ChiMerge is one automated discretization algorithm that analyzes the quality of mul-
tiple intervals for a given feature by using  χ  2  statistics. The algorithm determines simi-
larities  between  distributions  of  data  in  two  adjacent  intervals  based  on  output 
classiﬁ cation  of  samples.  If  the  conclusion  of  the   χ  2   test  is  that  the  output  class  is 
independent of the feature ’ s intervals, then the intervals should be merged; otherwise, 
it  indicates  that  the  difference  between  intervals  is  statistically  signiﬁ cant,  and  no 
merger will be performed. 

 ChiMerge algorithm consists of three basic steps for discretization:

   1.      Sort the data for the given feature in ascending order.  
  2.      Deﬁ ne  initial  intervals  so  that  every  value  of  the  feature  is  in  a  separate 

interval.  

  3.      Repeat until no  χ  2  of any two adjacent intervals is less then threshold value.    

 After  each  merger,   χ  2   tests  for  the  remaining  intervals  are  calculated,  and  two 
adjacent features with the  χ  2  values are found. If the calculated  χ  2  is less than the lowest 
threshold, merge these intervals. If no merge is possible, and the number of intervals 
is greater than the user - deﬁ ned maximum, increase the threshold value. 

 The  χ  2  test or the contingency table test is used in the methodology for determining 
the independence of two adjacent intervals. When the data are summarized in a con-
tingency table (its form is represented in Table 3.5), the  χ  2  test is given by the formula:

   χ2

=

k

2

∑∑ (

−
A E
ij

ij

2
) /

E

ij

where

=
1

i

=
1

j

    k       =    the number of classes,  
 A ij        =    the number of instances in the  i th interval,  j th class,  
  E ij        =    the expected frequency of A ij ,  which is computed as (R i  C j )/N,  
  R i        =    the number of instances in the  i th interval    =     ∑  A ij , j    =    1, … , k,  
  C j        =    the number of instances in the  j th class    =     ∑  A ij , i    =    1,2,  
  N       =    the total number of instances    =     ∑  R i , i    =    1,2.    

 If either R i  or C j  in the contingency table is 0, E ij  is set to a small value, for example, 
E ij     =    0.1.  The  reason  for  this  modiﬁ cation  is  to  avoid  very  small  values  in  the 

 
78 

DATA  REDUCTION

denominator of the test. The degree of freedom parameter of the  χ  2  test is for one less 
than the number of classes. When more than one feature has to be discretized, a thresh-
old for the maximum number of intervals and a conﬁ dence interval for the  χ  2  test should 
be deﬁ ned separately for each feature. If the number of intervals exceeds the maximum, 
the algorithm ChiMerge may continue with a new, reduced value for conﬁ dence. 

 For a classiﬁ cation problem with two classes (k    =    2), where the merging of two 
intervals is analyzed, the contingency table for 2    ×    2 has the form given in Table  3.5 . 
A 11  represents the number of samples in the ﬁ rst interval belonging to the ﬁ rst class; 
A 12  is the number of samples in the ﬁ rst interval belonging to the second class; A 21  is 
the number of samples in the second interval belonging to the ﬁ rst class; and ﬁ nally 
A 22  is the number of samples in the second interval belonging to the second class.   

 We  will  analyze  the  ChiMerge  algorithm  using  one  relatively  simple  example, 
where the database consists of 12 two - dimensional samples with only one continuous 
feature  (F)  and  an  output  classiﬁ cation  feature  (K). The  two  values,  1  and  2,  for  the 
feature K represent the two classes to which the samples belong. The initial data set, 
already sorted with respect to the continuous numeric feature F, is given in Table  3.6 .   
 We can start the algorithm of a discretization by selecting the smallest  χ  2  value for 
intervals  on  our  sorted  scale  for  F.  We  deﬁ ne  a  middle  value  in  the  given  data  as  a 

  TAB LE 3.5.     A Contingency Table for 2    ×    2 
Categorical Data 

   Class1  

   Class2  

  Interval - 1  
  Interval - 2  
   ∑   

  A 11   
  A 21   
  C 1   

  A 12   
  A 22   
  C 2   

    ∑   

  R 1   
  R 2   
  N  

  TAB LE 3.6.     Data on the Sorted Continuous 
Feature F with Corresponding Classes K 

   Sample  

  1  
  2  
  3  
  4  
  5  
  6  
  7  
  8  
  9  
  10  
  11  
  12  

   F  

  1  
  3  
  7  
  8  
  9  
  11  
  23  
  37  
  39  
  45  
  46  
  59  

   K  

  1  
  2  
  1  
  1  
  1  
  2  
  2  
  1  
  2  
  1  
  1  
  1  

     
FEATURE  DISCRETIZATION:  CHIMERGE  TECHNIQUE 

79

  TA BLE 3.7.     Contingency Table for Intervals [7.5, 8.5] and 
[8.5, 10] 

  Interval [7.5, 8.5]  
  Interval [8.5, 9.5]  
   ∑   

   K    =    1  

  A 11     =    1  
  A 21     =    1  
  C 1     =    2  

   K    =    2  

  A 12     =    0  
  A 22     =    0  
  C 2     =    0  

    ∑   

  R 1     =    1  
  R 2     =    1  
  N    =    2  

  TA BLE 3.8.     Contingency Table for Intervals [0, 7.5] and 
[7.5, 10] 

  Interval [0, 7.5]  
  Interval [7.5, 10]  
   ∑   

   K    =    1  

  A 11     =    2  
  A 21     =    2  
  C 1     =    4  

   K    =    2  

  A 12     =    1  
  A 22     =    0  
  C 2     =    1  

    ∑   

  R 1     =    3  
  R 2     =    2  
  N    =    5  

splitting interval point. For our example, interval points for feature F are 0, 2, 5, 7.5, 
8.5,  and  10.  Based  on  this  distribution  of  intervals,  we  analyze  all  adjacent  intervals 
trying  to  ﬁ nd  a  minimum  for  the   χ  2   test.  In  our  example,   χ  2   was  the  minimum  for 
intervals  [7.5,  8.5]  and  [8.5,  10].  Both  intervals  contain  only  one  sample,  and  they 
belong to class K    =    1. The initial contingency table is given in Table  3.7 .   

 Based on the values given in the table, we can calculate the expected values

   E11
=

   E12
=

21

   E

.
0 1

=

=/
2 2 1
≈/
0 2
=/
,
2 2 1
≈/

0 2

=

.
0 1

and

and the corresponding  χ  2  test

   E22

   χ2

= −
(
1 1

2
) /

1

+

−
0 0 1

2
. ) /

(

.
0 1

+ −
(
1 1

2
) /

1

+

−
0 0 1

2
. ) /

(

=
.
0 1 0 2

.

 For the degree of freedom d    =    1, and  χ  2     =    0.2    <    2.706 (the threshold value from 
the tables for chi - squared distribution for  α     =    0.1), we can conclude that there are no 
signiﬁ cant differences in relative class frequencies and that the selected intervals can 
be merged. The merging process will be applied in one iteration only for two adjacent 
intervals  with  a  minimum   χ  2   and,  at  the  same  time,  with   χ  2     <    threshold  value.  The 
iterative  process  will  continue  with  the  next  two  adjacent  intervals  that  have  the 
minimum  χ  2 . We will just show one additional step, somewhere in the middle of the 
merging process, where the intervals [0, 7.5] and [7.5, 10] are analyzed. The contin-
gency table is given in Table  3.8 , and expected values are

   E11

=

12 5

=/

.
2 4

 
 
 
 
  
 
     
     
80 

DATA  REDUCTION

  TA BLE 3.9.     Contingency Table for Intervals [0, 10] and 
[10, 42] 

  Interval [0, 10.0]  
  Interval [10.0, 42.0]  
   ∑   

   K    =    1  

  A 11     =    4  
  A 21     =    1  
  C 1     =    5  

   K    =    2  

  A 12     =    1  
  A 22     =    3  
  C 2     =    4  

    ∑   

  R 1     =    5  
  R 2     =    4  
  N    =    9  

   E12

   E21

   E22

=

=

=

.
0 6

3 5

=/
=/
.
8 5 1 6
=/

2 5

.
0 4

while the  χ  2  test is

   χ2

=

−
2 2 4

2
. ) /

(

.
2 4

+ −
(
1 0 6

2
. ) /

.
0 6

+

−
2 1 6

2
. ) /

(

.
1 6

+

−
0 0 4

2
. ) /

(

.
0 4

=

. 334     
0 8

 Selected intervals should be merged into one because, for the degree of freedom 
d    =    1,  χ  2     =    0.834    <    2.706 (for  α     =    0.1). In our example, with the given threshold value 
for  χ  2 , the algorithm will deﬁ ne a ﬁ nal discretization with three intervals: [0, 10], [10, 
42], and [42, 60], where 60 is supposed to be the maximum value for the feature F. We 
can assign to these intervals coded values 1, 2, and 3 or descriptive linguistic values 
low, medium, and high. 

 Additional merging is not possible because the  χ  2  test will show signiﬁ cant differ-
ences between intervals. For example, if we attempt to merge the intervals [0, 10] and 
[10, 42] — contingency table is given in Table  3.9  — and the test results are E 11     =    2.78, 
E 12     =    2.22, E 21     =    2.22, E 22     =    1.78, and  χ  2     =    2.72    >    2.706, the conclusion is that signiﬁ -
cant differences between two intervals exist, and merging is not recommended.    

   3.8  

  CASE REDUCTION 

 Data mining can be characterized as a secondary data analysis in the sense that data 
miners are not involved directly in the data - collection process. That fact may sometimes 
explain  the  poor  quality  of  raw  data.  Seeking  the  unexpected  or  the  unforeseen,  the 
data - mining process is not concerned with optimal ways to collect data and to select 
the initial set of samples; they are already given, usually in large numbers, with a high 
or low quality, and with or without prior knowledge of the problem at hand. 

 The largest and the most critical dimension in the initial data set is the number of 
cases or samples or, in other words, the number of rows in the tabular representation 
of  data.  Case  reduction  is  the  most  complex  task  in  data  reduction. Already,  in  the 
preprocessing  phase,  we  have  elements  of  case  reduction  through  the  elimination  of 
outliers and, sometimes, samples with missing values. But the main reduction process 
is still ahead. If the number of samples in the prepared data set can be managed by the 
selected data - mining techniques, then there is no technical or theoretical reason for case 

 
 
 
     
CASE  REDUCTION 

81

reduction. In real - world data - mining applications, however, with millions of samples 
available, that is not the case. 

 Let  us  specify  two  ways  in  which  the  sampling  process  arises  in  data  analysis. 
First, sometimes the data set itself is merely a sample from a larger, unknown popula-
tion, and sampling is a part of the data - collection process. Data mining is not interested 
in this type of sampling. Second (another characteristic of data mining), the initial data 
set represents an extremely large population and the analysis of the data is based only 
on a subset of samples. After the subset of data is obtained, it is used to provide some 
information about the entire data set. It is often called estimator and its quality depends 
on the elements in the selected subset. A sampling process always causes a sampling 
error. Sampling error is inherent and unavoidable for every approach and every strategy. 
This error, in general, will decrease when the size of subset increases, and it will theo-
retically become nonexistent in the case of a complete data set. Compared with data 
mining of an entire data set, practical sampling possesses one or more of the following 
advantages:  reduced  cost,  greater  speed,  greater  scope,  and  sometimes  even  higher 
accuracy. As yet there is no known method of sampling that ensures that the estimates 
of the subset will be equal to the characteristics of the entire data set. Relying on sam-
pling  nearly  always  involves  the  risk  of  reaching  incorrect  conclusions.  Sampling 
theory and the correct selection of a sampling technique can assist in reducing that risk, 
but not in eliminating it. 

 There are various strategies for drawing a representative subset of samples from a 
data set. The size of a suitable subset is determined by taking into account the cost of 
computation, memory requirements, accuracy of the estimator, and other characteristics 
of the algorithm and data. Generally, a subset size can be determined so that the esti-
mates for the entire data set do not differ by more than a stated margin error in more 
than   δ   of  the  samples.  By  setting  up  a  probability  inequality  P(|e    −    e 0 |    ≥     ε )    ≤     δ ,  we 
solve it for the subset of sample size n, and for a given value  ε  (conﬁ dence limit) and 
 δ  (where 1    −     δ  is the conﬁ dence level). The parameter e stands for an estimate from 
the subset and it is generally a function of the subset size n, while e 0  stands for the true 
value obtained from entire data set. However, e 0  is usually unknown too. In this case, 
a practical way to determine the required size of the data subset can be done as follows: 
In the ﬁ rst step we select a small preliminary subset of samples of size m. Observations 
made based on this subset of data will be used to estimate e 0 . After replacing e 0  in the 
inequality, it is solved for n. If n    ≥    m, additional n    −    m samples are selected in the ﬁ nal 
subset for analysis. If n    ≤    m no more samples are selected, and the preliminary subset 
of data is used as the ﬁ nal. 

 One  possible  classiﬁ cation  of  sampling  methods  in  data  mining  is  based  on  the 

scope of application of these methods, and the main classes are 

  1.      general - purpose sampling methods  
  2.      sampling methods for speciﬁ c domains.    

 In this text we will introduce only some of the techniques that belong to the ﬁ rst 
class because they do not require speciﬁ c knowledge about the application domain and 
may be used for a variety of data - mining applications. 

82 

DATA  REDUCTION

  Systematic sampling  is the simplest sampling technique. For example, if we want 
to  select  50%  of  a  data  set,  we  could  take  every  other  sample  in  a  database.  This 
approach is adequate for many applications and it is a part of many data - mining tools. 
However, it can also lead to unpredicted problems when there are some regularities in 
the database. Therefore, the data miner has to be very careful in applying this sampling 
technique. 

  Random sampling  is a method by which every sample from an initial data set has 
the same chance of being selected in the subset. The method has two variants:  random 
sampling without replacement  and  random sampling with replacement . Random sam-
pling  without  replacement  is  a  popular  technique  in  which  n  distinct  samples  are 
selected  from  N  initial  samples  in  the  data  set  without  repetition  (a  sample  may  not 
occur twice). The advantages of the approach are simplicity of the algorithm and non-
existence of any bias in a selection. In random sampling with replacement, the samples 
are selected from a data set such that all samples are given an equal chance of being 
selected, no matter how often they already have been drawn, that is, any of the samples 
may be selected more than once. Random sampling is not a one - time activity in a data -
 mining process. It is an iterative process, resulting in several randomly selected subsets 
of samples. The two basic forms of a random sampling process are as follows.

   1.      Incremental Sampling .       Mining incrementally larger random subsets of samples 
that have many real - world applications helps spot trends in error and complex-
ity. Experience has shown that the performance of the solution may level off 
rapidly after some percentage of the available samples has been examined. A 
principal  approach  to  case  reduction  is  to  perform  a  data - mining  process  on 
increasingly larger random subsets, to observe the trends in performances, and 
to stop when no progress is made. The subsets should take big increments in 
data sets, so that the expectation of improving performance with more data is 
reasonable. A typical pattern of incremental subsets might be 10, 20, 33, 50, 67, 
and  100%.  These  percentages  are  reasonable,  but  can  be  adjusted  based  on 
knowledge of the application and the number of samples in the data set. The 
smallest subset should be substantial, typically, no fewer than 1000 samples.  
  2.      Average  Sampling .       When  the  solutions  found  from  many  random  subsets  of 
samples of cases are  averaged  or  voted , the combined solution can do as well 
or even better than the single solution found on the full collection of data. The 
price of this approach is the repetitive process of data mining on smaller sets 
of  samples  and,  additionally,  a  heuristic  deﬁ nition  of  criteria  to  compare  the 
several  solutions  of  different  subsets  of  data. Typically,  the  process  of  voting 
between solutions is applied for classiﬁ cation problems (if three solutions are 
class1  and  one  solution  is  class2,  then  the  ﬁ nal  voted  solution  is  class1)  and 
averaging for regression problems (if one solution is 6, the second is 6.5, and 
the third 6.7, then the ﬁ nal averaged solution is 6.4). When the new sample is 
to be presented and analyzed by this methodology, an answer should be given 
by each solution, and a ﬁ nal result will be obtained by comparing and integrat-
ing these solutions with the proposed heuristics.    

REVIEW  QUESTIONS  AND  PROBLEMS 

83

 Two additional techniques,  stratiﬁ ed sampling  and  inverse sampling , may be con-
venient for some data - mining applications. Stratiﬁ ed sampling is a technique in which 
the entire data set is split into nonoverlapping subsets or strata, and sampling is per-
formed for each different stratum independently of another. The combination of all the 
small  subsets  from  different  strata  forms  the  ﬁ nal,  total  subset  of  data  samples  for 
analysis. This  technique  is  used  when  the  strata  are  relatively  homogeneous  and  the 
variance  of  the  overall  estimate  is  smaller  than  that  arising  from  a  simple  random 
sample. Inverse sampling is used when a feature in a data set occurs with rare frequency, 
and  even  a  large  subset  of  samples  may  not  give  enough  information  to  estimate  a 
feature value. In that case, sampling is dynamic; it starts with the small subset and it 
continues  until  some  conditions  about  the  required  number  of  feature  values  are 
satisﬁ ed. 

 For some specialized types of problems, alternative techniques can be helpful in 
reducing  the  number  of  cases.  For  example,  for  time - dependent  data  the  number  of 
samples is determined by the frequency of sampling. The sampling period is speciﬁ ed 
based on knowledge of the application. If the sampling period is too short, most samples 
are repetitive and few changes occur from case to case. For some applications, increas-
ing the sampling period causes no harm and can even be beneﬁ cial in obtaining a good 
data - mining  solution.  Therefore,  for  time - series  data  the  windows  for  sampling  and 
measuring features should be optimized, and that requires additional preparation and 
experimentation with available data. 

  3.9  

 REVIEW QUESTIONS AND PROBLEMS 

       1.     Explain what we gain and what we lose with dimensionality reduction in large data 

sets in the preprocessing phase of data mining.   

    2.     Use one typical application of data mining in a retail industry to explain monoto-

nicity and interruptability of data - reduction algorithms.   

    3.     Given the data set X with three input features and one output feature representing 

the classiﬁ cation of samples, X:

   I 1   

  2.5  
  7.2  
  3.4  
  5.6  
  4.8  
  8.1  
  6.3  

   I 2   

  1.6  
  4.3  
  5.8  
  3.6  
  7.2  
  4.9  
  4.8  

   I 3   

  5.9  
  2.1  
  1.6  
  6.8  
  3.1  
  8.3  
  2.4  

   O  

  0  
  1  
  1  
  0  
  1  
  0  
  1  

      (a)      Rank the features using a comparison of means and variances.  
  (b)      Rank the features using Relief algorithm. Use all samples for the algorithm (m    =    7).      

84 

DATA  REDUCTION

    4.     Given four - dimensional samples where the ﬁ rst two dimensions are numeric and 

the last two are categorical

   X 1   

  2.7  
  3.1  
  4.5  
  5.3  
  6.6  
  5.0  

   X 2   

  3.4  
  6.2  
  2.8  
  5.8  
  3.1  
  4.1  

   X 3   

  1  
  2  
  1  
  2  
  1  
  2  

   X 4   

  A  
  A  
  B  
  B  
  A  
  B  

      (a)      Apply a method for unsupervised feature selection based on entropy measure to reduce 

one dimension from the given data set.  

  (b)      Apply Relief algorithm under the assumption that X4 is output (classiﬁ cation) feature.      

    5.        (a)      Perform bin - based value reduction with the best cutoffs for the following:  

  (i)      the feature I 3  in problem 3 using mean values as representatives for two bins.  
  (ii)      the  feature  X 2   in  problem  4  using  the  closest  boundaries  for  two  bin 

representatives.    

  (b)      Discuss the possibility of applying approximation by rounding to reduce the values of 

numeric attributes in problems 3 and 4.      

    6.     Apply the ChiMerge technique to reduce the number of values for numeric attri-

butes in problem 3. 
 Reduce  the  number  of  numeric  values  for  feature  I 1   and  ﬁ nd  the  ﬁ nal,  reduced 
number of intervals. 
 Reduce  the  number  of  numeric  values  for  feature  I 2   and  ﬁ nd  the  ﬁ nal,  reduced 
number of intervals. 
 Reduce  the  number  of  numeric  values  for  feature  I 3   and  ﬁ nd  the  ﬁ nal,  reduced 
number of intervals. 

 Discuss  the  results  and  beneﬁ ts  of  dimensionality  reduction  obtained  in  (a),  (b), 
and (c).   

    7.     Explain  the  differences  between  averaged  and  voted  combined  solutions  when 

random samples are used to reduce dimensionality of a large data set.   

    8.     How  can  the  incremental - sample  approach  and  the  average - sample  approach  be 

combined to reduce cases in large data sets.   

    9.     Develop a software tool for feature ranking based on means and variances. Input 

data set is represented in the form of ﬂ at ﬁ le with several features.   

    10.     Develop a software tool for ranking features using entropy measure. The input data 

set is represented in the form of a ﬂ at ﬁ le with several features.   

    11.     Implement  the  ChiMerge  algorithm  for  automated  discretization  of  selected  fea-

tures in a ﬂ at input ﬁ le.   

REFERENCES  FOR  FURTHER  STUDY 

85

    12.     Given  the  data  set  F    =    {4,  2,  1,  6,  4,  3,  1,  7,  2,  2},  apply  two  iterations  of   bin 
method for values reduction  with best cutoffs. Initial number of bins is 3. What are 
the ﬁ nal medians of bins, and what is the total minimized error?   

    13.     Assume you have 100 values that are all different, and use equal width discretiza-

tion with 10 bins.
   (a)      What is the largest number of records that could appear in one bin?  
  (b)      What is the smallest number of records that could appear in one bin?  
  (c)      If you use equal height discretization with 10 bins, what is largest number of records 

that can appear in one bin?  

  (d)      If you use equal height discretization with 10 bins, what is smallest number of records 

that can appear in one bin?  

  (e)      Now assume that the maximum value frequency is 20. What is the largest number of 

records that could appear in one bin with equal width discretization (10 bins)?  

  (f)      What about with equal height discretization (10 bins)?         

  3.10  

 REFERENCES FOR FURTHER STUDY 

    Fodor ,  I. K.  ,  A Survey of Dimension Reduction Techniques ,  LLNL Technical Report , June  2002 .  

  The author reviews PCA and FA, respectively, the two most widely used linear dimension -
 reduction methods based on second - order statistics. However, many data sets of interest are 
not realizations from Gaussian distributions. For those cases, higher order dimension - reduction 
methods, using information not contained in the covariance matrix, are more appropriate. It 
includes ICA and method of random projections.  

    Liu ,  H.  ,   H.   Motoda  , eds.,  Instance Selection and Construction for Data Mining ,  Kluwer Academic 

Publishers ,  Boston, MA ,  2001 .  

  Many different approaches have been used to address the data - explosion issue, such as algo-
rithm  scale - up  and  data  reduction.  Instance,  sample,  or  tuple  selection  pertains  to  methods 
that select or search for a representative portion of data that can fulﬁ ll a data - mining task as 
if the whole data were used. This book brings researchers and practitioners together to report 
new  developments  and  applications  in  instance - selection  techniques,  to  share  hard - learned 
experiences in order to avoid similar pitfalls, and to shed light on future development.  

    Liu ,   H.  ,    H.    Motoda  ,   Feature  Selection  for  Knowledge  Discovery  and  Data  Mining ,  (Second 

Printing),  Kluwer Academic Publishers ,  Boston, MA ,  2000 .  

  The book offers an overview of feature - selection methods and provides a general framework 
in order to examine these methods and categorize them. The book uses simple examples to 
show  the  essence  of  methods  and  suggests  guidelines  for  using  different  methods  under 
various circumstances.  

    Liu ,  H.  ,   H.   Motoda  ,  Computational Methods of Feature Selection ,  CRC Press ,  Boston, MA ,  2007 .  

  The  book  represents  an  excellent  surveys,  practical  guidance,  and  comprehensive  tutorials 
from leading experts. It paints a picture of the state - of - the - art techniques that can boost the 
capabilities of many existing data - mining tools and gives the novel developments of feature 
selection that have emerged in recent years, including causal feature selection and Relief. The 
book  contains  real - world  case  studies  from  a  variety  of  areas,  including  text  classiﬁ cation, 
web mining, and bioinformatics.  

86 

DATA  REDUCTION

    Saul ,  L. K.  , et al.,  Spectral Methods for Dimensionality Reduction , in  Semisupervised Learning , 

  B.   Sch ö  ö elkopf  ,   O.   Chapelle   and   A.   Zien   eds.,  MIT Press ,  Cambridge, MA,   2005 .  
  Spectral  methods  have  recently  emerged  as  a  powerful  tool  for  nonlinear  dimensionality 
reduction and manifold learning. These methods are able to reveal low - dimensional structure 
in high - dimensional data from the top or bottom eigenvectors of specially constructed matri-
ces. To analyze data that lie on a low - dimensional sub - manifold, the matrices are constructed 
from sparse weighted graphs whose vertices represent input patterns and whose edges indicate 
neighborhood relations.  

    Van  der  Maaten ,   L.  J.  P.  ,    E.  O.    Postma  ,    H.  J.    Van  den  Herik  ,   Dimensionality  Reduction:  A 

Comparative Review ,  Citeseer , Vol.  10 , February  2007 , pp.  1  –  41 .  
   http://www.cse.wustl.edu/˜mgeotg/readPapers/manifold/maaten2007_survey.pdf   
  In  recent  years,  a  variety  of  nonlinear  dimensionality - reduction  techniques  have  been  pro-
posed that aim to address the limitations of traditional techniques such as PCA. The paper 
presents a review and systematic comparison of these techniques. The performances of the 
nonlinear techniques are investigated on artiﬁ cial and natural tasks. The results of the experi-
ments  reveal  that  nonlinear  techniques  perform  well  on  selected  artiﬁ cial  tasks,  but  do  not 
outperform the traditional PCA on real - world tasks. The paper explains these results by iden-
tifying  weaknesses  of  current  nonlinear  techniques,  and  suggests  how  the  performance  of 
nonlinear dimensionality - reduction techniques may be improved.  

    Weiss ,  S. M.  ,   N.   Indurkhya  ,  Predictive Data Mining: A Practical Guide ,  Morgan Kaufman ,  San 

Francisco, CA ,  1998 .  
  This  book  focuses  on  the  data - preprocessing  phase  in  successful  data - mining  applications. 
Preparation and organization of data and development of an overall strategy for data mining 
are  not  only  time - consuming  processes  but  fundamental  requirements  in  real - world  data 
mining. A  simple  presentation  of  topics  with  a  large  number  of  examples  is  an  additional 
strength of the book.   

 
  4 

LEARNING FROM DATA     

  Chapter Objectives 

     (cid:127)       Analyze 

the  general  model  of 

inductive 

learning 

in  observational 

environments.  

   (cid:127)       Explain how the learning machine selects an approximating function from the 

set of functions it supports.  

   (cid:127)       Introduce  the  concepts  of  risk  functional  for  regression  and  classiﬁ cation 

problems.  

   (cid:127)       Identify  the  basic  concepts  in  statistical  learning  theory  (SLT)  and  discuss  the 
differences  between  inductive  principles,  empirical  risk  minimization  (ERM), 
and structural risk minimization (SRM).  

   (cid:127)       Discuss  the  practical  aspects  of  the  Vapnik - Chervonenkis  (VC)  dimension 

concept as an optimal structure for inductive - learning tasks.  

   (cid:127)       Compare  different  inductive - learning  tasks  using  graphical  interpretation  of 

approximating functions in a two - dimensional (2 - D) space.  

   (cid:127)       Explain the basic principles of support vector machines (SVMs).  

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

87

 
88 

LEARNING  FROM  DATA

   (cid:127)       Specify K nearest neighbor classiﬁ er: algorithm and applications.  
   (cid:127)       Introduce methods for validation of inductive - learning results.     

    Many  recent  approaches  to  developing  models  from  data  have  been  inspired  by 
the learning capabilities of biological systems and, in particular, those of humans. In 
fact, biological systems learn to cope with the unknown, statistical nature of the envi-
ronment in a data - driven fashion. Babies are not aware of the laws of mechanics when 
they learn how to walk, and most adults drive a car without knowledge of the underly-
ing laws of physics. Humans as well as animals also have superior pattern - recognition 
capabilities for such tasks as identifying faces, voices, or smells. People are not born 
with  such  capabilities,  but  learn  them  through  data - driven  interaction  with  the 
environment. 

 It  is  possible  to  relate  the  problem  of  learning  from  data  samples  to  the  general 
notion of inference in classical philosophy. Every predictive - learning process consists 
of two main phases:

   1.      learning  or  estimating  unknown  dependencies  in  the  system  from  a  given  set 

of samples, and  

  2.      using estimated dependencies to predict new outputs for future input values of 

the system.    

 These two steps correspond to the two classical types of inference known as  induc-
tion   (progressing  from  particular  cases — training  data — to  a  general  dependency  or 
model)  and   deduction   (progressing  from  a  general  model  and  given  input  values  to 
particular cases of output values). These two phases are shown graphically in Figure 4 .1 .   
 A  unique  estimated  model  implies  that  a  learned  function  can  be  applied  every-
where,  that  is,  for  all  possible  input  values.  Such  global - function  estimation  can  be 
overkill, because many practical problems require one to deduce estimated outputs only 
for  a  few  given  input  values.  In  that  case,  a  better  approach  may  be  to  estimate  the 
outputs of the unknown function for several points of interest directly from the training 
data without building a global model. Such an approach is called  transductive  inference 
in which a local estimation is more important than a global one. An important applica-

A priori knowledge 
(Assumptions) 

Estimated 

Induction

Deduction

Training data   

Predicted output 

Transduction

     Figure 4.1.      Types of inference: induction, deduction, and transduction.  

 
 
 
LEARNING  MACHINE 

89

tion  of  the   transductive   approach  is  a  process  of  mining  association  rules,  which  is 
described in detail in Chapter  8 . It is very important to mention that the standard for-
malization of machine learning does not apply to this type of inference. 

 The  process  of  inductive  learning  and  estimating  the  model  may  be  described, 
formalized, and implemented using different learning methods. A learning method is 
an  algorithm  (usually  implemented  in  software)  that  estimates  an  unknown  mapping 
(dependency) between a system ’ s inputs and outputs from the available data set, namely, 
from known samples. Once such a dependency has been accurately estimated, it can 
be  used  to  predict  the  future  outputs  of  the  system  from  the  known  input  values. 
Learning from data has been traditionally explored in such diverse ﬁ elds as statistics, 
engineering, and computer science. Formalization of the learning process and a precise, 
mathematically  correct  description  of  different  inductive - learning  methods  were  the 
primary tasks of disciplines such as SLT and artiﬁ cial intelligence. In this chapter, we 
will introduce the basics of these theoretical fundamentals for inductive learning.  

   4.1  

  LEARNING MACHINE 

 Machine learning, as a combination of artiﬁ cial intelligence and statistics, has proven 
to  be  a  fruitful  area  of  research,  spawning  a  number  of  different  problems  and  algo-
rithms for their solution. These algorithms vary in their goals, in the available training 
data sets, and in the learning strategies and representation of data. All of these algo-
rithms, however, learn by searching through an n - dimensional space of a given data set 
to  ﬁ nd  an  acceptable  generalization.  One  of  the  most  fundamental  machine - learning 
tasks  is   inductive  machine  learning   where  a  generalization  is  obtained  from  a  set  of 
samples, and it is formalized using different techniques and models. 

 We can deﬁ ne inductive learning as the process of estimating an unknown input –
 output dependency or structure of a system, using limited number of observations or 
measurements of inputs and outputs of the system. In the theory of inductive learning, 
all data in a learning process are organized, and each instance of input – output pairs we 
use  a  simple  term  known  as  a  sample.  The  general  learning  scenario  involves  three 
components, represented in Figure 4 .2 .

   1.      a generator of random input vectors X,    
  2.      a system that returns an output Y for a given input vector X, and  

Generator
of Inputs

X

Learning
Machine 

System

Y′

Y

     Figure 4.2.      A learning machine uses observations of the system to form an approximation 
of its output.  

90 

LEARNING  FROM  DATA

  3.      a learning machine that estimates an unknown (input X, output Y ´ ) mapping of 

the system from the observed (input X, output Y) samples.    

 This formulation is very general and describes many practical, inductive - learning 
problems such as interpolation, regression, classiﬁ cation, clustering, and density esti-
mation. The generator produces a random vector X, which is drawn independently from 
any  distribution.  In  statistical  terminology,  this  situation  is  called  an  observational 
setting.  It  differs  from  the  designed - experiment  setting,  which  involves  creating  a 
deterministic sampling scheme, optimal for a speciﬁ c analysis according to experimen-
tal design theory. The learning machine has no control over which input values were 
supplied to the system, and therefore, we are talking about an observational approach 
in inductive machine - learning systems. 

 The second component of the inductive - learning model is the system that produces 
an  output  value Y  for  every  input  vector  X  according  to  the  conditional  probability 
p(Y/X),  which  is  unknown.  Note  that  this  description  includes  the  speciﬁ c  case  of  a 
deterministic  system  where  Y    =    f(X).  Real - world  systems  rarely  have  truly  random 
outputs; however, they often have unmeasured inputs. Statistically, the effects of these 
unobserved  inputs  on  the  output  of  the  system  can  be  characterized  as  random  and 
represented with a probability distribution. 

 An inductive - learning machine tries to form generalizations from particular, true 
facts, which we call the training data set. These generalizations are formalized as a set 
of  functions  that  approximate  a  system ’ s  behavior.  This  is  an  inherently  difﬁ cult 
problem, and its solution requires a priori knowledge in addition to data. All inductive -
 learning methods use a priori knowledge in the form of the selected class of approxi-
mating functions of a learning machine. In the most general case, the learning machine 
is capable of implementing a set of functions f(X, w), w    ∈    W, where X is an input, w 
is a parameter of the function, and W is a set of abstract parameters used only to index 
the set of functions. In this formulation, the set of functions implemented by the learn-
ing machine can be any set of functions. Ideally, the choice of a set of approximating 
functions reﬂ ects a priori knowledge about the system and its unknown dependencies. 
However,  in  practice,  because  of  the  complex  and  often  informal  nature  of  a  priori 
knowledge, specifying such approximating functions may be, in many cases, difﬁ cult 
or impossible. 

 To explain the selection of approximating functions, we can use a graphical inter-
pretation  of  the  inductive - learning  process.  The  task  of  inductive  inference  is  this: 
Given a collection of samples (xi, f[xi]), return a function h(x) that approximates f(x). 
The function h(x) is often called a hypothesis. Figure 4 .3  shows a simple example of 

(a)

(b)

(c)

(d)

     Figure 4.3.      Three hypotheses for a given data set.  

LEARNING  MACHINE 

91

this task, where the points in 2 - D are given in Figure 4 .3 a, and it is necessary to ﬁ nd 
 “ the best ”  function through these points. The true f(x) is unknown, so there are many 
choices for h(x). Without more knowledge, we have no way of knowing which one to 
prefer among three suggested solutions (Fig.  4.3 b,c,d). Because there are almost always 
a  large  number  of  possible,  consistent  hypotheses,  all  learning  algorithms  search 
through the solution space based on given criteria. For example, the criterion may be 
a linear approximating function that has a minimum distance from all given data points. 
This a priori knowledge will restrict the search space to the functions in the form given 
in Figure 4 .3 b.   

 There  is  also  an  important  distinction  between  the  two  types  of  approximating 
functions we usually use in an inductive - learning process. Their parameters could be 
 linear or nonlinear.  Note that the notion of linearity is with respect to parameters rather 
than input variables. For example, polynomial regression in the form

n
   Y w x w x

+

=

2

1

−
1

n

+

0…
+
w

 is  a  linear  method,  because  the  parameters  w i   in  the  function  are  linear  (even  if  the 
function by itself is nonlinear). We will see later that some learning methods such as 
multilayer, artiﬁ cial, neural networks provide an example of nonlinear parametrization, 
since  the  output  of  an  approximating  function  depends  nonlinearly  on  parameters. A 
typical factor in these functions is e  − ax , where a is a parameter and x is the input value. 
Selecting the approximating functions f(X, w) and estimating the values of parameters 
w are typical steps for every inductive - learning method. 

 Before further formalization of a learning process, it is necessary to make a clear 
distinction between two concepts that are highly connected with a learning process. Let 
us discuss the differences between  statistical dependency and causality.  The statistical 
dependency between input X and output Y is expressed with the approximating func-
tions of the learning method. The main point is that causality cannot be inferred from 
data  analysis  alone  and  concluded  with  some  inductive,  learned  model  using  input –
 output approximating functions, Y    =    f(X, w); instead, it must be assumed or demon-
strated by arguments outside the results of inductive - learning analysis. For example, it 
is well known that people in Florida are on average older than in the rest of the United 
States. This observation may be supported by inductive - learning dependencies, but it 
does not imply, however, that the climate in Florida causes people to live longer. The 
cause is totally different; people just move there when they retire and that is possibly 
the cause, and maybe not the only one, of people being older in Florida than elsewhere. 
Similar misinterpretation could be based on the data analysis of life expectancy for a 
married versus a single man. Statistics show that the married man lives longer than the 
single man. But do not hurry with sensational causality and conclusions: that marriage 
is good for one ’ s health and increases life expectancy. It can be argued that males with 
physical  problems  and/or  socially  deviant  patterns  of  behavior  are  less  likely  to  get 
married, and this could be one of possible explanations why married men live longer. 
Unobservable factors such as a person ’ s health and social behavior are more likely the 
cause of changed life expectancy, and not the observed variable, marriage status. These 
illustrations  should  lead  us  to  understand  that  inductive - learning  processes  build  the 

  
92 

LEARNING  FROM  DATA

model  of  dependencies  but  they  should  not  automatically  be  interpreted  as  causality 
relations. Only experts in the domain where the data are collected may suggest addi-
tional, deeper semantics of discovered dependencies. 

 Let us return again to the learning machine and its task of system modeling. The 
problem  encountered  by  the  learning  machine  is  to  select  a  function  from  the  set  of 
functions this machine supports, which best approximates the system ’ s responses. The 
learning machine is limited to observing a ﬁ nite number of samples  n  in order to make 
this selection. The ﬁ nite number of samples, which we call a training data set, is denoted 
by (X i , y i ), where i    =    1,    . . .    , n. The quality of an approximation produced by the learn-
ing machine is measured by the  loss function  L(y, f[X, w]), where 

   (cid:127)       y is the output produced by the system,  
   (cid:127)       X is a set of inputs,  
   (cid:127)       f(X, w) is the output produced by the learning machine for a selected approximat-

ing function, and  

   (cid:127)       w is the set of parameters in the approximating functions.    

 L measures the difference between the outputs produced by the system y i  and that 
produced by the learning machine f(X i ,w) for every input point X i . By convention, the 
loss function is nonnegative, so that large positive values correspond to poor approxi-
mation, and small positive values close to 0 show a good approximation. The expected 
value of the loss is called the  risk functional  R(w)

(
   R w

)

= ∫∫

(
L y f X w p X y dX dy

( , [

])

)

,

,

where L(y, f[X, w])is a loss function and p(X, y) is a probability distribution of samples. 
The R(w) value, for a selected approximating functions, is dependent only on a set of 
parameters w. Inductive learning can be now deﬁ ned as the process of estimating the 
function f(X,w opt ), which minimizes the risk functional R(w) over the set of functions 
supported by the learning machine, using only the training data set, and not knowing 
the probability distribution p(X, y). With ﬁ nite data, we cannot expect to ﬁ nd f(X, w opt ) 
*  of the optimal solu-
*
exactly, so we denote   f X wopt
tion w opt  obtained with ﬁ nite training data using some learning procedure. 

) as the estimate of parameters   wopt

(

,

 For common learning problems such as classiﬁ cation or regression, the nature of 
the loss function and the interpretation of risk functional are different. In a two - class 
classiﬁ cation  problem,  where  the  output  of  the  system  takes  on  only  two  symbolic 
values, y    =    {0, 1}, corresponding to the two classes, a commonly used loss function 
measures the classiﬁ cation error.

   L y f X w

( , (

,

=

))

0




1

if y

if y

=

≠

,
f X w
(

)

,
f X w
(

)

 Using this loss function, the risk functional quantiﬁ es the  probability of misclas-
siﬁ cation .  Inductive  learning  becomes  a  problem  of  ﬁ nding  the  classiﬁ er  function 

 
  
SLT 

93

f(X,  w),  which  minimizes  the  probability  of  misclassiﬁ cation  using  only  the  training 
data set. 

 Regression is a process of estimating a real - value function based on a ﬁ nite data 
set  of  noisy  samples.  A  common  loss  function  for  regression  is  the  squared  error 
measure

   L y f X w
( , [

,

])

=

(

−

[
y f X w

,

])

2   

 The corresponding risk functional measures the  accuracy  of the learning machine ’ s 
predictions of the system output. Maximum accuracy will be obtained by minimizing 
the risk functional because, in that case, the approximating function will describe the 
best set of given samples. Classiﬁ cation and regression are only two of many typical 
learning tasks. For the other data - mining tasks, different loss functions may be selected 
and they are supported with different interpretations of a risk functional. 

 What is a learning procedure? Or how should a learning machine use training data? 
The answer is given by the concept known as  inductive principle . An inductive principle 
is a general prescription for obtaining an estimate f(X,w opt  * ) in the class of approximat-
ing functions from the available ﬁ nite training data. An inductive principle tells us  what  
to do with the data, whereas the learning method speciﬁ es  how  to obtain an estimate. 
Hence a learning method or learning algorithm is a constructive implementation of an 
inductive principle. For a given inductive principle, there are many learning methods 
corresponding to a different set of functions of a learning machine. The important issue 
here is to choose the candidate models (approximating functions of a learning machine) 
of the right complexity to describe the training data. 

 The mathematical formulation and formalization of the learning problem explained 
in  this  section  may  give  the  unintended  impression  that  learning  algorithms  do  not 
require human intervention, but this is clearly not the case. Even though available lit-
erature is concerned with the formal description of learning methods, there is an equally 
important, informal part of any practical learning system. This part involves such practi-
cal and human - oriented issues as selection of the input and output variables, data encod-
ing and representation, and incorporating a priori domain knowledge into the design of 
a learning system. In many cases, the user also has some inﬂ uence over the generator 
in terms of the sampling rate or distribution. The user very often selects the most suit-
able set of functions for the learning machine based on his/her knowledge of the system. 
This part is often more critical for an overall success than the design of the learning 
machine itself. Therefore, all formalizations in a learning theory are useful only if we 
keep in mind that inductive learning is a process in which there is some overlap between 
activities that can be formalized and others that are not a part of formalization.  

   4.2  

   SLT  

 SLT is relatively new, but it is perhaps one of the best currently available formalized 
theories for ﬁ nite - sample inductive learning. It is also known as the Vapnik - Chervonenkis 
(VC) theory. It rigorously deﬁ nes all the relevant concepts for inductive learning and 

94 

LEARNING  FROM  DATA

provides  mathematical  proofs  for  most  inductive - learning  results.  In  contrast,  other 
approaches such as neural networks, Bayesian inference, and decision rules are more 
engineering - oriented,  with  an  emphasis  on  practical  implementation  without  needing 
strong theoretical proofs and formalizations. 

 SLT  effectively  describes  statistical  estimation  with  small  samples.  It  explicitly 
takes into account the sample size and provides quantitative description of the trade - off 
between the complexity of the model and the available information. The theory includes, 
as a special case, classical statistical methods developed for large samples. Understanding 
SLT  is  necessary  for  designing  sound,  constructive  methods  of  inductive  learning. 
Many  nonlinear  learning  procedures  recently  developed  in  neural  networks,  artiﬁ cial 
intelligence, data mining, and statistics can be understood and interpreted in terms of 
general SLT principles. Even though SLT is quite general, it was originally developed 
for pattern recognition or classiﬁ cation problems. Therefore, the widely known, practi-
cal  applications  of  the  theory  are  mainly  for  classiﬁ cation  tasks.  There  is  growing 
empirical evidence, however, of successful application of the theory to other types of 
learning problems. 

 The goal of inductive learning is to estimate unknown dependencies in a class of 
approximating functions using available data. The optimal estimate corresponds to the 
minimum expected risk functional that includes general distribution of data. This dis-
tribution is unknown, and the only available information about distribution is the ﬁ nite 
training  sample. Therefore,  the  only  possibility  is  to  substitute  an  unknown   true  risk 
functional  with its approximation given as  empirical risk , which is computable based 
on the available data set. This approach is called ERM and it represents the basic induc-
tive principle. Using the ERM inductive principle, one seeks to ﬁ nd a solution f(X, w * ) 
that minimizes the empirical risk expressed through the training error as a substitute 
for the unknown true risk, which is a measure of the true error on the entire population. 
Depending on the chosen loss function and the chosen class of approximating functions, 
the ERM inductive principle can be implemented by a variety of methods deﬁ ned in 
statistics, neural networks, automatic learning, and so on. The ERM inductive principle 
is typically used in a learning setting where the model is given or approximated ﬁ rst 
and  then  its  parameters  are  estimated  from  the  data.  This  approach  works  well  only 
when the number of training samples is large relative to the prespeciﬁ ed model com-
plexity, expressed through the number of free parameters. 

 A general property necessary for any inductive principle including ERM is asymp-
totic  consistency , which is a requirement that the estimated model converge to the true 
model or the best possible estimation, as the number of training samples grows large. 
An important objective of the SLT is to formulate the conditions under which the ERM 
principle is consistent. The notion of consistency is illustrated in Figure 4 .4 . When the 
number  of  samples  increases,  empirical  risk  also  increases  while  true,  expected  risk 
decreases. Both risks approach the common minimum value of the risk functional: min 
R(w) over the set of approximating functions, and for an extra large number of samples. 
If we take the classiﬁ cation problem as an example of inductive learning, the empirical 
risk  corresponds  to  the  probability  of  misclassiﬁ cation  for  the  training  data,  and  the 
expected  risk  is  the  probability  of  misclassiﬁ cation  averaged  over  a  large  amount  of 
data not included into a training set, and with unknown distribution.   

SLT 

95

Risk 
functional

True (expected) risk 

min R(w)

Empirical risk

     Figure 4.4.      Asymptotic consistency of the ERM.  

Number of samples 

G(n)

h (ln(n/h) + 1)

    n ln2 

          h

n 

     Figure 4.5.      Behavior of the growth function G(n).  

 Even though it can be intuitively expected that for n    →     ∞  the empirical risk con-
verges  to  the  true  risk,  this  by  itself  does  not  imply  the  consistency  property,  which 
states that minimizing one risk for a given data set will also minimize the other risk. 
To ensure that the consistency of the ERM method is always valid and does not depend 
on  the  properties  of  the  approximating  functions,  it  is  necessary  that  consistency 
requirement should hold for all approximating functions. This requirement is known as 
nontrivial consistency. From a practical point of view, conditions for consistency are 
at  the  same  time  prerequisites  for  a  good  generalization  obtained  with  the  realized 
model. Therefore, it is desirable to formulate conditions for convergence of risk func-
tions in terms of the general properties of a set of the approximating functions. 

 Let  us  deﬁ ne  the  concept  of  a   growth  function   G(n)  as  a  function  that  is  either 
linear  or  bounded  by  a  logarithmic  function  of  the  number  of  samples  n.  Typical 
behavior  of  the  growth  function  G(n)  is  given  in  Figure  4 .5 .  Every  approximating 
function that is in the form of the growth function G(n) will have a consistency prop-
erty and potential for a good generalization under inductive learning, because empiri-
cal and true risk functions converge. The most important characteristic of the growth 
function G(n) is the concept of  VC dimension . At a point n    =    h where the growth starts 
to  slow  down,  it  is  a  characteristic  of  a  set  of  functions.  If  h  is  ﬁ nite,  then  the  G(n) 
function does not grow linearly for enough large training data sets, and it is bounded 
by a logarithmic function. If G(n) is only linear, then h    →     ∞ , and no valid generaliza-
tion through selected approximating functions is possible. The ﬁ niteness of h provides 
necessary and sufﬁ cient conditions for the quick convergence of risk functions, consis-

96 

LEARNING  FROM  DATA

      S1

 S2

……….  Sk

     Figure 4.6.      Structure of a set of approximating functions.  

tency of ERM, and potentially good generalization in the inductive - learning process. 
These  requirements  place  analytic  constraints  on  the  ability  of  the  learned  model  to 
generalize, expressed through the empirical risk. All theoretical results in the SLT use 
the VC dimension deﬁ ned on the set of loss functions. But, it has also been proven that 
the  VC  dimension  for  theoretical  loss  functions  is  equal  to  the  VC  dimension  for 
approximating  functions  in  typical,  inductive - learning  tasks  such  as  classiﬁ cation  or 
regression.   

 The  ERM  inductive  principle  is  intended  for  relatively  large  data  sets,  namely, 
when  the  ratio  n/h  is  large  and  the  empirical  risk  converges  close  to  the  true  risk. 
However, if n/h is small, namely, when the ratio n/h is less than 20, then a modiﬁ cation 
of  the  ERM  principle  is  necessary.  The  inductive  principle  called  SRM  provides  a 
formal mechanism for choosing a model with optimal complexity in ﬁ nite and small 
data sets. According to SRM, solving a learning problem with a ﬁ nite data set requires 
a priori speciﬁ cation of a structure on a set of approximating functions. For example, 
a set of functions S 1  is a subset of S 2 , and S 2  is a subset of S 3 . The set of approximating 
functions  S 1   has  the  lowest  complexity,  but  the  complexity  increases  with  each  new 
superset S 2 , S 3 ,    . . .    , S k . A simpliﬁ ed graphical representation of the structure is given 
in Figure 4 .6 .   

 For  a  given  data  set,  the  optimal  model  estimation  is  performed  following  two 

steps:

   1.      selecting an element of a structure having optimal complexity, and  
  2.      estimating the model based on the set of approximating functions deﬁ ned in a 

selected element of the structure.    

 Through these two steps the SRM provides a quantitative characterization of the 
trade - off between the complexity of approximating functions and the quality of ﬁ tting 
the  training  data.  As  the  complexity  increases  (increase  of  the  index  k  for  S k ),  the 
minimum  empirical  risk  decreases,  and  the  quality  of  ﬁ tting  the  data  improves.  But 
estimated true risk, measured through the additional testing data set, has a convex form, 
and in one moment it moves in a direction opposite that of the empirical risk, as shown 
in  Figure  4 .7 .  The  SRM  chooses  an  optimal  element  of  the  structure  that  yields  the 
minimal guaranteed bound on the true risk.   

 
 
 
 
 
SLT 

97

   Underfitting

Overfitting

Error 

True risk 

Empirical risk

Optimal structure–VC  
 dimension

Model
complexity 

     Figure 4.7.      Empirical and true risk as a function of h (model complexity).  

 In practice, to implement the SRM approach, it is necessary to be able to 

  1.      calculate or estimate the VC dimension for any element S k  of the structure, and 

then  

  2.      minimize the empirical risk for each element of the structure.    

 For  most  practical  inductive - learning  methods  that  use  nonlinear  approximating 
functions, ﬁ nding the VC dimension analytically is difﬁ cult, as is the nonlinear opti-
mization of empirical risk. Therefore, rigorous application of the SRM principle cannot 
only  be  difﬁ cult  but,  in  many  cases,  impossible  with  nonlinear  approximations. This 
does not, however, imply that the SLT is impractical. There are various heuristic pro-
cedures that are often used to implement SRM implicitly. Examples of such heuristics 
include early stopping rules and weight initialization, which are often used in artiﬁ cial 
neural  networks.  These  heuristics  will  be  explained  together  with  different  learning 
methods in the following chapters. The choice of an SRM - optimization strategy suitable 
for a given learning problem depends on the type of approximating functions supported 
by the learning machine. There are three commonly used optimization approaches:

   1.      Stochastic Approximation (or Gradient Descent).      Given an initial estimate of 
the values for the approximating functions of parameter w, the optimal param-
eter values are found by repeatedly updating them. In each step, while comput-
ing the gradient of the risk function, the updated values of the parameters cause 
a small movement in the direction of the steepest descent along the risk (error) 
function.  

  2.      Iterative Methods.      Parameter values w are estimated iteratively so that at each 
iteration the value of the empirical risk is decreased. In contrast to stochastic 
approximation,  iterative  methods  do  not  use  gradient  estimates;  instead,  they 
rely  on  a  particular  form  of  approximating  functions  with  a  special  iterative 
parameter.  

  3.      Greedy  Optimization.      The  greedy  method  is  used  when  the  set  of  approxi-
mating functions is a linear combination of some basic functions. Initially, only 
the  ﬁ rst  term  of  the  approximating  functions  is  used  and  the  corresponding 

98 

LEARNING  FROM  DATA

parameters optimized. Optimization corresponds to minimizing the differences 
between the training data set and the estimated model. This term is then held 
ﬁ xed, and the next term is optimized. The optimization process is repeated until 
values  are  found  for  all  parameters  w  and  for  all  terms  in  the  approximating 
functions.    

 These  typical  optimization  approaches  and  also  other  more  speciﬁ c  techniques 

have one or more of the following problems:

   1.      Sensitivity to Initial Conditions.        The ﬁ nal solution is very sensitive to the initial 

values of the approximation function parameters.  

  2.      Sensitivity  to  Stopping  Rules.      Nonlinear  approximating  functions  often  have 
regions  that  are  very  ﬂ at,  where  some  optimization  algorithms  can  become 
 “ stuck ”  for a long time (for a large number of iterations). With poorly designed 
stopping rules these regions can be interpreted falsely as local minima by the 
optimization algorithm.  

  3.      Sensitivity to Multiple Local Minima.      Nonlinear functions may have many local 
minima, and optimization methods can ﬁ nd, at best, one of them without trying 
to reach global minimum. Various heuristics can be used to explore the solution 
space and move from a local solution toward a globally optimal solution.    

 Working with ﬁ nite data sets, SLT reaches several conclusions that are important 
guidelines  in  a  practical  implementation  of  data - mining  techniques.  Let  us  brieﬂ y 
explain two of these useful principles. First, when solving a problem of inductive learn-
ing based on ﬁ nite information, one should keep in mind the following general com-
monsense principle: Do not attempt to solve a speciﬁ ed problem by indirectly solving 
a harder general problem as an intermediate step. We are interested in solving a speciﬁ c 
task, and we should solve it directly. Following SLT results, we stress that for estima-
tion with ﬁ nite samples, it is always better to solve a speciﬁ c learning problem rather 
than attempt a general one. Conceptually, this means that posing the problem directly 
will then require fewer samples for a speciﬁ ed level of accuracy in the solution. This 
point, while obvious, has not been clearly stated in most of the classical textbooks on 
data analysis. 

 Second,  there  is  a  general  belief  that  for  inductive - learning  methods  with  ﬁ nite 
data sets, the best performance is provided by a model of optimal complexity, where 
the  optimization  is  based  on  the  general  philosophical  principle  known  as  Occam ’ s 
razor. According to this principle, limiting the model complexity is more important than 
using true assumptions with all details. We should seek simpler models over complex 
ones  and  optimize  the  trade - off  between  model  complexity  and  the  accuracy  of  the 
model ’ s description and ﬁ t to the training data set. Models that are too complex and ﬁ t 
the training data very well or too simple and ﬁ t the data poorly are both not good models 
because they often do not predict future data very well. Model complexity is usually 
controlled in accordance with Occam ’ s razor principle by a priori knowledge. 

 Summarizing SLT, in order to form a unique model of a system from ﬁ nite data, 

any inductive - learning process requires the following:

TYPES  OF  LEARNING  METHODS 

99

   1.      A  wide,  ﬂ exible  set  of   approximating  functions   f(X,  w),  w    ∈    W,  that  can  be 

linear or nonlinear in parameters w.  

  2.      A priori knowledge (or assumptions) used to impose constraints on a potential 
solution.  Usually  such  a  priori  knowledge  orders  the  functions,  explicitly  or 
implicitly, according to some measure of their ﬂ exibility to ﬁ t the data. Ideally, 
the choice of a set of approximating functions reﬂ ects a priori knowledge about 
a system and its unknown dependencies.  

  3.      An inductive principle, or method of inference, specifying what has to be done. 
It  is  a  general  prescription  for  combining  a  priori  knowledge  with  available 
training data in order to produce an estimate of an unknown dependency.  
  4.      A  learning  method,  namely,  a  constructive,  computational  implementation  of 
an inductive principle for a given class of approximating functions. There is a 
general  belief  that  for  learning  methods  with  ﬁ nite  samples,  the  best  perfor-
mance is provided by a model of optimum complexity, which is selected based 
on the general principle known as Occam ’ s razor. According to this principle, 
we  should  seek  simpler  models  over  complex  ones  and  optimize  the  model 
that  is  the  trade - off  between  model  complexity  and  the  accuracy  of  ﬁ t  to  the 
training data.     

   4.3  

  TYPES OF LEARNING METHODS 

 There are two common types of the inductive - learning methods. They are known as 

  1.      supervised learning (or learning with a teacher), and  
  2.      unsupervised learning (or learning without a teacher).    

  Supervised  learning   is  used  to  estimate  an  unknown  dependency  from  known 
input – output  samples.  Classiﬁ cation  and  regression  are  common  tasks  supported  by 
this type of inductive learning. Supervised learning assumes the existence of a teacher —
 ﬁ tness function or some other external method of estimating the proposed model. The 
term  “ supervised ”  denotes that the output values for training samples are known (i.e., 
provided by a  “ teacher ” ). 

 Figure 4 .8 a shows a block diagram that illustrates this form of learning. In con-
ceptual terms, we may think of the teacher as having knowledge of the environment, 
with that knowledge being represented by a set of input – output examples. The environ-
ment with its characteristics and model is, however, unknown to the learning system. 
The  parameters  of  the  learning  system  are  adjusted  under  the  combined  inﬂ uence  of 
the training samples and the error signal. The error signal is deﬁ ned as the difference 
between the desired response and the actual response of the learning system. Knowledge 
of the environment available to the teacher is transferred to the learning system through 
the training samples, which adjust the parameters of the learning system. It is a closed -
 loop feedback system, but the unknown environment is not in the loop. As a perfor-
mance measure for the system, we may think in terms of the mean - square error or the 

100 

LEARNING  FROM  DATA

sum of squared errors over the training samples. This function may be visualized as a 
multidimensional  error  surface,  with  the  free  parameters  of  the  learning  system  as 
coordinates. Any  learning  operation  under  supervision  is  represented  as  a  movement 
of a point on the error surface. For the system to improve the performance over time 
and therefore learn from the teacher, the operating point on an error surface has to move 
down  successively  toward  a  minimum  of  the  surface. The  minimum  point  may  be  a 
local minimum or a global minimum. The basic characteristics of optimization methods 
such  as  stochastic  approximation,  iterative  approach,  and  greedy  optimization  have 
been given in the previous section. An adequate set of input – output samples will move 
the operating point toward the minimum, and a supervised learning system will be able 
to  perform  such  tasks  as  pattern  classiﬁ cation  and  function  approximation.  Different 
techniques support this kind of learning, and some of them such as logistic regression, 
multilayered perceptron, and decision rules and trees will be explained in more detail 
in Chapters  5 ,  6 , and  7 .   

 Under the unsupervised learning scheme, only samples with input values are given 
to a learning system, and there is no notion of the output during the learning process. 
Unsupervised  learning  eliminates  the  teacher  and  requires  that  the  learner  form  and 
evaluate  the  model  on  its  own.  The  goal  of  unsupervised  learning  is  to  discover 
 “ natural ”  structure in the input data. In biological systems, perception is a task learned 
via unsupervised techniques. 

 The  simpliﬁ ed  schema  of  unsupervised  or  self - organized  learning,  without  an 
external teacher to oversee the learning process, is indicated in Figure 4 .8 b. The empha-
sis in this learning process is on a task - independent measure of the quality of represen-
tation that is learned by the system. The free parameters w of the learning system are 
optimized with respect to that measure. Once the system has become tuned to the regu-
larities  of  the  input  data,  it  develops  the  ability  to  form  internal  representations  for 
encoding features of the input examples. This representation can be  global , applicable 
to the entire input data set. These results are obtained with methodologies such as cluster 
analysis or some artiﬁ cial neural networks, explained in Chapters  6  and  9 . On the other 
hand, learned representation for some learning tasks can only be  local , applicable to 
the speciﬁ c subsets of data from the environment; association rules are a typical example 
of an appropriate methodology. It has been explained in more detail in Chapter  8 .  

Environment X Teacher 

y
Desired

X

       f(X,w)      response 

Learning
system

      Actual
                       y – f(X,w)          X 
response

Environment

   Learning 
    system 

Error signal 

(a)

(b)

     Figure 4.8.      Two main types of inductive learning. (a) Supervised learning; (b) unsupervised 
learning.  

COMMON  LEARNING  TASKS 

101

   4.4  

  COMMON LEARNING TASKS 

 The generic inductive - learning problem can be subdivided into several common learn-
ing  tasks.  The  fundamentals  of  inductive  learning,  along  with  the  classiﬁ cation  of 
common  learning  tasks,  have  already  been  given  in  the  introductory  chapter  of  this 
book.  Here,  we  would  like  to  analyze  these  tasks  in  detail,  keeping  in  mind  that  for 
each of these tasks, the nature of the loss function and the output differ. However, the 
goal of minimizing the risk based on training data is common to all tasks. We believe 
that visualization of these tasks will give the reader the best feeling about the complex-
ity of the learning problem and the techniques required for its solution. 

 To obtain a graphical interpretation of the learning tasks, we start with the formal-
ization and representation of data samples that are the  “ infrastructure ”  of the learning 
process. Every sample used in data mining represents one entity described with several 
attribute – value pairs. That is, one row in a tabular representation of a training data set, 
and it can be visualized as a point in an n - dimensional space, where n is the number 
of attributes (dimensions) for a given sample. This graphical interpretation of samples 
is illustrated in Figure 4 .9 , where a student with the name John represents a point in a 
4 - D space that has four additional attributes.   

 When we have a basic idea of the representation of each sample, the training data 
set  can  be  interpreted  as  a  set  of  points  in  the  n - dimensional  space. Visualization  of 
data and a learning process is difﬁ cult for large number of dimensions. Therefore, we 
will  explain  and  illustrate  the  common  learning  tasks  in  a  2 - D  space,  supposing  that 
the basic principles are the same for a higher number of dimensions. Of course, this 
approach is an important simpliﬁ cation that we have to take care of, especially keeping 
in  mind  all  the  characteristics  of  large,  multidimensional  data  sets,  explained  earlier 
under the topic  “ the curse of dimensionality. ”  

 Let us start with the ﬁ rst and most common task in inductive learning:  classiﬁ ca-
tion . This is a learning function that classiﬁ es a data item into one of several predeﬁ ned 
classes. The initial training data set is given in Figure 4 .10 a. Samples belong to different 

STUDENT
NAME 

SEX

YEAR OF 
BIRTH 

MAJOR

CREDITS 

John

M

1982

CS

64 

MAJOR 

CREDITS

                 John          YEAR OF BIRTH 

     Figure 4.9.      Data samples    =    points in an n - dimensional space.  

SEX

 
 
102 

LEARNING  FROM  DATA

?

(a)  

(b)

     Figure 4.10.      Graphical interpretation of classiﬁ cation. (a) Training data set; (b) classiﬁ cation 
function.  

Prediction variable    

Prediction variable 

(a)

New sample

(b)

     Figure  4.11.      Graphical  interpretation  of  regression.  (a)  Training  data  set;  (b)  regression 
function.  

classes and therefore we use different graphical symbols to visualize each class. The 
ﬁ nal result of classiﬁ cation in a 2 - D space is the curve shown in Figure 4 .10 b, which 
best separates samples into two classes. Using this function, every new sample, even 
without  a  known  output  (the  class  to  which  it  belongs),  may  be  classiﬁ ed  correctly. 
Similarly,  when  the  problem  is  speciﬁ ed  with  more  than  two  classes,  more  complex 
functions are a result of a classiﬁ cation process. For an n - dimensional space of samples 
the complexity of the solution increases exponentially, and the classiﬁ cation function 
is represented in the form of hypersurfaces in the given space.   

 The second learning task is  regression  .The result of the learning process in this 
case is a learning function, which maps a data item to a real - value prediction variable. 
The initial training data set is given in Figure 4 .11 a. The regression function in Figure 
4 .11 b was generated based on some predeﬁ ned criteria built inside a data - mining tech-
nique. Based on this function, it is possible to estimate the value of a prediction variable 
for each new sample. If the regression process is performed in the time domain, speciﬁ c 
subtypes of data and inductive - learning techniques can be deﬁ ned.   

  Clustering  is the most common unsupervised learning task. It is a descriptive task 
in which one seeks to identify a ﬁ nite set of categories or clusters to describe the data. 
Figure  4 .12 a  shows  the  initial  data,  and  they  are  grouped  into  clusters,  as  shown  in 
Figure 4 .12 b, using one of the standard distance measures for samples as points in an 

COMMON  LEARNING  TASKS 

103

       ? 

(a)

(b)

     Figure 4.12.      Graphical interpretation of clustering. (a) Training data set; (b) description of 
clusters.  

y

   y

3

X < 5 
Y < 3 

?

x

(a)

5         x 

(b)

     Figure 4.13.      Graphical interpretation of summarization. (a) Training data set; (b) formalized 
description.  

n - dimensional space. All clusters are described with some general characteristics, and 
the  ﬁ nal  solutions  differ  for  different  clustering  techniques.  Based  on  results  of  the 
clustering process, each new sample may be assigned to one of the previously found 
clusters,  using  its  similarity  with  the  cluster  characteristics  of  the  sample  as  a 
criterion.   

  Summarization   is  also  a  typical  descriptive  task,  where  the  inductive - learning 
process is without a teacher. It involves methods for ﬁ nding a  compact description  for 
a set (or subset) of data. If a description is formalized, as given in Figure 4 .13 b, that 
information may simplify and therefore improve the decision - making process in a given 
domain.   

  Dependency  modeling   is  a  learning  task  that  discovers  local  models  based  on  a 
training data set. The task consists of ﬁ nding a model that describes signiﬁ cant depen-
dency between features or between values in a data set covering not the entire data set, 
but only some speciﬁ c subsets. An illustrative example is given in Figure 4 .14 b, where 
the ellipsoidal relation is found for one subset and a linear relation for the other subset 
of  the  training  data. These  types  of  modeling  are  especially  useful  in  large  data  sets 
that describe very complex systems. Discovering general models based on the entire 
data set is, in many cases, almost impossible, because of the computational complexity 
of the problem at hand.   

104 

LEARNING  FROM  DATA

?

(b)

(a)

     Figure  4.14.      Graphical  interpretation  of  dependency - modeling  task.  (a)  Training  data  set; 
(b) discovered local dependencies.  

?

?

(a)

(b)

     Figure  4.15.      Graphical  interpretation  of  change  and  detection  of  deviation  (a)  Outliers; 
(b) changes in time.  

  Change and deviation detection  is a learning task, and we have been introduced 
already  to  some  of  its  techniques  in  Chapter   2 .  These  are  the  algorithms  that  detect 
outliers. In general, this task focuses on discovering the most signiﬁ cant changes in a 
large  data  set.  Graphical  illustrations  of  the  task  are  given  in  Figure  4 .15 .  In  Figure 
4 .15 a the task is to discover outliers in a given data set with discrete values of features. 
The task in Figure 4 .15 b is detection of time - dependent deviations for the variable in 
a continuous form.   

 The list of inductive - learning tasks is not exhausted with these six classes that are 
common speciﬁ cations for data - mining problems. With wider and more intensive appli-
cations of the data - mining technology, new speciﬁ c tasks are being developed, together 
with the corresponding techniques for inductive learning. 

 Whatever the learning task and whatever the available data - mining techniques are, 
we  have  to  accept  that  the  foundation  for  successful  data - mining  processes  is  data -
 preprocessing and data - reduction methods. They transform raw and usually messy data 
into valuable data sets for mining, using methodologies explained in Chapters  2  and  3 . 
As  a  review,  we  will  enumerate  some  of  these  techniques  just  to  show  how  many 
alternatives the data - mining designer has in the beginning phases of the process: scaling 
and  normalization,  encoding,  outliers  detection  and  removal,  feature  selection  and 
composition, data cleansing and scrubbing, data smoothing, missing - data elimination, 
and cases reduction by sampling. 

SVMs 

105

 When the data are preprocessed and when we know what kind of learning task is 
deﬁ ned  for  our  application,  a  list  of  data - mining  methodologies  and  corresponding 
computer - based tools are available. Depending on the characteristics of the problem at 
hand and the available data set, we have to make a decision about the application of 
one  or  more  of  the  data - mining  and  knowledge - discovery  techniques,  which  can  be 
classiﬁ ed as follows:

   1.      Statistical  Methods.      The  typical  techniques  are  Bayesian  inference,  logistic 

regression, analysis of variance (ANOVA), and log - linear models.  

  2.      Cluster Analysis.      The  common  techniques  of  which  are  divisible  algorithms, 
agglomerative algorithms, partitional clustering, and incremental clustering.  
  3.      Decision Trees and Decision Rules.      The set of methods of inductive learning 
developed  mainly  in  artiﬁ cial  intelligence.  Typical  techniques  include  the 
Concept  Learning  System  (CLS)  method,  the  ID3  algorithm,  the  C4.5  algo-
rithm, and the corresponding pruning algorithms.  
  Association  Rules.      They  represent  a  set  of  relatively  new  methodologies  that 
include  algorithms  such  as  market  basket  analysis,  a  priori  algorithm,  and 
WWW path - traversal patterns.  

  4   

  5.      Artiﬁ cial  Neural  Networks.      The  common  examples  of  which  are  multilayer 

perceptrons with backpropagation learning and Kohonen networks.  

  6.      Genetic Algorithms.      They are very useful as a methodology for solving hard -
 optimization problems, and they are often a part of a data - mining algorithm.  
  7.      Fuzzy Inference Systems.      These are based on the theory of fuzzy sets and fuzzy 
logic. Fuzzy modeling and fuzzy decision making are steps very often included 
in a data - mining process.  

  8.      N - dimensional Visualization Methods.      These are usually skipped in the litera-
ture as a standard data - mining methodology, although useful information may 
be discovered using these techniques and tools. Typical data - mining visualiza-
tion techniques are geometric, icon - based, pixel - oriented, and hierarchical.    

 This  list  of  data - mining  and  knowledge - discovery  techniques  is  not  exhaustive, 
and  the  order  does  not  suggest  any  priority  in  the  application  of  these  methods. 
Iterations  and  interactivity  are  basic  characteristics  of  these  data - mining  techniques. 
Also, with more experience in data - mining applications, the reader will understand the 
importance  of  not  relying  on  a  single  methodology.  Parallel  application  of  several 
techniques that cover the same inductive - learning task is a standard approach in this 
phase of data mining. In that case, for each iteration in a data - mining process, the results 
of the different techniques must additionally be evaluated and compared.  

   4.5  

   SVM  s  

 The foundations of SVMs have been developed by Vladimir Vapnik and are gaining 
popularity due to many attractive features, and promising empirical performance. The 

106 

LEARNING  FROM  DATA

formulation embodies the SRM principle. SVMs were developed to solve the classiﬁ ca-
tion problem, but recently they have been extended to the domain of regression prob-
lems  (for  prediction  of  continuous  variables).  SVMs  can  be  applied  to  regression 
problems by the introduction of an alternative loss function that is modiﬁ ed to include 
a  distance  measure.  The  term  SVM  is  referring  to  both  classiﬁ cation  and  regression 
methods,  and  the  terms  Support  Vector  Classiﬁ cation  (SVC)  and  Support  Vector 
Regression (SVR) may be used for more precise speciﬁ cation. 

 An SVM is a supervised learning algorithm creating learning functions from a set 
of  labeled  training  data.  It  has  a  sound  theoretical  foundation  and  requires  relatively 
small number of samples for training; experiments showed that it is insensitive to the 
number of samples ’  dimensions. Initially, the algorithm addresses the general problem 
of learning to discriminate between members of two classes represented as n - dimensional 
vectors. The function can be a classiﬁ cation function (the output is binary) or the func-
tion can be a general regression function. 

 SVM ’ s classiﬁ cation function is based on the concept of decision planes that deﬁ ne 
decision boundaries between classes of samples. A simple example is shown in Figure 
4 .16 a where the samples belong either to class gray or black. The separating line deﬁ nes 
a boundary on the right side of which all samples are gray, and to the left of which all 
samples are black. Any new unclassiﬁ ed sample falling to the right will be classiﬁ ed 
as gray (or classiﬁ ed as black should it fall to the left of the separating line).   

 The  classiﬁ cation  problem  can  be  restricted  to  consideration  of  the  two - class 
problem without loss of generality. Before considering n - dimensional analysis, let us 
look  at  a  simple  2 - D  example. Assume  that  we  wish  to  perform  a  classiﬁ cation,  and 
our data has a categorical target variable with two categories. Also assume that there 
are  two  input  attributes  with  continuous  values.  If  we  plot  the  data  points  using  the 
value of one attribute on the x - axis and the other on the y - axis, we might end up with 
an image such as shown in the Figure 4 .16 b. In this problem the goal is to separate the 
two  classes  by  a  function  that  is  induced  from  available  examples.  The  goal  is  to 
produce a classiﬁ er that will work well on unseen examples, that is, it generalizes well. 
Consider the data in Figure 4 .16 b. Here there are many possible linear classiﬁ ers that 

Y

Y

X

X

(a)

(b)

     Figure  4.16.      Linear  separation  in  a  2 - D  space.  (a)  Decision  plane  in  2 - D  space  is  a  line. 
(b) How to select optimal separating line?  

SVMs 

107

Y

Y

X

X

(a)

(b)

     Figure 4.17.      Comparison between sizes of margin of different decision boundaries. (a) Margin 

decision boundary 1; (b) margin decision boundary 2.  

can separate the two classes of samples. Are all decision boundaries equally good? How 
do we prove that the selected one is the best? 

 The main idea is: The decision boundary should be as far away as possible from 
the data points of both classes. There is only one that maximizes the margin (maximizes 
the distance between it and the nearest data point of each class). Intuitively, the margin 
is deﬁ ned as the amount of space, or separation between the two classes as deﬁ ned by 
the hyperplane. Geometrically, the margin corresponds to the shortest distance between 
the closest data points to a point on the hyperplane. SLT suggests that the choice of the 
maximum margin hyperplane will lead to maximal generalization when predicting the 
classiﬁ cation of previously unseen examples. 

 Therefore, a linear SVM classiﬁ er is termed the optimal separating hyperplane with 
the maximum margin such as the margin in Figure 4 .17 b. The goal of SVM modeling 
in  n - dimensional  spaces  is  to  ﬁ nd  the  optimal  hyperplane  that  separates  classes  of 
n - dimensional vectors. The split will be chosen again to have the largest distance from 
the  hypersurface  to  the  nearest  of  the  positive  and  negative  samples.  Intuitively,  this 
makes  the  classiﬁ cation  correct  for  testing  data  that  is  near,  but  not  identical  to  the 
training data.   

 Why should we maximize the margin? Skinny  margin  is more ﬂ exible, thus more 
complex, and the complexity is not the goal. Fat  margin  is less complex. SRM principle 
expresses  a  trade - off  between  training  error  and  model  complexity.  It  recommends 
maximum margin, such as the one in Figure 4 .18 , as optimal separation criteria ensuring 
that SVM worst case generalization errors are minimized.   

 Based on the vector equation of the line in 2 - D we can deﬁ ne function f(x)    =    w 
x    +    b as a separation model. For all points above line f(x)    >    0, and for the points below 
line  f(x)    <    0. The  sign  of  this  function  h(x)    =    sign(f[x])  we  deﬁ ne  as  a  classiﬁ cation 
function because it has the value 1 for all points above the line, and the value  - 1 for 
all points below line. An example is given in Figure 4 .19 .   

 Before we continue, it is important to note that while the examples mentioned show 
a 2 - D data set, which can be conveniently represented by points in a plane, in fact we 
will typically be dealing with higher dimensional data. The question is how to determine 

108 

LEARNING  FROM  DATA

Y

Y

X

X

(a)

(b)

     Figure 4.18.      SRM principle expresses a trade - off between training error and model complex-
ity. (a)  “ Fat ”  margin; (b)  “ skinny ”  margin.  

f (x1, x2) = x1 + 3x2 − 6 = 0

x1

sign( f (x1, x2)) = − 1, if  f (x1, x2) < 02

x2

sign( f (x1, x2)) = 1, if  f (x1, x2) > 0

     Figure 4.19.      Classiﬁ cation function, sign(), on a 2 - D space.  

an optimal hyperplane in n - dimensional spaces based on a given set of training samples. 
Consider  the  problem  of  separating  the  set  of  training  vectors  D  belonging  to  two 
classes (coded binary with  − 1 and 1).

{
= (

1
1
x y
,

)

,

…

,

(

l
x y

l

   D

with a hyperplane

} ∈ℜ ∈ −{
)
,
,

x

y

n

}
,
1 1

,

    w x,

+ =b

0   
.

 The set of vectors is said to be optimally separated by the hyperplane if it is sepa-
rated  without  error  and  the  distance  between  the  closest  vectors  to  the  hyperplane  is 
maximal.  An  illustration  of  the  separation  with  a  graphical  interpretation  of  main 
parameters w and b is given in Figure 4 .20 a. In this way we have parameterized the 
function by the weight vector w and the scalar  b . The notation  < w,x >  denotes the inner 
or scalar product of vectors w and x, deﬁ ned by

 
SVMs 

x2

3

109

< w,x > + b  = 0

x2

4

3

2

3

x1

2

3

4

x1

< w,x > + b ⇔ x1 + x2 − 3 = 0 ⇔ x2 = − 1x1 + 3

< w,x > + b  = − 1

< w,x > + b  = 1

(a)

w

b

(b)

     Figure  4.20.      A  separating  hyperplane  (w,b)  for  2 - D  data.  (a)  Parameters   w   and   b ;  (b)  two 
parallel hyperplanes deﬁ ne margin.  

    w x,

=

n

∑ w xi

i

 In order for our hyperplane to correctly separate the two classes, we need to satisfy 

the following constraints:

=
1

i

i

i

w x
,

w x
,

+ >
b

0
,

+ <
b

0
,

for all

for all

i

y

i

y

=

1

= −
1

 The set of constraints that we have so far is equivalent to saying that these data 
must  lie  on  the  correct  side  (according  to  class  label)  of  this  decision  surface.  Next 
notice that we have also plotted as dotted lines two other hyperplanes represented in 
Figure 4 .20 b, which are the hyperplanes where the function  < w,x >     +    b is equal to  − 1 
(on the lower left) and  + 1 (on the upper right). In order to ﬁ nd the maximum margin 
hyperplane,  we  can  see  intuitively  that  we  should  keep  the  dotted  lines  parallel  and 
equidistant to the decision surface, and maximize their distance from one another, while 
satisfying the constraint that the data lie on the correct side of the dotted lines associ-
ated with that class. In mathematical form, the ﬁ nal clause of this sentence (the con-
straints) can be written as

(

i

   y

iw x,

+

b

) ≥

1
,

i

=

1 …   
l
,
, .

 The distance between these two margin hyperplanes may be formalized, because 
it is the parameter we want to maximize. We may obtain the distance between hyper-
planes in an n - dimensional space using equations

    
   
  
110 

LEARNING  FROM  DATA

1
w x
,

b
+ =

1

2

w x
,

b
+ = −
1

where  x 1   and  x 2   are  any  points  on  corresponding  hyperplanes.  If  we  subtract  these 
equations

(
1
    w x
,

−

2

x

) =  
2

and representing scalar product of vectors by deﬁ nition,

we obtain

(
   w  x
1

−

x

2

)

cos γ

=

2

    w × =d

2  

where || || represents Euclidean normor

   d =

2

w

 Therefore, the problem of  “ maximum margin ”  is represented as a maximum of a 
distance parameter d, which is a function of parameters w. Maximizing d means maxi-
mizing 1/|w| or minimizing |w|. The learning problem may be reformulated as:

   arg min

w

1
2

(

⋅
w w

) =

2

w

1
2

subject to the constraints of linear separability. So, the ﬁ nal problem for optimization 
is

   arg min
b

,w

1
2

(

⋅
w w

)

such that

(

i

y

i

w x
,

+

b

) ≥

1

for all

=

1 2
,
,

…   
l
,

i

 The  problem  of  optimization  under  constraints  may  be  transformed  using  the 

Lagrangian  L ( w , b )

(

   L

w
,

b
,

α

) =

w
2

l

∑2
−

{
(

α

i

=
1

i

i

w x
,

+

) −
b y

i

}
1  

where   α   i    are  the  Lagrange  multipliers,  one  for  each  data  point.  The  ﬁ rst  term  is  the 
same  as  the  original  objective  function,  and  the  second  term  captures  the  inequality 
constraints. The Lagrangian has to be minimized with respect to  w  and  b :

   
 
 
  
 
SVMs 

111

∂
L
∂
b

∂
L
∂
w

= ⇒

0

l

∑

=

0

i

α

i

y

i

=

0

= ⇒

0

w

0

=

l

∑

=

0

i

i

α

y

i

x

i

=

0

 Substituting results of partial derivatives into  L  lead to the dual formulation of the 
optimization problem that has to be maximized with respect to the constraints  α   i      ≥     0.

(

α

) =

   D

l

∑

=
1

i

α

i

−

1
2

l

l

∑∑

=
1

i

=
1

j

α α
i

j

j

i
y y

(

x x
⋅
i

j

)

 The  dual  Lagrangian  D( α )  involves  only  the  Lagrangian  multipliers   α   i    and  the 
training data (there is no more parameters w and b). Finding the solution for real - world 
problems will usually require application of quadratic programming (QP) optimization 
techniques. This problem has a global optimum. The optimization approach for SVM 
provides an accurate implementation of the SRM inductive principle. When  α   i   param-
eters  are  determined,  it  is  necessary  to  determine  the  values  for  w  and  b  and  they 
determine ﬁ nal classiﬁ cation hyperplane. It is important to note that dual function D is 
a  function  of  only  scalar  products  of  sample  vectors,  not  of  vectors  alone.  Once  the 
solution has been found in the form of a vector   α (cid:1)0 the optimal separating hyperplane 
is given by

=

w

0

∑ y

i

α

i

0
i

x

∈
i SVs
1
2

= −

b
0

⋅
w x
0

+

r

s

x



where x  r   and x  s   are any support vectors (SVs) from each class. The classiﬁ er can then 
be constructed as:

   f x
( )

=

sign

(

<

w x
,
0

> +

=

b
0

)

sign





∑

∈
i SVs

i

α

y

0
i

(

⋅
i
x x

) +

b
0





 Only the points x  i  , which will have nonzero Lagrangian multipliers  α  0 , are termed 
SVs. If the data are linearly separable, all the SVs will lie on the margin and hence the 
number  of  SVs  can  be  very  small  as  it  is  represented  in  Figure  4 .21 .  This   “ sparse ”  
representation can be viewed as data compression in the construction of the classiﬁ er. 
The SVs are the  “ hard ”  cases; these are the training samples that are most difﬁ cult to 
classify correctly and that lie closest to the decision boundary.   

 The SVM learning algorithm is deﬁ ned so that, in a typical case, the number of 
SVs is small compared with the total number of training examples. This property allows 
the SVM to classify new examples efﬁ ciently, since the majority of the training exam-
ples can be safely ignored. SVMs effectively remove the uninformative patterns from 

   
  
  
   
 
  
112 

LEARNING  FROM  DATA

x2

< w,x > + b  = 0

Margin Width

x1

     Figure 4.21.      A maximal margin hyperplane with its support vectors encircled.  

Y

Y

Y

X

X

X

(a)

(b)

(c)

     Figure 4.22.      Issues for an SVM in real - world applications. (a) Subset cannot be completely 
separated; (b) nonlinear separation; (c) three categories.  

the data set by assigning them  α  i  weights of 0. So, if internal points that are not SVs 
are changed, no effect will be made on the decision boundary. The hyperplane is rep-
resented  sparsely  as  a  linear  combination  of   “ SV ”   points.  The  SVM  automatically 
identiﬁ es  a  subset  of  these  informative  points  and  uses  them  to  represent  the 
solution. 

 In  real - world  applications,  SVMs  must  deal  with  (a)  handling  the  cases  where 
subsets cannot be completely separated, (b) separating the points with nonlinear sur-
faces, and (c) handling classiﬁ cations with more than two categories. Illustrative exam-
ples are given in Figure 4 .22 . What are solutions in these cases? We will start with the 
problem of data that are not linearly separable. The points such as shown on the Figure 
4 .23 a  could  be  separated  only  by  a  nonlinear  region.  Is  it  possible  to  deﬁ ne  a  linear 
margin where some points may be on opposite sides of hyperplanes?   

 Obviously,  there  is  no  hyperplane  that  separates  all  of  the  samples  in  one  class 
from all of the samples in the other class. In this case there would be no combination 
of w and b that could ever satisfy the set of constraints. This situation is depicted in 
Figure 4 .23 b, where it becomes apparent that we need to  soften  the constraint that these 

SVMs 

113

< w,x > + b = 0

(a)

< w,x > + b = − 1
(b)

< w,x > + b = 1

     Figure  4.23.      Soft  margin  SVM.  (a)  Soft  separating  hyperplane;  (b)  error  points  with  their 
distances.  

data lay on the correct side of the  + 1 and  − 1 hyperplanes. We need to allow some, but 
not too many data points to violate these constraints by a preferably small amount. This 
alternative approach turns out to be very useful not only for datasets that are not linearly 
separable, but also, and perhaps more importantly, in allowing improvements in gen-
eralization. We modify the optimization problem including cost of violation factor for 
samples that violate constraints:

under new constraints:

1
2

2
w +

l

∑C

ξ  

i

=
1

i

(
    w x,

i

+

)
b y

i

≥ −1 ξ  

i

where   C   is  a  parameter  representing  the  cost  of  violating  the  constraints,  and    ξ  i    are 
distances of samples that violate constraints. To allow some ﬂ exibility in separating the 
categories,  SVM  models  introduce  a  cost  parameter,   C ,  that  controls  the  trade - off 
between allowing training errors and forcing rigid margins. It creates a  soft margin  (as 
the  one  in  Figure  4 .24 )  that  permits  some  misclassiﬁ cations.  If   C   is  too  small,  then 
insufﬁ cient stress will be placed on ﬁ tting the training data. Increasing the value of  C  
increases the cost of misclassifying points and forces the creation of a more accurate 
model that may not generalize well.   

 This SVM model is a very similar case to the previous optimization problem for 
the linear separable data, except that there is an upper bound  C  on all  α   i   parameters. 
The value of  C  trades between how large of a margin we would prefer, as opposed to 
how  many  of  the  training  set  examples  violate  this  margin  (and  by  how  much). The 
process of optimization is going through the same steps: Lagrangian, optimization of 

   
114 

LEARNING  FROM  DATA

< w,x > + b  = 0

C

C

xi

xi

xj

xj

< w,x > + b = −1

< w,x > + b  = 1

(a)

(b)

     Figure  4.24.      Trade - off  between  allowing  training  errors  and  forcing  rigid  margins. 
(a) Parameters  C  and X for a soft margin; (b) soft classiﬁ er with a fat margin ( C     >    0).  

 α   i   parameters, and determining  w  and  b  values for classiﬁ cation hyperplane. The dual 
stay the same, but with additional constraints on  α  parameters: 0    ≤     α   i      ≤    C. 

 Most classiﬁ cation tasks require more complex models in order to make an optimal 
separation, that is, correctly classify new test samples on the basis of the trained SVM. 
The reason is that the given data set requires nonlinear separation of classes. One solu-
tion to the inseparability problem is to map the data into a higher dimensional space 
and deﬁ ne a separating hyperplane there. This higher dimensional space is called the 
 feature space , as opposed to the  input space  occupied by the training samples. With an 
appropriately chosen feature space of sufﬁ cient dimensionality, any consistent training 
set can be made linearly separable. However, translating the training set into a higher 
dimensional  space  incurs  both  computational  and  learning  costs.  Representing  the 
feature vectors corresponding to the training set can be extremely expensive in terms 
of memory and time. Computation in the feature space can be costly because it is high -
 dimensional. Also, in general, there is the question of which function is appropriate for 
transformation. Do we have to select from inﬁ nite number of potential functions? 

 There is one characteristic of the SVM optimization process that helps in determin-
ing  the  steps  in  the  methodology.  The  SVM  decision  function  for  classifying  points 
with respect to the hyperplane only involves dot products between points. Furthermore, 
the  algorithm  that  ﬁ nds  a  separating  hyperplane  in  the  feature  space  can  be  stated 
entirely in terms of vectors in the input space and dot products in the feature space. We 
are  transforming  training  samples  from  one  space  into  the  other.  But  we  are  making 
computation  only  with  scalar  products  of  points  in  this  new  space.  This  product  is 
computationally inexpensive because only a small subset of points is SVs involved in 
product computation. Thus, an SVM can locate a separating hyperplane in the feature 
space and classify points in that space without ever representing the space explicitly, 
simply by deﬁ ning a function, called a  kernel function . Kernel function  K  always plays 
the role of the dot product in the feature space:

SVMS 

115

(
   K x y

,

) = Φ

x
( ),

Φ

y
( )

 This approach avoids the computational burden of explicitly representing all trans-
formed source data and high - dimensional feature vectors. The two most widely used 
kernel functions are Polynomial Kernel

and Gaussian Kernel

(
   K x y

,

) =

(

x y
,

+

d

)1  

(
   K x y

,

) =

exp

2

y

−





−
x
2σ





 The polynomial kernel is valid for all positive integers d    ≥    1. The Gaussian kernel 
is one of a group of kernel functions known as radial basis functions (RBFs). RBFs are 
kernel functions that depend only on the geometric distance between x and y, and the 
kernel  is  valid  for  all  nonzero  values  of  the  kernel  width    σ  .  It  is  probably  the  most 
useful and commonly applied kernel function. The concept of a kernel mapping func-
tion  is  very  powerful,  such  as  in  the  example  given  in  Figure  4.25.  It  allows  SVM 
models  to  perform  separations  even  with  very  complex  boundaries.  The  relation 
between a kernel function and a feature space can analyze for a simpliﬁ ed version of 
quadratic kernel k(x, y)    =     <  x, y  >  2  where x, y     ∈     R 2 :

2

x y,

=

=

(
(
(
=
= (
=

2

x y
1 1
x y
1 1

+

+

x y
2 2
x y
2 2

)
)

2
2
x y
1
1

+

2
2
x y
2
2

(

x y
1 1
+

2
2

x

2
1
Φ

x
,
,
Φx
( ),

2

x x
1 2

y
( )

+

x y
2 2

x xx y y
12
2 1 2
)(

2
y
2

y

2
1

,

,

)
)

)

2

y y
1 2

 deﬁ ning  a  3 - D  feature  space    Φ( )
2
.  Similar  analysis  may  be  per-
x
2
formed for other kernel function. For example, through the similar process verify that 
for the  “ full ”  quadratic kernel ( < x, y    >     + 1) 2  the feature space is 6 - D. 

= 1
(

2
x x
,

x x
1 2

2

)

,

− xi − m 2
s 2

f (xi) = exp

f (xi)

xi

Φ

 = µ

xi

(a)

x1

x1

(b)

     Figure  4.25.      An  example  of  a  mapping   Φ   to  a  feature  space  in  which  the  data  become 
linearly separable. (a) One - dimensional input space; (b) two - dimensional feature space.  

  
  
   
  
116 

LEARNING  FROM  DATA

 In practical use of SVM, only the kernel function  k  (and not transformation func-
tion  Φ ) is speciﬁ ed. The selection of an appropriate kernel function is important, since 
the kernel function deﬁ nes the feature space in which the training set examples will be 
classiﬁ ed. As long as the kernel function is legitimate, an SVM will operate correctly 
even if the designer does not know exactly what features of the training data are being 
used in the kernel - induced feature space. The deﬁ nition of a legitimate kernel function 
is given by Mercer ’ s theorem: The function must be continuous and positive - deﬁ nite. 
 Modiﬁ ed and enhanced SVM constructs an optimal separating hyperplane in the 

higher dimensional space. In this case, the optimization problem becomes

(

α

) =

   D

l

∑

=
1

i

α

i

−

1
2

l

l

∑∑

=
1

i

=
1

j

α α
i

j

j
i
y y K

(

x x
⋅
i

j

)

where  K(x,y)  is the kernel function performing the nonlinear mapping into the feature 
space, and the constraints are unchanged. Using kernel function we will perform mini-
mization of dual Lagrangian in the feature space, and determine all margin parameter, 
without representing points in this new space. Consequently, everything that has been 
derived  concerning  the  linear  case  is  also  applicable  for  a  nonlinear  case  by  using  a 
suitable kernel  K  instead of the dot product. 

 The  approach  with  kernel  functions  gives  a  modular  SVM  methodology.  One 
module  is  always  the  same:  Linear  Learning  Module.  It  will  ﬁ nd  margin  for  linear 
separation of samples. If the problem of classiﬁ cation is more complex, requiring non-
linear separation, then we include a new preparatory module. This module is based on 
kernel function, and it transforms input space into higher, feature space where the same 
Linear Learning Module may be applied, and the ﬁ nal solution is nonlinear classiﬁ ca-
tion model. Illustrative example is given in Figure 4 .26 . This combination of different 
kernel functions with standard SVM learning algorithm for linear separation gives the 
ﬂ exibility to the SVM methodology for efﬁ cient application in nonlinear cases.   

 The  idea  of  using  a  hyperplane  to  separate  the  feature  vectors  into  two  groups 
works well when there are only two target categories, but how does SVM handle the 
case where the target variable has more than two categories? Several approaches have 
been  suggested,  but  two  are  the  most  popular:  (a)   “ one  against  many ”   where  each 
category  is  split  out  and  all  of  the  other  categories  are  merged;  and  (b)   “ one  against 
one ”  where  k  ( k     −    1)/2 models are constructed and  k  is the number of categories. 

Φ

(a)

(b)

(c)

     Figure 4.26.      SVM performs nonlinear classiﬁ cation by kernel - based transformations. (a) 2 - D 
input space; (b) 3 - D feature space; (c) 2 - D input space.  

 
SVMS 

117

 A preparation process for SVM applications is enormously important for the ﬁ nal 
results, and it includes preprocessing of raw data and setting model parameters. SVM 
requires that each data sample is represented as a vector of real numbers. If there are 
categorical attributes, we ﬁ rst have to convert them into numeric data. Multi - attribute 
coding  is  recommended  in  this  case.  For  example,  a  three - category  attribute  such  as 
red, green, and blue can be represented with three separate attributes and corresponding 
codes  such  as  (0,0,1),  (0,1,0),  and  (1,0,0).  This  approach  is  appropriate  only  if  the 
number of values in an attribute is not too large. Second, scaling values of all numerical 
attributes before applying SVM is very important in successful application of the tech-
nology. The main advantage is to avoid attributes with greater numeric ranges to domi-
nate  those  in  smaller  ranges.  Normalization  for  each  attribute  may  be  applied  to  the 
range [ − 1;  + 1] or [0; 1]. 

 Selection  of  parameters  for  SVM  is  very  important  and  the  quality  of  results 
depends on these parameters. Two most important parameters are cost C and parameter 
 γ  for Gaussian kernel. It is not known beforehand which C and  σ  are the best for one 
problem;  consequently,  some  kind  of  parameter  search  must  be  done. The  goal  is  to 
identify  good  (C;   σ )  so  that  the  classiﬁ er  can  accurately  predict  unknown  data  (i.e., 
testing data). Note that it may not be required to achieve high - training accuracy. Small 
cost  C  is  appropriate  for  close  to  linear  separable  samples.  If  we  select  small  C  for 
nonlinear classiﬁ cation problem, it will cause under - ﬁ tted learning. Large C for non-
linear problems is appropriate, but not too much because the classiﬁ cation margin will 
become  very  thin  resulting  in  over - ﬁ tted  learning.  Similar  analysis  is  for  Gaussian 
kernel  σ  parameter. Small  σ  will cause close to linear kernel with no signiﬁ cant trans-
formation  in  future  space  and  less  ﬂ exible  solutions.  Large   σ   generates  extremely 
complex nonlinear classiﬁ cation solution. 

 The  experience  in  many  real - world  SVM  applications  suggests  that,  in  general, 
RBF model is a reasonable ﬁ rst choice. The RBF kernel nonlinearly maps samples into 
a higher dimensional space, so, unlike the linear kernel, it can handle the case when 
the relation between classes is highly nonlinear. The linear kernel should be treated a 
special  case  of  RBF.  The  second  reason  for  RBF  selection  is  the  number  of  hyper -
 parameters that inﬂ uences the complexity of model selection. For example, polynomial 
kernels have more parameters than the RBF kernel and the tuning proves is much more 
complex  and  time - consuming.  However,  there  are  some  situations  where  the  RBF 
kernel  is  not  suitable,  and  one  may  just  use  the  linear  kernel  with  extremely  good 
results. The question is when to use the linear kernel as a ﬁ rst choice. If the number of 
features  is  large,  one  may  not  need  to  map  data  to  a  higher  dimensional  space. 
Experiments  showed  that  the  nonlinear  mapping  does  not  improve  the  SVM  perfor-
mance.  Using  the  linear  kernel  is  good  enough,  and  C  is  the  only  tuning  parameter. 
Many  microarray  data  in  bioinformatics  and  collection  of  electronic  documents  for 
classiﬁ cation are examples of this data set type. As the number of features is smaller, 
and the number of samples increases, SVM successfully maps data to higher dimen-
sional spaces using nonlinear kernels. 

 One  of  the  methods  for  ﬁ nding  optimal  parameter  values  for  an  SVM  is  a  grid 
search. The algorithm tries values of each parameter across the speciﬁ ed search range 
using geometric steps. Grid searches are computationally expensive because the model 

118 

LEARNING  FROM  DATA

must be evaluated at many points within the grid for each parameter. For example, if 
a grid search is used with 10 search intervals and an RBF kernel function is used with 
two parameters (C and  σ ), then the model must be evaluated at 10 * 10    =    100 grid points, 
that is, 100 iterations in a parameter - selection process. 

 At the end we should highlight main strengths of the SVM methodology. First, a 
training process is relatively easy with a small number of parameters and the ﬁ nal model 
is never presented with local optima, unlike some other techniques. Also, SVM meth-
odology  scales  relatively  well  to  high - dimensional  data  and  it  represents  a  trade - off 
between  a  classiﬁ er ’ s  complexity  and  accuracy.  Nontraditional  data  structures  like 
strings and trees can be used as input samples to SVM, and the technique is not only 
applicable to classiﬁ cation problems, it is also accommodated for prediction. Weaknesses 
of SVMs include computational inefﬁ ciency and the need to experimentally choose a 
 “ good ”  kernel function. 

 The SVM methodology is becoming increasingly popular in the data - mining com-
munity. Software tools that include SVM are becoming more professional, user - friendly, 
and applicable to many real - world problems where data sets are extremely large. It has 
been  shown  that  SVM  outperforms  other  techniques  such  as  logistic  regression  or 
artiﬁ cial neural networks on a wide variety of real - world problems. Some of the most 
successful applications of the SVM have been in image processing, in particular hand-
written  digit  recognition  and  face  recognition.  Other  interesting  application  areas  for 
SVMs are in text mining and categorization of large collection of documents, and in 
the analysis of genome sequences in bioinformatics. Furthermore, the SVM has been 
successfully  used  in  a  study  of  text  and  data  for  marketing  applications.  As  kernel 
methods and maximum margin methods including SVM are further improved and taken 
up  by  the  data - mining  community,  they  are  becoming  an  essential  tool  in  any  data 
miner ’ s tool kit.  

   4.6  

   KNN : NEAREST NEIGHBOR CLASSIFIER 

 Unlike SVM ’ s global classiﬁ cation model, k nearest neighbor or kNN classiﬁ er deter-
mines the decision boundary locally. For 1NN we assign each new sample to the class 
of its closest neighbor as shown in Figure 4 .27 a. Initially we have samples belonging 
to two classes ( +  and  − ). The new sample  “ ? ”  should be labeled with the class of its 

+

+

+

?

+

−

(a)

−

?
+

−

−

−

−

−

−

?

+

−

−

−

−

+

+

+

?

+

(b)

     Figure 4.27.      k nearest neighbor classiﬁ er. (a) k    =    1; (b) k    =    4.  

KNN:  NEAREST  NEIGHBOR  CLASSIFIER 

119

closest  neighbor.  1NN  classiﬁ er  is  not  a  very  robust  methodology. The  classiﬁ cation 
decision of each test sample relies on the class of a single training sample, which may 
be  incorrectly  labeled  or  atypical.  For  larger   k ,  kNN  will  assign  new  sample  to  the 
majority class of its  k  closest neighbors where  k  is a parameter of the methodology. An 
example  for  k    =    4  is  given  in  Figure  4 .27 b.  kNN  classiﬁ er  for   k     >    1  is  more  robust. 
Larger  k  values help reduce the effects of noisy points within the training data set.   

 The rationale of kNN classiﬁ cation is that we expect a test sample  X  to have the 
same label as the training sample located in the local region surrounding  X . kNN clas-
siﬁ ers  are  lazy  learners,  that  is,  models  are  not  built  explicitly  unlike  SVM  and  the 
other classiﬁ cation models given in the following chapters. Training a kNN classiﬁ er 
simply consists of determining  k . In fact, if we preselect a value for  k  and do not pre-
process  given  samples,  then  kNN  approach  requires  no  training  at  all.  kNN  simply 
memorizes all samples in the training set and then compares the test sample with them. 
For this reason, kNN is also called  memory - based learning  or  instance - based learning . 
It is usually desirable to have as much training data as possible in machine learning. 
But in kNN, large training sets come with a severe efﬁ ciency penalty in classiﬁ cation 
of testing samples. 

 Building  the  kNN  model  is  cheap  (just  store  the  training  data),  but  classifying 
unknown sample is relatively expensive since it requires the computation of the kNN 
of the testing sample to be labeled. This, in general, requires computing the distance 
of  the  unlabeled  object  to  all  the  objects  in  the  labeled  set,  which  can  be  expensive 
particularly for large training sets. Among the various methods of supervised learning, 
the nearest neighbor classiﬁ er achieves consistently high performance, without a priori 
assumptions about the distributions from which the training examples are drawn. The 
reader may have noticed the similarity between the problem of ﬁ nding nearest neigh-
bors  for  a  test  sample  and  ad  hoc  retrieval  methodologies.  In  standard  information 
retrieval systems such as digital libraries or web search, we search for the documents 
(samples) with the highest similarity to the query document represented by a set of key 
words.  Problems  are  similar,  and  often  the  proposed  solutions  are  applicable  in  both 
disciplines. 

 Decision boundaries in 1NN are concatenated segments of the  Voronoi diagram  as 
shown in Figure 4 .28 . The Voronoi diagram decomposes space into Voronoi cells, where 
each  cell  consists  of  all  points  that  are  closer  to  the  sample  than  to  other  samples. 
Assume that we have X training samples in a 2 - D space. The diagram then partitions 

     Figure 4.28.      Voronoi diagram in a 2 - D space.  

120 

LEARNING  FROM  DATA

the 2 - D plane into |X |  convex polygons, each containing its corresponding sample (and 
no other), where a convex polygon is a convex region in a 2 - D space bounded by lines. 
For general  k     >    1 case, consider the region in the space for which the set of kNN is the 
same. This again is a convex polygon and the space is partitioned into convex polygons, 
within each of which the set of kNN is invariant.   

 The parameter  k  in kNN is often chosen based on experience or knowledge about 
the classiﬁ cation problem at hand. It is desirable for  k  to be odd to make ties less likely. 
 k     =    3 and  k     =    5 are common choices, but much larger values up to 100 are also used. 
An alternative way of setting the parameter is to select  k  through the iterations of testing 
process, and select  k  that gives best results on testing set. 

 Time complexity of the algorithm is linear in the size of the training set as we need 
to compute the distance of each training sample from the new test sample. Of course, 
the computing time goes up as k goes up, but the advantage is that higher values of k 
provide  smoothing  of  the  classiﬁ cation  surface  that  reduces  vulnerability  to  noise  in 
the  training  data. At  the  same  time  high  value  for  k  may  destroy  the  locality  of  the 
estimation since farther samples are taken into account, and large k increases the com-
putational burden. In practical applications, typically, k is in units or tens rather than 
in hundreds or thousands. The nearest neighbor classiﬁ er is quite simple algorithm, but 
very computationally intensive especially in the testing phase. The choice of the dis-
tance measure is another important consideration. It is well known that the Euclidean 
distance  measure  becomes  less  discriminating  as  the  number  of  attributes  increases, 
and in some cases it may be better to use cosine or other measures rather than Euclidean 
distance. 

 Testing time of the algorithm is independent of the number of classes, and kNN 
therefore  has  a  potential  advantage  for  classiﬁ cation  problems  with  multiple  classes. 
For the example in Figure 4 .29  we have three classes ( ω  1 ,  ω  2 ,  ω  3 ) represented by a set 
of training samples, and the goal is to ﬁ nd a class label for the testing sample x u . In 
this case, we use the Euclidean distance and a value of k    =    5 neighbors as the threshold. 

ω1

ω2

xu
x

1

ω3

     Figure 4.29.      Nearest neighbor classiﬁ er for k    =    5.  

KNN:  NEAREST  NEIGHBOR  CLASSIFIER 

121

Of the ﬁ ve closest neighbors, four belong to  ω  1  class and 1 belongs to  ω  3  class, so x u  
is assigned to  ω  1  as the predominant class in the neighborhood.   

 In summary, kNN classiﬁ er only requires a parameter  k , a set of labeled training 
samples,  and  a  metric  measure  for  determining  distances  in  an  n - dimensional  space. 
kNN classiﬁ cation process is usually based on the following steps:

    (cid:127)       Determine parameter k — number of nearest neighbors.  
   (cid:127)       Calculate the distance between each testing sample and all the training samples.  
   (cid:127)       Sort the distance and determine nearest neighbors based on the k - th threshold.  
   (cid:127)       Determine the category (class) for each of the nearest neighbors.  
   (cid:127)       Use simple majority of the category of nearest neighbors as the prediction value 

of the testing sample classiﬁ cation.    

 There are many techniques available for improving the performance and speed of 
a nearest neighbor classiﬁ cation. One solution is to choose a subset of the training data 
for classiﬁ cation. The idea of the  Condensed Nearest Neighbor (CNN)  is to select the 
smallest  subset  Z  of  training  data  X  such  that  when  Z  is  used  instead  of  X,  error  in 
classiﬁ cation of new testing samples does not increase. 1NN is used as the nonpara-
metric  estimator  for  classiﬁ cation.  It  approximates  the  classiﬁ cation  function  in  a 
piecewise  linear  manner.  Only  the  samples  that  deﬁ ne  the  classiﬁ er  need  to  be  kept. 
Other samples, inside regions, need not be stored because they belong to the same class. 
An  example  of  CNN  classiﬁ er  in  a  2 - D  space  is  given  in  Figure  4 .30 .  Greedy  CNN 
algorithm is deﬁ ned with the following steps:

   1.      Start wit empty set Z.    
  2.      Pass samples from X one by one in a random order, and check whether they 

can be classiﬁ ed correctly by instances in Z.  

Condensed 1NN

Not stored samples

     Figure 4.30.      CNN classiﬁ er in a 2 - D space.  

122 

LEARNING  FROM  DATA

  3.      If  a  sample  is  misclassiﬁ ed  it  is  added  to  Z;  if  it  is  correctly  classiﬁ ed  Z  is 

unchanged.  

  4.      Repeat  a  few  times  over  a  training  data  set  until  Z  is  unchanged. Algorithm 

does not guarantee a minimum subset for Z.    

 kNN methodology is relatively simple and could be applicable in many real - world 
problems. Still, there are some methodological problems such as scalability,  “ course of 
dimensionality, ”   inﬂ uence  of  irrelevant  attributes,  weight  factors  in  the  distance 
measure, and weight factors for votes of k neighbors.  

   4.7  

  MODEL SELECTION VERSUS GENERALIZATION 

 We  assume  that  the  empirical  data  are  given  according  to  an  unknown  probability 
distribution. The  question  arises  as  to  whether  a  ﬁ nite  set  of  empirical  data  includes 
sufﬁ cient  information  such  that  the  underlying  regularities  can  be  learned  and  repre-
sented with a corresponding model. A positive answer to this question is a necessary 
condition for the success of any learning algorithm. A negative answer would yield the 
consequence that a learning system may remember the empirical data perfectly, and the 
system may have an unpredictable behavior with unseen data. 

 We may start discussion about appropriate model selection with an easy problem 
of  learning  a  Boolean  function  from  examples. Assume  that  both  inputs  and  outputs 
are  binary.  For  d  inputs,  there  are  2 d   different  samples,  and  there  are  2 2d   possible 
Boolean functions as outputs. Each function is a potential hypothesis h i . In the case of 
two inputs x 1  and x 2 , there are 2 4     =    16 different hypotheses as shown in Table  4.1 .   

 Each training (learning) sample with two inputs and one output value (x 1 , x 2 , o) 
removes  half  the  hypotheses  (h i ).  For  example,  sample  (0,  0,  0)  removes  h 9   to  h 16  
because these hypotheses have output value 1 for the input pair (0, 0). This is one way 
of  interpreting  learning:  We  start  with  all  possible  hypotheses,  and  as  we  see  more 
training samples we remove non - consistent hypotheses. After seeing N samples, there 
remain 2 2d - N  possible hypotheses, that is, Boolean functions as a model for a given data 
set. In reality, where all inputs are usually not binary but with k different values (k >> ), 
and  also  data  are  high - dimensional  (d >> ),  then  k d     >>    N. The  number  of  samples  for 
real - world data is signiﬁ cantly lower than the number of hypotheses (or the number of 
potential models). Therefore, data set by itself is not sufﬁ cient to ﬁ nd a unique solution —

  TA B LE 4.1.     Boolean Functions as Hypotheses 

    Inputs  

    Hypotheses  

  x 1   
  0  
  0  
  1  
  1  

  x 2   
  0  
  1  
  0  
  1  

  h 1   
  0  
  0  
  0  
  0  

  h 2   
  0  
  0  
  0  
  1  

   . . .   

  h 16   
  1  
  1  
  1  
  1  

    
    
    
    
MODEL  SELECTION  VERSUS  GENERALIZATION 

123

(a)

(b)

(c)

     Figure 4.31.      Trade - off between model complexity and the amount of data. (a) Too simple 
model; (b) too complex model; (c) appropriate model.  

 model. There is still huge number of hypotheses. We have to make some extra assump-
tions to reach a unique solution with the given data (N samples). These assumptions 
we call inductive bias (principle) of the learning algorithm. It inﬂ uences a model selec-
tion. The main question is: How well does a model trained on training data set predict 
the  right  output  for  new  samples  (not  available  in  training  data).  This  represents  an 
essential  requirement  for  model  generalization.  For  best  generalization,  we  should 
match  the  complexity  of  the  hypothesis  class  with  the  complexity  of  the  function 
underlying  training  data.  We  made  in  the  learning  process  a  trade - off  between  the 
complexity of the hypothesis, the amount of data, and the generalization error of new 
samples (Fig. 4. 31 ). Therefore, building a data - mining model is not a straightforward 
procedure, but a very sensitive process requiring, in many cases, feedback information 
for multiple mining iterations. 

 In  the  ﬁ nal  phase  of  the  data - mining  process,  when  the  model  is  obtained  using 
one  or  more  inductive - learning  techniques,  one  important  question  still  exists.  How 
does one verify and validate the model? At the outset, let us differentiate between  vali-
dation  and  veriﬁ cation.  

 Model  validation  is substantiating that the model, within its domain of applicabil-
ity,  behaves  with  satisfactory  accuracy  consistent  with  the  objectives  deﬁ ned  by  the 
users.  In  other  words,  in  model  validation,  we  substantiate  that  the  data  have  trans-
formed  into  the  model  and  that  they  have  sufﬁ cient  accuracy  in  representing  the 
observed system. Model validation deals with building the  right  model, the model that 
corresponds to the system. Model  veriﬁ cation  is substantiating that the model is trans-
formed  from  the  data  as  intended  into  new  representations  with  sufﬁ cient  accuracy. 
Model  veriﬁ cation  deals  with  building  the  model   right,   the  model  that  corresponds 
correctly to the data. 

 Model  validity  is  a  necessary  but  insufﬁ cient  condition  for  the  credibility  and 
acceptability of data - mining results. If, for example, the initial objectives are incorrectly 
identiﬁ ed  or  the  data  set  is  improperly  speciﬁ ed,  the  data - mining  results  expressed 
through the model will not be useful; however, we may still ﬁ nd the model valid. We 
can  claim  that  we  conducted  an   “ excellent ”   data - mining  process,  but  the  decision 
makers will not accept our results and we cannot do anything about it. Therefore, we 

124 

LEARNING  FROM  DATA

always have to keep in mind, as it has been said, that a problem correctly formulated 
is  a  problem  half - solved. Albert  Einstein  once  indicated  that  the  correct  formulation 
and preparation of a problem was even more crucial than its solution. The ultimate goal 
of a data - mining process should not be just to produce a model for a problem at hand, 
but to provide one that is sufﬁ ciently credible and accepted and implemented by the 
decision makers. 

 The  data - mining  results  are  validated  and  veriﬁ ed  by  the  testing  process.  Model 
testing is demonstrating that inaccuracies exist or revealing the existence of errors in 
the model. We subject the model to test data or test cases to see if it functions properly. 
 “ Test failed ”  implies the failure of the model, not of the test. Some tests are devised to 
evaluate the behavioral accuracy of the model (i.e., validity), and some tests are intended 
to judge the accuracy of data transformation into the model (i.e., veriﬁ cation). 

 The objective of a model obtained through the data - mining process is to classify/
predict new instances correctly. The commonly used measure of a model ’ s quality is 
predictive accuracy. Since new instances are not supposed to be seen by the model in 
its learning phase, we need to estimate its predictive accuracy using the true error rate. 
The true error rate is statistically deﬁ ned as the error rate of the model on an asymptoti-
cally large number of new cases that converge to the actual population distribution. In 
practice,  the  true  error  rate  of  a  data - mining  model  must  be  estimated  from  all  the 
available samples, which are usually split into training and testing sets. The model is 
ﬁ rst designed using training samples, and then it is evaluated based on its performance 
on the test samples. In order for this error estimate to be reliable in predicting future 
model  performance,  not  only  should  the  training  and  the  testing  sets  be  sufﬁ ciently 
large, they must also be independent. This requirement of independent training and test 
samples is still often overlooked in practice. 

 How  should  the  available  samples  be  split  to  form  training  and  test  sets?  If  the 
training set is small, then the resulting model will not be very robust and will have low 
generalization ability. On the other hand, if the test set is small, then the conﬁ dence in 
the estimated error rate will be low. Various methods are used to estimate the error rate. 
They  differ  in  how  they  utilize  the  available  samples  as  training  and  test  sets.  If  the 
number of available samples is extremely large (say, 1 million), then all these methods 
are  likely  to  lead  to  the  same  estimate  of  the  error  rate.  If  the  number  of  samples  is 
smaller,  then  the  designer  of  the  data - mining  experiments  has  to  be  very  careful  in 
splitting the data. There are no good guidelines available on how to divide the samples 
into subsets. No matter how the data are split, it should be clear that different random 
splits, even with the speciﬁ ed size of training and testing sets, would result in different 
error estimates. 

 Let us discuss different techniques, usually called  resampling methods , for splitting 
data sets into training and test samples. The main advantage of using the resampling 
approach over the analytical approach for estimating and selecting models is that the 
former does not depend on assumptions about the statistical distribution of the data or 
speciﬁ c properties of approximating functions. The main disadvantages of resampling 
techniques are their high computational effort and the variation in estimates depending 
on the resampling strategy. 

MODEL  SELECTION  VERSUS  GENERALIZATION 

125

 The basic approach in model estimation is ﬁ rst to prepare or to learn a model using 
a portion of the training data set and then to use the remaining samples to estimate the 
prediction risk for this model. The ﬁ rst portion of the data is called a learning set, and 
the second portion is a validation set, also called a testing set. This  na ï ve strategy  is 
based on the assumption that the learning set and the validation set are chosen as rep-
resentatives  of  the  same,  unknown  distribution  of  data. This  is  usually  true  for  large 
data  sets,  but  the  strategy  has  an  obvious  disadvantage  for  smaller  data  sets. With  a 
smaller number of samples, the speciﬁ c method of splitting the data starts to have an 
impact on the accuracy of the model. The various methods of resampling are used for 
smaller data sets, and they differ according to the strategies used to divide the initial 
data set. We will give a brief description of the resampling methods that are common 
in today ’ s data - mining practice, and a designer of a data - mining system will have to 
make a selection based on the characteristics of the data and the problem.

   1.      Resubstitution Method.        This is the simplest method. All the available data are 
used for training as well as for testing. In other words, the training and testing 
sets  are  the  same.  Estimation  of  the  error  rate  for  this   “ data  distribution ”   is 
optimistically biased (estimated error is often smaller than could be expected 
in real applications of the model), and therefore the method is very seldom used 
in real - world data - mining applications. This is especially the case when the ratio 
of sample size to dimensionality is small.  

  2.      Holdout Method .       Half the data, or sometimes two - thirds of the data, is used for 
training and the remaining data are used for testing. Training and testing sets 
are  independent  and  the  error  estimation  is  pessimistic.  Different  partitioning 
will give different estimates. A repetition of the process, with different training 
and testing sets randomly selected, and integration of the error results into one 
standard parameter, will improve the estimate of the model.  

  3.      Leave - One - Out Method .       A model is designed using (n    −    1) samples for training 
and evaluated on the one remaining sample. This is repeated n times with dif-
ferent  training  sets  of  size  (n    −    1).  This  approach  has  large  computational 
requirements because n different models have to be designed and compared.  
  4.      Rotation  Method  (n - Fold  Cross - Validation).      This  approach  is  a  compromise 
between  holdout  and  leave - one - out  methods.  It  divides  the  available  samples 
into  P  disjoint  subsets,  where  1    ≤    P    ≤    n.  (P    −    1)  subsets  are  used  for  training 
and the remaining subset for testing. This is the most popular method in practice, 
especially for problems where the number of samples is relatively small.  
  5.      Bootstrap Method.      This method resamples the available data with replacements 
to generate a number of  “ fake ”  data sets of the same size as the given data set. 
The number of these new sets is typically several hundreds. These new training 
sets  can  be  used  to  deﬁ ne  the  so - called  bootstrap  estimates  of  the  error  rate. 
Experimental  results  have  shown  that  the  bootstrap  estimates  can  outperform 
the  cross - validation  estimates.  This  method  is  especially  useful  in  small  data 
set situations.     

126 

LEARNING  FROM  DATA

   4.8  

  MODEL ESTIMATION 

 A  model  realized  through  the  data - mining  process  using  different  inductive - learning 
techniques might be estimated using the standard error rate parameter as a measure of 
its performance. This value expresses an approximation of the true error rate, a param-
eter deﬁ ned in SLT. The error rate is computed using a testing data set obtained through 
one of applied resampling techniques. In addition to the accuracy measured by the error 
rate, data - mining models can be compared with respect to their speed, robustness, scal-
ability,  and  interpretability;  all  these  parameters  may  have  an  inﬂ uence  on  the  ﬁ nal 
veriﬁ cation  and  validation  of  the  model.  In  the  short  overview  that  follows,  we  will 
illustrate the characteristics of the error - rate parameter for classiﬁ cation tasks; similar 
approaches and analyses are possible for other common data - mining tasks. 

 The computation of error rate is based on counting of errors in a testing process. 
These  errors  are,  for  a  classiﬁ cation  problem,  simply  deﬁ ned  as  misclassiﬁ cation 
(wrongly  classiﬁ ed  samples).  If  all  errors  are  of  equal  importance,  an  error  rate  R  is 
the number of errors E divided by the number of samples S in the testing set:

= /
   R E S

 The accuracy AC of a model is a part of the testing data set that is classiﬁ ed cor-

rectly, and it is computed as one minus the error rate:

   AC

= − =

−
R S E S

) /

1

(

 For  standard  classiﬁ cation  problems,  there  can  be  as  many  as  m 2     −    m  types  of 

errors, where m is the number of classes. 

 Two  tools  commonly  used  to  assess  the  performance  of  different  classiﬁ cation 
models are the  confusion matrix  and the  lift chart.  A confusion matrix, sometimes called 
a classiﬁ cation matrix, is used to assess the prediction accuracy of a model. It measures 
whether a model is confused or not, that is, whether the model is making mistakes in 
its predictions. The format of a confusion matrix for a two - class case with classes yes 
and no is shown in Table  4.2 .   

 If there are only two classes (positive and negative samples, symbolically repre-

sented with T and F or with 1 and 0), we can have only two types of errors:

   1.      It is expected to be T, but it is classiﬁ ed as F: These are false negative errors 

(C: False - ), and  

  TABLE 4.2.     Confusion Matrix for Two - Class Classiﬁ cation Model 

   Actual Class 

 Predicted Class  

  Class 1  

  Class 2  

   Class 1  

   A : True  +   

   C : False  −   

   Class 2  

   B : False  +   

   D : True  −   

  
  
MODEL  ESTIMATION 

127

  TA BLE 4.3.     Confusion Matrix for Three Classes 

    True Class  

  Classiﬁ cation Model  
  0  
  1  
  2  
  Total  

  0  
  28  
   2   
   0   
  30  

  1  
   1   
  28  
   1   
  30  

  2  
   4   
   2   
  24  
  30  

  Total  
  33  
  32  
  25  
  90  

  2.      It is expected to be F, but it is classiﬁ ed as T: These are false positive errors (B: 

False + ).    

 If  there  are  more  than  two  classes,  the  types  of  errors  can  be  summarized  in  a 
confusion  matrix,  as  shown  in Table   4.3 .  For  the  number  of  classes  m    =    3,  there  are 
six types of errors (m 2     −    m    =    3 2     −    3    =    6), and they are represented in bold type in Table 
 4.3 . Every class contains 30 samples in this example, and the total is 90 testing samples.   

 The error rate for this example is

=
   R E S

/

=

10 90
/

=

0 11  
.

and the corresponding accuracy is

   AC

= − = −
R

1

1 0 11 0 89

.

.

=

(
  or as a percentage: A

=

89

%).   

 Accuracy is not always the best measure of the quality of the classiﬁ cation model. 
It  is  especially  true  for  the  real - world  problems  where  the  distribution  of  classes  is 
unbalanced. For example, if the problem is classiﬁ cation of healthy persons from those 
with  the  disease.  In  many  cases  the  medical  database  for  training  and  testing  will 
contain mostly healthy persons (99%), and only small percentage of people with disease 
(about 1%). In that case, no matter how good the accuracy of a model is estimated to 
be, there is no guarantee that it reﬂ ects the real world. Therefore, we need other mea-
sures for model quality. In practice, several measures are developed, and some of the 
best  known  are  presented  in  Table   4.4 .  Computation  of  these  measures  is  based  on 
parameters  A,  B,  C,  and  D  for  the  confusion  matrix  in  Table  4.2  .  Selection  of  the 
appropriate measure depends on the application domain, and for example in medical 
ﬁ eld the most often used are measures: sensitivity and speciﬁ city.   

 So  far  we  have  considered  that  every  error  is  equally  bad.  In  many  data - mining 
applications, the assumption that all errors have the same weight is unacceptable. So, 
the differences between various errors should be recorded, and the ﬁ nal measure of the 
error rate will take into account these differences. When different types of errors are 
associated with different weights, we need to multiply every error type with the given 
weight factor c ij . If the error elements in the confusion matrix are e ij , then the total cost 
function C (which replaces the number of errors in the accuracy computation) can be 
calculated as

     
     
128 

LEARNING  FROM  DATA

  TA BLE 4.4.     Evaluation Metrics for Confusion Matrix 2    ×    2 

   Evaluation Metrics  

   Computation Using Confusion Matrix  

  True positive rate (TP)  
  False positive rate (FP)  
  Sensitivity (SE)  
  Sensitivity (SP)  
  Accuracy (AC)  
  Recall (R)  
  Precision (P)  
  F measure (F)  

  TP    =    A/(A    +    C)  
  FP    =    B/(B    +    D)  
  SE    =    TP  
  SP    =    1    −    FP  
  AC    =    (A    +    D)/(A    +    B    +    C    +    D)  

  R    =    A/(A    +    B)  
  P    =    A/(A    +    C)  
  F    =    2PR/(P    +    R)  

=

   C

m

m

∑∑

c eij

ij

=
1

i

=
1

j

 In  many  data - mining  applications,  it  is  not  adequate  to  characterize  the  perfor-
mance of a model by a single number that measures the overall error rate. More complex 
and  global  measures  are  necessary  to  describe  the  quality  of  the  model. A  lift  chart, 
sometimes  called  a  cumulative  gains  chart,  is  an  additional  measure  of  classiﬁ cation 
model  performance.  It  shows  how  classiﬁ cation  results  are  changed  by  applying  the 
model to different segments of a testing data set. This change ratio, which is hopefully 
the increase in response rate, is called the  “ lift. ”  A lift chart indicates which subset of 
the dataset contains the greatest possible proportion of positive responses or accurate 
classiﬁ cation. The higher the lift curve is from the baseline, the better the performance 
of the model since the baseline represents the null model, which is no model at all. To 
explain  a  lift  chart,  suppose  a  two - class  prediction  where  the  outcomes  were  yes  (a 
positive response) or no (a negative response). To create a lift chart, instances in the 
testing  dataset  are  sorted  in  descending  probability  order  according  to  the  predicted 
probability of a positive response. When the data are plotted, we can see a graphical 
depiction of the various probabilities as it is represented with the black histogram in 
Figure  4 .32 a.  The  baseline,  represented  as  the  white  histogram  on  the  same  ﬁ gure, 
indicates the expected result if no model was used at all. Note that the best model is 
not the one with the highest lift when it is being built with the training data. It is the 
model that performs the best on unseen, future data.   

 The lift chart is also a big help in evaluating the usefulness of a model. It shows 
how responses are changed in percentiles of testing samples population, by applying 
the data mining model. For example, in Figure 4 .32 a, instead of a 10% response rate 
when a random 10% of the population is treated, the response rate of the top selected 
10% of the population is over 35%. The lift is 3.5 in this case. 

 Another  important  component  of  interpretation  is  to  assess  the  ﬁ nancial  beneﬁ ts 
of the model. Again, a discovered model may be interesting and relatively accurate, but 
acting  on  it  may  cost  more  than  the  revenue  or  savings  it  generates.  The  Return  on 

  
MODEL  ESTIMATION 

129

100
90
80
70
60
50
40
30
20
10
0

e
s
n
o
p
s
e
r

t
n
e
c
r
e
P

Random
Scored

Random
Scored

)

%

(

I

O
R

100.00

80.00

60.00

40.00

20.00

0.00

−20.00

−40.00

Decile

(b)

1

2

3

4

5

6

7

8

9 10

Decile

(a)

     Figure 4.32.      Assessing the performances of data - mining model. (a) Lift chart; (b) ROI chart.  

Investment  (ROI)  chart,  given  in  Figure  4 .32 b,  is  a  good  example  of  how  attaching 
values to a response and costs to a program can provide additional guidance to decision 
making.  Here,  ROI  is  deﬁ ned  as  ratio  of  proﬁ t  to  cost.  Note  that  beyond  the  eighth 
decile  (80%),  or  80%  of  testing  population,  the  ROI  of  the  scored  model  becomes 
negative.  It  is  at  a  maximum  for  this  example  at  the  second  decile  (20%  of 
population). 

 We  can  explain  the  interpretation  and  practical  use  of  lift  and  ROI  charts  on  a 
simple example of a company who wants to advertise their products. Suppose they have 
a large database of addresses for sending advertising materials. The question is: Will 
they send these materials to everyone in the database? What are the alternatives? How 
do  they  obtain  the  maximum  proﬁ t  from  this  advertising  campaign?  If  the  company 
has additional data about  “ potential ”  costumers in their database, they may build the 
predictive (classiﬁ cation) model about the behavior of customers and their responses 
to the advertisement. In estimation of the classiﬁ cation model, lift chart is telling the 
company what the potential improvements in advertising results are. What are beneﬁ ts 
if they use the model and based on the model select only the most promising (respon-
sive) subset of database instead of sending ads to everyone? If the results of the campaign 
are presented in Figure 4 .32 a the interpretation may be the following. If the company 
is sending the advertising materials to the top 10% of customers selected by the model, 
the expected response will be 3.5 times greater than sending the same ads to randomly 
selected  10%  of  customers.  On  the  other  hand,  sending  ads  involves  some  cost  and 
receiving response and buying the product results in additional proﬁ t for the company. 
If  the  expenses  and  proﬁ ts  are  included  in  the  model,  ROI  chart  shows  the  level  of 
proﬁ t obtained with the predictive model. From Figure 4 .32 b it is obvious that the proﬁ t 
will be negative if ads are sent to all customers in the database. If it is sent only to 10% 

 
 
130 

LEARNING  FROM  DATA

FAR

 1 

0.5 

     0 
       0

0.2

0.4

0.6

0.8

1 

1-FRR 

     Figure 4.33.      The ROC curve shows the trade - off between sensitivity and 1 - speciﬁ city values.  

of the top customers selected by the model, ROI will be about 70%. This simple example 
may be translated to large number of different data - mining applications. 

 While lift and ROI charts are popular in the business community for evaluation of 
data - mining  models,  the  scientiﬁ c  community   “ likes ”   the  Receiver  Operating 
Characteristic (ROC) curve better. What is the basic idea behind an ROC curve con-
struction? Consider a classiﬁ cation problem where all samples have to be labeled with 
one  of  two  possible  classes. A  typical  example  is  a  diagnostic  process  in  medicine, 
where it is necessary to classify the patient as being with or without disease. For these 
types  of  problems,  two  different  yet  related  error  rates  are  of  interest.  The  False 
Acceptance  Rate  (FAR)  is  the  ratio  of  the  number  of  test  cases  that  are  incorrectly 
 “ accepted ”   by  a  given  model  to  the  total  number  of  cases.  For  example,  in  medical 
diagnostics, these are the cases in which the patient is wrongly predicted as having a 
disease. On the other hand, the False Reject Rate (FRR) is the ratio of the number of 
test cases that are incorrectly  “ rejected ”  by a given model to the total number of cases. 
In the previous medical example, these are the cases of test patients who are wrongly 
classiﬁ ed as healthy. 

 For  the  most  of  the  available  data - mining  methodologies,  a  classiﬁ cation  model 
can be tuned by setting an appropriate threshold value to operate at a desired value of 
FAR. If we try to decrease the FAR parameter of the model, however, it would increase 
the FRR and vice versa. To analyze both characteristics at the same time, a new param-
eter was developed, the ROC curve. It is a plot of FAR versus 1    −    FRR for different 
threshold values in the model. This curve permits one to assess the performance of the 
model at various operating points (thresholds in a decision process using the available 
model)  and  the  performance  of  the  model  as  a  whole  (using  as  a  parameter  the  area 
below  the  ROC  curve). The  ROC  curve  is  especially  useful  for  a  comparison  of  the 
performances of two models obtained by using different data - mining methodologies. 
The typical shape of an ROC curve is given in Figure 4 .33  where the axes are  sensitivity  
(FAR) and  1 - speciﬁ city  (1    −    FRR).   

 How does one construct an ROC curve in practical data - mining applications? Of 
course, many data - mining tools have a module for automatic computation and visual 
representation  of  an  ROC  curve. What  if  this  tool  is  not  available? At  the  beginning 
we are assuming that we have a table with actual classes and predicted classes for all 
training samples. Usually, predicted values as an output from the model are not com-
puted as 0 or 1 (for two class problem) but as real values on interval [0, 1]. When we 

MODEL  ESTIMATION 

131

actual outcome

actual outcome

predicted
outcome

1

0

sensitivity:

specificity:

1

8

0

(a)

0

3

9

predicted
outcome

1

0

8
8 + 0

9
9 + 3

= 100%

= 75%

sensitivity:

specificity:

1

6

2

0

2

10

6
6 + 2

10
10 + 2

= 75%

= 83%

(b)

     Figure 4.34.      Computing points on an ROC curve. (a) Threshold    =    0.5; (b) threshold    =    0.8.  

select a threshold value, we may assume that all predicted values above the threshold 
are 1, and all values below the threshold are 0. Based on this approximation we may 
compare  actual  class  with  predicted  class  by  constructing  a  confusion  matrix,  and 
compute  sensitivity  and  speciﬁ city  of  the  model  for  the  given  threshold  value.  In 
general,  we  can  compute  sensitivity  and  speciﬁ city  for  large  numbers  of  different 
threshold values. Every pair of values (sensitivity, 1 - speciﬁ city) represents one discrete 
point on a ﬁ nal ROC curve. Examples are given in Figure 4 .34 . Typically, for graphical 
presentation,  we  are  systematically  selecting  threshold  values.  For  example,  starting 
from 0 and increasing by 0.05 until 1, we have 21 different threshold values. That will 
generate enough points to reconstruct an ROC curve.   

 When we are comparing two classiﬁ cation algorithms we may compare the mea-
sures as accuracy or F measure, and conclude that one model is giving better results 
than the other. Also, we may compare lift charts, ROI charts, or ROC curves, and if 
one  curve  is  above  the  other  we  may  conclude  that  a  corresponding  model  is  more 
appropriate. But in both cases we may not conclude that there are signiﬁ cant differences 
between  models,  or  more  important,  that  one  model  shows  better  performances  than 
the  other  with  statistical  signiﬁ cance.  There  are  some  simple  tests  that  could  verify 
these differences. The ﬁ rst one is McNemar ’ s test. After testing models of both classi-
ﬁ ers,  we  are  creating  a  speciﬁ c  contingency  table  based  on  classiﬁ cation  results  on 
testing  data  for  both  models.  Components  of  the  contingency  table  are  explained  in 
Table 4.5. 

 After  computing  the  components  of  the  contingency  table,  we  may  apply  the   χ  2  

statistic with one degree of freedom for the following expression:

   [(|

e

01

−

e
10

−
2
) ] /(
1

e

|

01

+

e
10

) ~

2

χ   

132 

LEARNING  FROM  DATA

  TABLE 4.5.     Contingency Table for McNemar ’ s Test 

   e  00 : Number of samples misclassiﬁ ed by both 
classiﬁ ers  
   e  10 : Number of samples misclassiﬁ ed by 
classiﬁ er 2, but not classiﬁ er 1  

   e  01 : Number of samples misclassiﬁ ed by 
classiﬁ er 1, but not classiﬁ er 2  
   e  11 : Number of samples correctly classiﬁ ed by 
both classiﬁ er s  

 McNemar ’ s test rejects the hypothesis that the two algorithms have the same error 
at  the  signiﬁ cance  level   α ,  if  previous  value  is  greater  than   χ  2     α ,  1 .  For  example,  for 
 α     =    0.05,  χ  2   0.05, 1     =    3.84. 

 The other test is applied if we compare two classiﬁ cation models that are tested 
with the K - fold cross - validation process. The test starts with the results of K - fold cross -
 validation obtained from K training/validation set pairs. We compare the error percent-
ages  in  two  classiﬁ cation  algorithms  based  on  errors  in  K  validation  sets  that  are 
recorded for two models as:   pi

1  and   pi

 The difference in error rates on fold i is   P
i

2 . Then, we can compute:
i

2 , i    =    1,    . . .    , K. 
p

−1
p
i

=

=

   m





k

∑

=
1

i

2
P K and S
i

/





=





k

∑

=
1

i

−
(P m)

i

2





/

K

−

1

 We have a statistic that is t distributed with K - 1 degrees of freedom, and the fol-

lowing test:

   (

∗

K m S t K

) / ~

−1   

 Thus, the K - fold cross - validation paired  t  - test rejects the hypothesis that two algo-
rithms  have  the  same  error  rate  at  signiﬁ cance  level   α ,  if  previous  value  is  outside 
interval ( − t  α /2,K - 1 , t  α /2,K - 1 ). For example, the threshold values could be for  α     =    0.05 and 
K    =    10 or 30: t 0.025, 9     =    2.26, and t 0.025, 29     =    2.05. 

 Over time, all systems evolve. Thus, from time to time the model will have to be 
retested, retrained, and possibly completely rebuilt. Charts of the residual differences 
between forecasted and observed values are an excellent way to monitor model results.  

   4.9  

  90% ACCURACY: NOW WHAT? 

 Often forgotten in texts on data mining is a discussion of the deployment process. Any 
data - mining  student  may  produce  a  model  with  relatively  high  accuracy  over  some 
small  data  set  using  the  tools  available.  However,  an  experienced  data  miner  sees 
beyond the creation of a model during the planning stages. There needs to be a plan 
created to evaluate how useful a data - mining model is to a business, and how the model 
will be rolled out. In a business setting the value of a data - mining model is not simply 
the accuracy, but how that model can impact the bottom line of a company. For example, 
in  fraud  detection,  algorithm A  may  achieve  an  accuracy  of  90%  while  algorithm  B 

  
90%  ACCURACY:  NOW  WHAT? 

133

achieves 85% on training data. However, an evaluation of the business impact of each 
may reveal that algorithm A would likely underperform algorithm B because of larger 
number  of  very  expensive  false  negative  cases. Additional  ﬁ nancial  evaluation  may 
recommend algorithm B for the ﬁ nal deployment because with this solutions company 
saves more money. A careful analysis of the business impacts of data - mining decisions 
gives much greater insight of a data - mining model. 

 In  this  section  two  case  studies  are  summarized. The  ﬁ rst  case  study  details  the 
deployment  of  a  data - mining  model  that  improved  the  efﬁ ciency  of  employees  in 
ﬁ nding  fraudulent  claims  at  an  insurance  company  in  Chile.  The  second  case  study 
involves  a  system  deployed  in  hospitals  to  aid  in  counting  compliance  with  industry 
standards in caring for individuals with cardiovascular disease (CVD). 

   4.9.1  

  Insurance Fraud Detection 

 In 2005, the insurance company Banmedica S.A. of Chile received 800 digital medical 
claims per day. The process of identifying fraud was entirely manual. Those responsible 
for identifying fraud had to look one - by - one at medical claims to ﬁ nd fraudulent cases. 
Instead it was hoped that data - mining techniques would aid in a more efﬁ cient discov-
ery of fraudulent claims. 

 The ﬁ rst step in the data - mining process required that the data - mining experts gain 
a better understanding of the processing of medical claims. After several meetings with 
medical  experts,  the  data - mining  experts  were  able  to  better  understand  the  business 
process as it related to fraud detection. They were able to determine the current criteria 
used  in  manually  discriminating  between  claims  that  were  approved,  rejected,  and 
modiﬁ ed. A number of known fraud cases were discussed and the behavioral patterns 
that revealed these documented fraud cases. 

 Next,  two  data  sets  were  supplied. The  ﬁ rst  data  set  contained  169  documented 
cases  of  fraud.  Each  fraudulent  case  took  place  over  an  extended  period  of  time, 
showing that time was an important factor in these decisions as cases developed. The 
second data set contained 500,000 medical claims with labels supplied by the business 
of  “ approved, ”   “ rejected, ”  or  “ reduced. ”  

 Both data sets were analyzed in detail. The smaller data set of known fraud cases 
revealed that these fraudulent cases all involved a small number of medical profession-
als,  afﬁ liates,  and  employers.  From  the  original  paper,   “ 19  employers  and  6  doctors 
were  implicated  with  152  medical  claims. ”   The  labels  of  the  larger  data  set  were 
revealed to be not sufﬁ ciently accurate for data mining. Contradictory data points were 
found. A lack of standards in recording these medical claims, with a large number of 
missing values contributed to the poorly labeled data set. Instead of the larger 500,000 
point data set, the authors were  “ forced ”  to rebuild a subset of thesee data. This required 
manual labeling of the subset. 

 The manual labeling would require a much smaller set of data points to be used 
from the original 500,000. To cope with a smaller set of data points, the problem was 
split into four smaller problems, namely identifying fraudulent medical claims, afﬁ li-
ates, medical professionals, and employers. Individual data sets were constructed for 
each of these four subtasks ranging in size from 2838 samples in the medical claims 

134 

LEARNING  FROM  DATA

task to 394 samples in the employer subtask. For each subtask a manual selection of 
features was performed. This involved selecting only one feature from highly correlated 
features, replacing categorical features with numerical features, and design new features 
that   “ summarize  temporal  behavior  over  an  extended  time  span. ”   The  original  125 
features  were  paired  down  to  between  12  and  25  features  depending  on  the  subtask. 
Additionally, the output of all other subtasks became inputs to each subtask, thus pro-
viding feedback to each subtask. Last, 2% of outliers were removed and features were 
normalized. 

 When modeling the data it was found that initially the accuracy of a single neural 
network on these data sets could vary by as much as 8.4%. Instead of a single neural 
network for a particular data set, a committee of neural networks was used. Each data 
set was also divided into a training set, a validation set, and a testing set to avoid over-
ﬁ tting the data. At this point it was also decided that each of the four models would be 
retrained monthly to keep up with the ever evolving process of fraud. 

 Neural networks and committees of neural networks output scores rather than an 
absolute fraud classiﬁ cation. It was necessary that a threshold be set for the output  . The 
threshold was decided after accounting for personnel costs, false alarm costs, and the 
cost of not detecting a particular instance of fraud. All of these factors ﬁ gured into an 
ROC curve to decide upon acceptable false and true positive rates. When the medical 
claims model using the input of the other three subtasks scored a medical claim above 
the chosen threshold, then a classiﬁ cation of fraud is given to that claim. The system 
was  tested  on  a  historical  data  set  of  8819  employers  that  contains  418  instances  of 
fraud. After this historical data set was split into training, validation, and test set, the 
results showed that the system identiﬁ ed 73.4% of the true fraudsters and had a false 
positive rate of 6.9%. 

 The completed system was then run each night giving each new medical claim a 
fraud probability. The claims are then reviewed being sorted by the given probabilities. 
There were previously very few documented cases of fraud. After implementation there 
were approximately 75 rejected claims per month. These newly found cases of fraud 
accounted  for  nearly  10%  of  the  raw  overall  costs  to  the  company. Additionally,  the 
culture of fraud detection changed. A taxonomy of the types of fraud was created and 
further improvements were made on the manual revision process. The savings covered 
the operational costs and increased the quality of health coverage. 

 Overall this project was a big success. The authors spent a lot of time ﬁ rst under-
standing  the  problem  and  second  analyzing  the  data  in  detail,  before  the  data  was 
modeled. The ﬁ nal models produced were analyzed in terms of real business costs. In 
the end the results showed that the costs of the project were justiﬁ ed and Banmedica 
S.A. greatly beneﬁ ted from the ﬁ nal system.  

   4.9.2  

  Improving Cardiac Care 

 CVD leads to nearly 1 million deaths (or 38% of all deaths) in the United States per 
year. Additionally, in 2005 the estimated cost of CVD was $394 billion compared with 
an estimated $190 billion on all cancers combined. CVD is a real problem that appears 
to  be  growing  in  the  number  of  lives  claimed  and  the  percent  of  the  population  that 

90%  ACCURACY:  NOW  WHAT? 

135

will be directly affected by this disease. Certainly we can gain a better understanding 
of this disease. There already exist guidelines for the care of patients with CVD that 
were created by panels of experts. With the current load on the medical system, doctors 
are able to only spend a short amount of time with each patient. With the large number 
of guidelines that exists, it is not reasonable to expect that doctors will follow every 
guideline on every patient. Ideally a system would aid a doctor in following the given 
guidelines without adding additional overheads. 

 This  case  study  outlines  the  use  and  deployment  of  a  system  called  REMIND, 
which is meant both to ﬁ nd patients at need within the system, and to enable a better 
tracking  of  when  patients  are  being  cared  for  according  to  guidelines.  Currently  two 
main  types  of  records  are  kept  for  each  patient,  ﬁ nancial  and  clinical.  The  ﬁ nancial 
records  are  used  for  billing.  These  records  use  standardized  codes  (e.g.,  ICD - 9)  for 
doctor assessments and drugs prescribed. This standardization makes it straightforward 
for computer systems to extract information from these records and used by data - mining 
processes. However, it has been found that these codes are accurate only 60 – 80% of 
the time for various reasons. One reason is that when these codes are used for billing, 
although two conditions are nearly identical in symptoms and prescriptions, the amount 
of money that will be paid out by an insurer may be very different. The other form of 
records kept is clinical records. Clinical records are made up of unstructured text, and 
allow for the transfer of knowledge about a patient ’ s condition and treatments from one 
doctor to another. These records are much more accurate, but are not in a form that is 
easily used by automated computer systems. 

 It is not possible that with great demands on the time of doctors and nurses that 
additional  data  may  be  recorded  speciﬁ cally  for  this  system.  Instead,  the  REMIND 
system combines data from all available systems. This includes extracting knowledge 
from  the  unstructured  clinical  records.  The  REMIND  system  combines  all  available 
sources of data present, then using redundancy in data the most likely state of the patient 
is found. For example to determine a patient is diabetic one may use any of the follow-
ing pieces of data: billing code 250.xx for diabetes, a free text dictation identifying a 
diabetic diagnosis, a blood sugar value  > 300, a treatment of insulin or oral antidiabetic, 
or  a  common  diabetic  complication.  The  likelihood  of  the  patient  having  diabetes 
increases as more relevant information is found. The REMIND system uses extracted 
information  from  all  possible  data  sources,  combined  in  a  Bayesian  network.  The 
various  outputs  of  the  network  are  used  along  with  temporal  information  to  ﬁ nd  the 
most probable sequence of states with a predeﬁ ned disease progression modeled as a 
Markov model. The probabilities and structure of the Bayesian network are provided 
as domain knowledge provided beforehand by experts and tunable per deployment. The 
domain knowledge in the REMIND system is fairly simple as stated by the author of 
the system. Additionally, by using a large amount of redundancy the system performs 
well for a variety of probability settings and temporal settings for the disease progres-
sion. However, before a wide distribution of the REMIND system a careful tuning of 
all the parameters must take place. 

 One example deployment was to the South Carolina Heart Center where the goal 
was to identify among 61,027 patients those at risk of Sudden Cardiac Death (SCD). 
Patients who have previously suffered a myocardial infarction (MI; heart attack) are at 

136 

LEARNING  FROM  DATA

the highest risk of SCD. In 1997 a study was performed on the efﬁ cacy of implantable 
cardioverter defribillators (ICDs). It was found that patients, with a prior MI and low 
ventricular function, had their 20 - month mortality rate drop from 19.8% to 14.2%. This 
implantation is now a standard recommendation. Previous to the REMIND system one 
had two options to ﬁ nd who would require the implantation of an ICD. The ﬁ rst option 
is to manually review the records of all patients to identify those who were eligible for 
an  ICD.  This  would  be  extremely  time - consuming  considering  the  large  number  of 
records. The other approach would be to evaluate the need for an ICD during regular 
checkups. However, not all patients come in for regular checkups and there would be 
a high chance that not every patient would be carefully considered for the need of an 
ICD. The  REMIND  system  was  given  access  to  billing  and  demographics  databases 
and transcribed free text including histories, physical reports, physician progress notes, 
and lab reports. From these data the REMIND system processed all records on a single 
laptop in 5 h and found 383 patients who qualiﬁ ed for an ICD. 

 To check the validity of the 383 found patients, 383 randomly chosen patients were 
mixed  with  the  383  found  previously.  Then  150  patients  were  chosen  from  the  766 
patient  samples.  An  electrophysiologist  manually  reviewed  the  150  patients  being 
blinded to the selection made by the REMIND system. The REMIND system concurred 
with  the  manual  analysis  in  94%  (141/150)  of  the  patients. The  sensitivity  was  99% 
(69/70)  and  the  speciﬁ city  was  90%  (72/80).  Thus  it  was  shown  that  the  REMIND 
system could fairly accurately identify at - risk patients in a large database. An expert 
was required to verify the results of the system. Additionally, all of the patients found 
would be reviewed by a physician before implantation would occur. 

 From the previous cases we see that a great deal of time was required from experts 
to prepare data for mining, and careful analysis of a model application needed to take 
place after deployment. Although applied data - mining techniques (neural and Bayesian 
networks) will be explained in the following chapters, the emphasis of these stories is 
on complexity of a data - mining process, and especially deployment phase, in real - world 
applications.  The  system  developed  for  Banmedica  was  measured  after  analysis  in 
terms of fraudulent cases found and the amount of money saved. If these numbers were 
not  in  favor  of  the  system,  then  it  would  have  been  rolled  back.  In  the  case  of  the 
REMIND system, the results of the system wide search had to be manually analyzed 
for accuracy. It was not enough that the rules were good, but the actual patients found 
needed to be reviewed. 

   4.10  

  REVIEW QUESTIONS AND PROBLEMS 

      1.    Explain the differences between the basic types of inferences: induction, deduction, 

and transduction.   

   2.    Why do we use the observational approach in most data - mining tasks?   

   3.    Discuss situations in which we would use the interpolated functions given in Figure 

4 .3 b,c,d as  “ the best ”  data - mining model.   

REVIEW  QUESTIONS  AND  PROBLEMS 

137

   4.    Which of the functions have linear parameters and which have nonlinear? Explain 

why.
   (a)      y    =    a x 5     +    b  
  (b)      y    =    a/x  
  (c)      y    =    a e x   
  (d)      y    =    e a x       

   5.    Explain  the  difference  between  interpolation  of  loss  function  for  classiﬁ cation 

problems and for regression problems.   

   6.    Is it possible that empirical risk becomes higher than expected risk? Explain.   

   7.    Why  is  it  so  difﬁ cult  to  estimate  the  VC  dimension  for  real - world  data - mining 

applications?   

   8.    What will be the practical beneﬁ t of determining the VC dimension in real - world 

data - mining applications?   

   9.    Classify  the  common  learning  tasks  explained  in  Section   4.4   as  supervised  or 

unsupervised learning tasks. Explain your classiﬁ cation.   

   10.    Analyze  the  differences  between  validation  and  veriﬁ cation  of  inductive - based 

models.   

   11.    In which situations would you recommend the leave - one - out method for validation 

of data - mining results?   

   12.    Develop a program for generating  “ fake ”  data sets using the bootstrap method.   

   13.    Develop  a  program  for  plotting  an  ROC  curve  based  on  a  table  of  FAR – FRR 

results.   

   14.    Develop  an  algorithm  for  computing  the  area  below  the  ROC  curve  (which  is  a 
very important parameter in the evaluation of inductive - learning results for clas-
siﬁ cation problems).   

   15.    The  testing  data  set  (inputs: A,  B,  and  C,  output:  Class)  is  given  together  with 
testing results of the classiﬁ cation (predicted output). Find and plot two points on 
the ROC curve for the threshold values of 0.5 and 0.8. 

   A  

  10  
  20  
  30  
  40  
  15  

   B  

  2  
  1  
  3  
  2  
  1  

   C  

  A  
  B  
  A  
  B  
  B  

   Class  

   Predicted  

  (Output)  
  1  
  0  
  1  
  1  
  0  

  Output  
   0.97   
   0.61   
   0.77   
   0.91   
   0.12   

   16.    Machine - learning  techniques  differ  from  statistical  techniques  in  that  machine 

learning methods 

       
    
    
    
138 

LEARNING  FROM  DATA

  (a)      typically assume an underlying distribution for the data,  
  (b)      are better able to deal with missing and noisy data,  
  (c)      are not able to explain their behavior, and  
  (d)      have trouble with large - sized data sets.      

   17.    Explain the difference between sensitivity and speciﬁ city.   

   18.    When  do  you  need  to  use  a  separate  validation  set,  in  addition  to  train  and  test 

sets?   

   19.    In this question we will consider learning problems where each instance x is some 
integer  in  the  set  X    =    {1,  2,    . . .    ,  127},  and  where  each  hypothesis  h     ∈     H  is  an 
interval of the form a    ≤    x    ≤    b, where a and b can be any integers between 1 and 
127 (inclusive), so long as a    ≤    b. A hypothesis a    ≤    x    ≤    b labels instance x positive 
if  x  falls  into  the  interval  deﬁ ned  by  a  and  b,  and  labels  the  instance  negative 
otherwise. Assume throughout this question that the teacher is only interested in 
teaching concepts that can be represented by some hypothesis in H.
   (a)      How many distinct hypotheses are there in H?  
  (b)      Suppose the teacher is trying to teach the speciﬁ c target concept 32    ≤    x    ≤    84. What is 
the minimum number of training examples the teacher must present to guarantee that 
any consistent learner will learn this concept exactly?      

   20.    Is it true that the SVM learning algorithm is guaranteed to ﬁ nd the globally optimal 

hypothesis with respect to its object function? Discuss your answer.       

   4.11  

  REFERENCES FOR FURTHER STUDY 

    Alpaydin ,  A  ,  Introduction to Machine Learning ,  2nd edition ,  The MIT Press ,  Boston ,  2010 .  

  The goal of machine learning is to program computers to use example data or past experience 
to  solve  a  given  problem.  Many  successful  applications  of  machine  learning  exist  already, 
including systems that analyze past sales data to predict customer behavior, optimize robot 
behavior so that a task can be completed using minimum resources, and extract knowledge 
from bioinformatics data.  Introduction to Machine Learning  is a comprehensive textbook on 
the subject, covering a broad array of topics not usually included in introductory machine -
 learning  texts.  In  order  to  present  a  uniﬁ ed  treatment  of  machine - learning  problems  and 
solutions, it discusses many methods from different ﬁ elds, including statistics, pattern recogni-
tion, neural networks, artiﬁ cial intelligence, signal processing, control, and data mining. All 
learning algorithms are explained so that the student can easily move from the equations in 
the book to a computer program.  

    Berthold ,   M.  ,    D.  J.    Hand  ,  eds.,   Intelligent  Data  Analysis — An  Introduction ,   Springer ,   Berlin, 

Germany ,  1999 .  
  The book is a detailed, introductory presentation of the key classes of intelligent data - analysis 
methods including all common data - mining techniques. The ﬁ rst half of the book is devoted 
to the discussion of classical statistical issues, ranging from basic concepts of probability and 
inference to advanced multivariate analyses and Bayesian methods. The second part of the 
book covers theoretical explanations of data - mining techniques that have their roots in disci-
plines other than statistics. Numerous illustrations and examples enhance the readers ’  knowl-
edge about theory and practical evaluations of data - mining techniques.  

REFERENCES  FOR  FURTHER  STUDY 

139

    Cherkassky ,  V.  ,   F.   Mulier  ,  Learning from Data: Concepts, Theory and Methods ,  2nd edition ,  John 

Wiley ,  New York ,  2007 .  
  The book provides a uniﬁ ed treatment of the principles and methods for learning dependencies 
from data. It establishes a general conceptual framework in which various learning methods 
from statistics, machine learning, and other disciplines can be applied — showing that a few 
fundamental  principles  underlie  most  new  methods  being  proposed  today.  An  additional 
strength of this primarily theoretical book is the large number of case studies and examples 
that simplify and make understandable concepts in SLT.  

    Engel ,  A.  ,   C.   Van den   Broeck  ,  Statistical Mechanics of Learning ,  Cambridge University Press , 

 Cambridge, UK ,  2001 .  
  The  subject  of  this  book  is  the  contribution  of  machine  learning  over  the  last  decade  by 
researchers applying the techniques of statistical mechanics. The authors provide a coherent 
account of various important concepts and techniques that are currently only found scattered 
in papers. They include many examples and exercises, making this a book that can be used 
with courses, or for self - teaching, or as a handy reference.  

    Haykin ,  S.  ,  Neural Networks: A Comprehensive Foundation ,  Prentice Hall ,  Upper Saddle River, 

NJ ,  1999 .  
  The  book  provides  a  comprehensive  foundation  for  the  study  of  artiﬁ cial  neural  networks, 
recognizing  the  multidisciplinary  nature  of  the  subject.  The  introductory  part  explains  the 
basic principles of SLT and the concept of VC dimension. The main part of the book classiﬁ es 
and explains artiﬁ cial neural networks as learning machines with and without a teacher. The 
material presented in the book is supported with a large number of examples, problems, and 
computer - oriented experiments.   

 
 
 
  5 

STATISTICAL METHODS     

  Chapter Objectives 

     (cid:127)       Explain  methods  of  statistical  inference  commonly  used  in  data - mining 

applications.  

   (cid:127)       Identify different statistical parameters for assessing differences in data sets.  
   (cid:127)       Describe the components and the basic principles of Na ï ve Bayesian classiﬁ er 

and the logistic regression method.  

   (cid:127)       Introduce log - linear models using correspondence analysis of contingency tables.  
   (cid:127)       Discuss the concepts of analysis of variance (ANOVA) and linear discriminant 

analysis (LDA) of multidimensional samples.     

    Statistics is the science of collecting and organizing data and drawing conclusions 
from data sets. The organization and description of the general characteristics of data 
sets is the subject area of  descriptive statistics . How to draw conclusions from data is 
the subject of  statistical inference . In this chapter, the emphasis is on the basic principles 

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

140

 
STATISTICAL  INFERENCE 

141

of statistical inference; other related topics will be described brieﬂ y enough to under-
stand the basic concepts. 

 Statistical data analysis is the most well - established set of methodologies for data 
mining. Historically, the ﬁ rst computer - based applications of data analysis were devel-
oped with the support of statisticians. Ranging from one - dimensional data analysis to 
multivariate  data  analysis,  statistics  offered  a  variety  of  methods  for  data  mining, 
including different types of regression and discriminant analysis. In this short overview 
of  statistical  methods  that  support  the  data - mining  process,  we  will  not  cover  all 
approaches and methodologies; a selection has been made of the techniques used most 
often in real - world data - mining applications.  

   5.1  

  STATISTICAL INFERENCE 

 The  totality  of  the  observations  with  which  we  are  concerned  in  statistical  analysis, 
whether  their  number  is  ﬁ nite  or  inﬁ nite,  constitutes  what  we  call  a   population . The 
term refers to anything of statistical interest, whether it is a group of people, objects, 
or events. The number of observations in the population is deﬁ ned as the size of the 
population. In general, populations may be ﬁ nite or inﬁ nite, but some ﬁ nite populations 
are so large that, in theory, we assume them to be inﬁ nite. 

 In  the  ﬁ eld  of  statistical  inference,  we  are  interested  in  arriving  at  conclusions 
concerning a population when it is impossible or impractical to observe the entire set 
of observations that make up the population. For example, in attempting to determine 
the average length of the life of a certain brand of light bulbs, it would be practically 
impossible to test all such bulbs. Therefore, we must depend on a subset of observations 
from the population for most statistical - analysis applications. In statistics, a subset of 
a population is called a  sample  and it describes a ﬁ nite data set of n - dimensional vectors. 
Throughout this book, we will simply call this subset of population  data set , to elimi-
nate confusion between the two deﬁ nitions of sample: one (explained earlier) denoting 
the description of a single entity in the population, and the other (given here) referring 
to the subset of a population. From a given data set, we build a statistical model of the 
population that will help us to make inferences concerning that same population. If our 
inferences from the data set are to be valid, we must obtain samples that are representa-
tive of the population. Very often, we are tempted to choose a data set by selecting the 
most convenient members of the population. But such an approach may lead to errone-
ous inferences concerning the population. Any sampling procedure that produces infer-
ences  that  consistently  overestimate  or  underestimate  some  characteristics  of  the 
population  is  said  to  be  biased.  To  eliminate  any  possibility  of  bias  in  the  sampling 
procedure, it is desirable to choose a random data set in the sense that the observations 
are made independently and at random. The main purpose of selecting random samples 
is to elicit information about unknown population parameters. 

 The relation between data sets and the system they describe may be used for induc-
tive  reasoning:  from  observed  data  to  knowledge  of  a  (partially)  unknown  system. 
Statistical inference is the main form of reasoning relevant to data analysis. The theory 
of  statistical  inference  consists  of  those  methods  by  which  one  makes  inferences  or 

142 

STATISTICAL  METHODS

generalizations about a population. These methods may be categorized into two major 
areas:  estimation  and  tests of hypotheses . 

 In  estimation,  one wants to come up with a plausible value or a range of plausible 
values for the unknown parameters of the system. The goal is to gain information from 
a data set T in order to estimate one or more parameters w belonging to the model of 
the  real - world  system  f(X,  w). A  data  set  T  is  described  by  the  ordered  n - tuples  of 
values for variables: X    =    {X 1 , X 2 ,    . . .    , X n } (attributes of entities in population):

   T

= {(

x
11

,

…

,

x
1

n

), (

x

21

,

…

,

x

2

n

),

…

, (

x

m

1

…

,

,

x

)}

mn

 It  can  be  organized  in  a  tabular  form  as  a  set  of  samples  with  its  corresponding 
feature  values.  Once  the  parameters  of  the  model  are  estimated,  we  can  use  them  to 
make predictions about the random variable Y from the initial set of attributes Y ∈  X, 
based  on  other  variables  or  sets  of  variables  X *     =    X    −    Y.  If Y  is  numeric,  we  speak 
about  regression , and if it takes its values from a discrete, unordered data set, we speak 
about  classiﬁ cation . 

 Once  we  have  obtained  estimates  for  the  model  parameters  w  from  some  data 
set T,  we  may  use  the  resulting  model  (analytically  given  as  a  function  f[X * ,  w])  to 
make  predictions  about Y  when  we  know  the  corresponding  value  of  the  vector  X * . 
The difference between the prediction f(X * , w) and the real value Y is called the pre-
diction error. It should preferably take values close to 0. A natural quality measure of 
a model f(X * , w), as a predictor of Y, is the expected mean - squared error for the entire 
data set T:

−
   ET Y f X* w

[(

[

,

2
]) ].

 In   statistical  testing ,  on  the  other  hand,  one  has  to  decide  whether  a  hypothesis 
concerning the value of the population characteristic should be accepted or rejected in 
light of an analysis of the data set. A statistical hypothesis is an assertion or conjecture 
concerning one or more populations. The truth or falsity of a statistical hypothesis can 
never be known with absolute certainty, unless we examine the entire population. This, 
of course, would be impractical in most situations, sometimes even impossible. Instead, 
we test a hypothesis on a randomly selected data set. Evidence from the data set that 
is inconsistent with the stated hypothesis leads to a rejection of the hypothesis, whereas 
evidence supporting the hypothesis leads to its acceptance, or more precisely, it implies 
that the data do not contain sufﬁ cient evidence to refute it. The structure of hypothesis 
testing is formulated with the use of the term  null hypothesis . This refers to any hypoth-
esis that we wish to test and is denoted by H 0 . H 0  is only rejected if the given data set, 
on the basis of the applied statistical tests, contains strong evidence that the hypothesis 
is  not  true.  The  rejection  of  H 0   leads  to  the  acceptance  of  an  alternative  hypothesis 
about the population. 

 In  this  chapter,  some  statistical  estimation  and  hypothesis - testing  methods  are 
described  in  great  detail.  These  methods  have  been  selected  primarily  based  on  the 
applicability of the technique in a data - mining process on a large data set.  

  
  
ASSESSING  DIFFERENCES  IN  DATA  SETS 

143

   5.2  

  ASSESSING DIFFERENCES IN DATA SETS 

 For many data - mining tasks, it would be useful to learn the more general characteristics 
about  the  given  data  set,  regarding  both  central  tendency  and  data  dispersion. These 
simple parameters of data sets are obvious descriptors for assessing differences between 
different  data  sets.  Typical  measures  of  central  tendency  include   mean ,   median ,  and 
 mode , while measures of data dispersion include  variance  and  standard deviation . 

 The most common and effective numeric measure of the center of the data set is 
the  mean  value (also called the arithmetic mean). For the set of n numeric values x 1 , 
x 2 ,    . . .    , x n , for the given feature X, the mean is

   mean =

n

∑1
/ n

xi

=
1

i

and  it  is  a  built - in  function  (like  all  other  descriptive  statistical  measures)  in  most 
modern, statistical software tools. For each numeric feature in the n - dimensional set of 
samples, it is possible to calculate the mean value as a central tendency characteristic 
for this feature. Sometimes, each value x i  in a set may be associated with a weight w i , 
which reﬂ ects the frequency of occurrence, signiﬁ cance, or importance attached to the 
value. In this case, the weighted arithmetic mean or the weighted average value is

   mean =

n

n

∑ ∑w x

/

i

i

w

i

=
1

i

=
1

i

 Although the mean is the most useful quantity that we use to describe a set of data, 
it is not the only one. For skewed data sets, a better measure of the center of data is 
the  median . It is the middle value of the ordered set of feature values if the set consists 
of  an  odd  number  of  elements  and  it  is  the  average  of  the  middle  two  values  if  the 
number of elements in the set is even. If x 1 , x 2 ,    . . .    , x n  represents a data set of size n, 
arranged in increasing order of magnitude, then the median is deﬁ ned by

   median

=

x


(
n


(x

+

1 2
) /
+

n

/

2

if n is odd

x
(

n

/

2 1 2
) /
)

+

if n is even

 Another measure of the central tendency of a data set is the  mode . The mode for 
the  set  of  data  is  the  value  that  occurs  most  frequently  in  the  set.  While  mean  and 
median are characteristics of primarily numeric data sets, the mode may be applied also 
to categorical data, but it has to be interpreted carefully because the data are not ordered. 
It is possible for the greatest frequency to correspond to several different values in a 
data set. That results in more than one mode for a given data set. Therefore, we classify 
data sets as unimodal (with only one mode) and multimodal (with two or more modes). 
Multimodal  data  sets  may  be  precisely  deﬁ ned  as  bimodal,  trimodal,  and  so  on.  For 
unimodal frequency curves that are moderately asymmetrical, we have the following 
useful empirical relation for numeric data sets

 
  
  
144 

STATISTICAL  METHODS

−
   mean mode

≤ ×

3 (

−
mean median

)   

 that  may  be  used  for  an  analysis  of  data  set  distribution  and  the  estimation  of  one 
central - tendency measure based on the other two. 

 As an example, let us analyze these three measures on the simple data set T that 

has the following numeric values:

   T = { ,

3 5 2 9 0 7 3 6   
, }.
,

,

,

,

,

 After a sorting process the same data set is given as

   T = { ,

0 2 3 3 5 6 7 9   
, }.
,

,

,

,

,

 The corresponding descriptive statistical measures for central tendency are

   meanT =

(

+ + + + + + +

0 2 3 3 5 6 7 9 8
   medianT =

4  

) /

+

=

(
3 5 2
) /
   modeT = 3   

=

4 375  
.

 The degree to which numeric data tend to spread is called dispersion of the data, 
and  the  most  common  measures  of  dispersion  are  the   standard  deviation    σ   and  the 
 variance   σ  2 . The variance of n numeric values x 1 , x 2 ,    . . .    , x n  is

   σ2

=

( /(
1

n

n

∑
))
1

−

=
1

i

(

xi

−

mean

)

2

 The standard deviation  σ  is the square root of the variance  σ  2 . The basic properties 

of the standard deviation  σ  as a measure of spread are 

  1.        σ   measures spread about the  mean  and should be used only when the  mean  is 

chosen as a measure of the center.  

  2.       σ     =    0 only when there is no spread in the data, that is, when all measurements 

have the same value. Otherwise  σ     >    0.    

 For the data set given in our example,  variance   σ  2  and  standard deviation   σ  are

(

xi

−

)
4 375
.

2

σ

2

=

σ

2

=

σ

=

8

∑/
1 7

=
1
i
.
8 5532
.
2 9246

 In many statistical software tools, a popularly used visualization tool of descriptive 
statistical  measures  for  central  tendency  and  dispersion  is  a   boxplot   that  is  typically 
determined  by  the  mean  value,  variance,  and  sometimes  max  and  min  values  of  the 
data set. In our example, the minimal and maximal values in the T set are min T     =    0, 

  
   
  
ASSESSING  DIFFERENCES  IN  DATA  SETS 

145

Values   10 

   5

0

2σ

–2σ

xaM

naeM

niM

          _________________________________ 

Data set T

     Figure 5.1.      A boxplot representation of the data set T based on mean value, variance, and 
min and max values.  

0
0
4

0
0
3

0
0
2

0
0
1

0

0

10

20

30

40

50

weeks

     Figure 5.2.      Displaying a single - feature distribution.  

and max T     =    9. Graphical representation of statistical descriptors for the data set T has 
a form of a boxplot, given in Figure  5.1 .   

 Analyzing  large  data  sets  requires  proper  understanding  of  the  data  in  advance. 
This would help domain experts to inﬂ uence the data - mining process and to properly 
evaluate the results of a data - mining application. Central tendency measures for a data 
set  are  valuable  only  for  some  speciﬁ c  distributions  of  data  values.  Therefore,  it  is 
important to know the characteristics of a distribution for a data set we are analyzing. 
The distribution of values in a data set is described according to the spread of its values. 
Usually,  this  is  best  done  using  a  histogram  representation;  an  example  is  given  in 
Figure  5.2 . In addition to quantifying the distribution of values for each feature, it is 
also  important  to  know  the  global  character  of  the  distributions  and  all  speciﬁ cs. 
Knowing  that  data  set  has  a  classic  bell  curve  empowers  researchers  to  use  a  broad 
range  of  traditional  statistical  techniques  for  data  assessment.  But  in  many  practical 
cases,  the  distributions  are  skewed  or  multimodal,  and  traditional  interpretations  of 
concepts such as mean value or standard deviation do not make sense.   

146 

STATISTICAL  METHODS

     Figure 5.3.      Scatter plots showing the correlation between features from  − 1 to 1.  

 Part of the assessment process is determining relations between features in a data 
set. Simple visualization through the scatter plots gives initial estimation of these rela-
tions. Figure  5.3  shows part of the integrated scatter plot where each pair of features 
is compared. This visualization technique is available in most integrated data - mining 
tools. Quantiﬁ cation of these relations is given through the correlation factor.   

 These visualization processes are part of the data - understanding phase, and they 
are  essential  in  preparing  better  for  data  mining.  This  human  interpretation  helps  to 
obtain a general view of the data. It is also possible to identify abnormal or interesting 
characteristics, such as anomalies.  

   5.3  

  BAYESIAN INFERENCE 

 It is not hard to imagine situations in which the data are not the only available source 
of information about the population or about the system to be modeled. The Bayesian 
method  provides  a  principled  way  to  incorporate  this  external  information  into  the 
data - analysis process. This process starts with an already given probability distribution 
for the analyzed data set. As this distribution is given before any data is considered, it 
is  called  a   prior  distribution .  The  new  data  set  updates  this  prior  distribution  into  a 
 posterior distribution . The basic tool for this updating is the Bayes theorem. 

 The Bayes theorem represents a theoretical background for a statistical approach 
to inductive - inferencing classiﬁ cation problems. We will explain ﬁ rst the basic concepts 

BAYESIAN  INFERENCE 

147

deﬁ ned in the Bayes theorem, and then, use this theorem in the explanation of the Na ï ve 
Bayesian classiﬁ cation process, or the  simple Bayesian classiﬁ er . 

 Let X be a data sample whose class label is unknown. Let H be some hypothesis: 
such that the data sample X belongs to a speciﬁ c class C. We want to determine P(H/X), 
the probability that the hypothesis H holds given the observed data sample X. P(H/X) 
is  the  posterior  probability  representing  our  conﬁ dence  in  the  hypothesis  after  X  is 
given. In contrast, P(H) is the prior probability of H for any sample, regardless of how 
the data in the sample look. The posterior probability P(H/X) is based on more informa-
tion then the prior probability P(H). The Bayesian theorem provides a way of calculat-
ing the posterior probability P(H/X) using probabilities P(H), P(X), and P(X/H). The 
basic relation is

   P H X

(

/

=

)

(
P X H P H P X
[ (

)] /

)

(

/

⋅

)

 Suppose now that there is a set of m samples S    =    {S 1 , S 2 ,    . . .    , S m } (the training 
data set) where every sample S i  is represented as an n - dimensional vector {x 1 , x 2 ,    . . .    , 
x n }. Values x i  correspond to attributes A 1 , A 2 ,    . . .    , A n , respectively. Also, there are k 
classes  C 1 ,  C 2 ,    . . .    ,  C k ,  and  every  sample  belongs  to  one  of  these  classes.  Given  an 
additional data sample X (its class is unknown), it is possible to predict the class for 
X  using  the  highest  conditional  probability  P(C i /X),  where  i    =    1,    . . .    ,  k. That  is  the 
basic idea of Na ï ve Bayesian classiﬁ er. These probabilities are computed using Bayes 
theorem:

   P C X
i

(

/

=

)

P X C P C
[ (
i

(

)

/

⋅

)] /

P X
(

)

i

 As  P(X)  is  constant  for  all  classes,  only  the  product  P(X/C i )   ·   P(C i )  needs  to  be 

maximized. We compute the prior probabilities of the class as

(
   P C

i

)

=

number of training samples of class C m

/

i

where m is total number of training samples. 

 Because the computation of P(X/C i ) is extremely complex, especially for large data 
sets,  the  na ï ve  assumption  of  conditional  independence  between  attributes  is  made. 
Using this assumption, we can express P(X/C i ) as a product:

   P X C

(

/

=

)

i

n

∏

=
1

t

P x C
t

(

/

)

i

where  x t   are  values  for  attributes  in  the  sample  X.  The  probabilities  P(x t /C i )  can  be 
estimated from the training data set. 

 A simple example will show that the Na ï ve Bayesian classiﬁ cation is a computa-
tionally  simple  process  even  for  large  training  data  sets.  Given  a  training  data  set  of 
seven four - dimensional samples (Table  5.1 ), it is necessary to predict classiﬁ cation of 
the  new  sample  X    =    {1,  2,  2,  class    =    ?}.  For  each  sample, A 1 , A 2 ,  and A 3   are  input 
dimensions and C is the output classiﬁ cation.   

 In our example, we need to maximize the product P(X/C i )  ·  P(C i ) for i    =    1,2 because 

there are only two classes. First, we compute prior probabilities P(C i ) of the class:

  
  
 
 
148 

STATISTICAL  METHODS

  TA BLE 5.1.     Training Data Set for a Classiﬁ cation Using 
Na ï ve Bayesian Classiﬁ er 

   Sample  

   Attribute1  

   Attribute2  

   Attribute3  

   Class  

  1  
  2  
  3  
  4  
  5  
  6  
  7  

  A 1   
  1  
  0  
  2  
  1  
  0  
  2  
  1  

  A 2   
  2  
  0  
  1  
  2  
  1  
  2  
  0  

  A 3   
  1  
  1  
  2  
  1  
  2  
  2  
  1  

  C  
  1  
  1  
  2  
  2  
  1  
  2  
  1  

   P C(

=

1
)

=

   P C(

=

=

2

)

4 7 0 5714  
.

/

=

3 7 0 4286   
.

/

=

 Second,  we  compute  conditional  probabilities  P(x t /C i )  for  every  attribute  value 
given in the new sample X    =    {1, 2, 2, C    =    ?}, (or more precisely, X    =    {A 1     =    1, A 2     =    2, 
A 3     =    2, C    =    ?}) using training data sets:

   P A
(

   P A
(

   P A
(

=
1 1
=
1 1
=

2

2

/

C

=

)
1

=

/
2 4

=

.
0 50

/

C

=

=

2

)

=
1 3 0 33

/

.

/

C

=

1
)

=

1 4
/

=

0 25
.

   P A
(

2

=

2

/

C

=

=

2

)

=
2 3 0 66

/

.

   P A
(

3

=

2

/

C

=

)
1

=

/
1 4

=

.
0 25

   P A
(

3

=

2

/

C

=

=

2

)

=
2 3 0 66

/

.

 Under  the  assumption  of  conditional  independence  of  attributes,  the  conditional 

probabilities P(X/C i ) will be

P X C

(

/

=

1
)

P X C

(

/

=

2

)

=

=

=

=

=

= ⋅
1
)

/

1

(
P A
1
⋅
225 0 03125
.
0 50 0 25 0
.
.

C
⋅

2

=

2

(
P A
= .
⋅
P A
2
2
(
)
2
= .
0 14375
666

=

=

=

/

1
C
(
P A
1
⋅
⋅
0 33 0 66 0
.
.
.

/

C

= ⋅
1
)

(
P A

3

=

2

/

C

=

1
)

=

/

C

=

⋅

2

)

(
P A

3

=

2

/

C

=

=

2

)

 Finally,  multiplying  these  conditional  probabilities  with  corresponding  a  priori 
probabilities, we can obtain values proportional ( ≈ ) to P(C i /X) and ﬁ nd their maximum:

≈
   P C X P X C
)

(

(

/

/

1

= ⋅
)
1

(
P C

=

)
1

=

⋅
0 03125 0 5714

.

.

=

0 0179

.

 
 
 
 
 
  
   
 
   
  
 
    
PREDICTIVE  REGRESSION 

149

≈
P C X P X C
)

(

(

/

/

2

=

⋅

2

)

(
P C

=

2

)

=

⋅
.
0 14375 0 4286

.

=

.
0 0616

⇓

{
P C X Max
)
),
PP C X P C X

(

(

(

/

/

/

2

1

2

=

=
)} { .

0 0179 0 0616
,
}

.

 Based on the previous two values that are the ﬁ nal results of the Naive Bayesian 
classiﬁ er, we can predict that the new sample X belongs to the class C    =    2. The product 
of probabilities for this class P(X/C    =    2)  ·  P(C    =    2) is higher, and therefore P(C    =    2/X) 
is higher because it is directly proportional to the computed probability product. 

 In  theory,  the  Bayesian  classiﬁ er  has  the  minimum  error  rate  compared  with  all 
other classiﬁ ers developed in data mining. In practice, however, this is not always the 
case  because  of  inaccuracies  in  the  assumptions  of  attributes  and  class - conditional 
independence.  

   5.4  

  PREDICTIVE REGRESSION 

 The prediction of continuous values can be modeled by a statistical technique called 
 regression . The objective of regression analysis is to determine the best model that can 
relate the output variable to various input variables. More formally, regression analysis 
is the process of determining how a variable Y is related to one or more other variables 
x 1 , x 2 ,    . . .    , x n . Y is usually called the response output, or dependent variable, and x i -  s 
are inputs, regressors, explanatory variables, or independent variables. Common reasons 
for performing regression analysis include 

  1.      the output is expensive to measure but the inputs are not, and so a cheap predic-

tion of the output is sought;  

  2.      the values of the inputs are known before the output is known, and a working 

prediction of the output is required;  

  3.      controlling  the  input  values,  we  can  predict  the  behavior  of  corresponding 

outputs; and  

  4.      there might be a causal link between some of the inputs and the output, and we 

want to identify the links.    

 Before explaining regression technique in details, let us explain the main differ-
ences between two concepts: interpolation and regression. In both cases training data 
=
set   X x rt

 is given where x t  are input features and output value r t     ∈    R.

t
{ , } ,1
=
t N

    (cid:127)       If  there  is   no  noise   in  the  data  set,  the  task  is   interpolation . We  would  like  to 
ﬁ nd a function f(x) that passes through all these training points such that we have 
r t     =    f(x t ). In polynomial interpolation, given N points, we found that we can use 
(N    −    1) degree polynomial to predict exact output r for any input x.  

   (cid:127)       In   regression ,   there  is  noise    ε   added  to  the  output  of  the  unknown  function  f: 
r t     =    f(x t )    +     ε . The explanation for noise is that there are extra hidden variables z t  
that we cannot observe. We would like to approximate the output r t      =     f(x t , z t ) by 

   
  
150 

STATISTICAL  METHODS

our model g(x t ), not only for present training data but for data in future. We are 
minimizing empirical error: E(g/x)    =    1/N  Σ  (r t     −    g[x t ]) 2  for t    =    1 to N.    

 Generalized  linear  regression  models  are  currently  the  most  frequently  applied 
statistical techniques. They are used to describe the relationship between the trend of 
one  variable  and  the  values  taken  by  several  other  variables.  Modeling  this  type  of 
relationship  is  often  called  linear  regression.  Fitting  models  is  not  the  only  task  in 
statistical modeling. We often want to select one of several possible models as being 
the  most  appropriate. An  objective  method  for  choosing  between  different  models  is 
called ANOVA, and it is described in Section  5.5 . 

 The relationship that ﬁ ts a set of data is characterized by a prediction model called 
a  regression equation . The most widely used form of the regression model is the general 
linear model formally written as

   Y

= +

α β
1

⋅

X
1

+

β

⋅

X

2

+

β
3

⋅

X

3 …
+

+

β

⋅
Xn

n

2

 Applying  this  equation  to  each  of  the  given  samples  we  obtain  a  new  set  of 

equations

   y

j

= +

α β
1

⋅

x
1

j

+

β

⋅

x

2

j

+

β
3

⋅

x

3

j

2

+

…

+

β

⋅

x

nj

n

+

ε

j

=

…,
1

j

, m

where   ε  j  ’ s  are  errors  of  regression  for  each  of  m  given  samples. The  linear  model  is 
called linear because the expected value of y j  is a linear function: the weighted sum of 
input values. 

 Linear  regression  with  one  input  variable  is  the  simplest  form  of  regression.  It 
models a random variable Y (called a response variable) as a linear function of another 
random variable X (called a predictor variable). Given n samples or data points of the 
form (x 1 , y 1 ), (x 2 , y 2 ),    . . .    , (x n , y n ), where x i   ∈ X and y i      ∈     Y, linear regression can be 
expressed as

   Y

α β
= + ⋅

X

where  α  and  β  are regression coefﬁ cients. With the assumption that the variance of Y 
is  a  constant,  these  coefﬁ cients  can  be  solved  by  the  method  of  least  squares,  which 
minimizes the error between the actual data points and the estimated line. The residual 
sum of squares is often called the sum of squares of the errors about the regression line 
and it is denoted by SSE (sum of squares error):

   SSE

=

n

n

∑ ∑
=
e

2
i

=
1

i

=
1

i

(

y

i

−

y

i

=

2

)

n

∑

=
1

i

(y

i

− −

α β

2

x

i

)

where y i  is the real output value given in the data set, and y i  ’  is a response value obtained 
from the model. Differentiating SSE with respect to  α  and  β , we have

∂

SEE
(

) /

α
∂ = −
2

∂

SEE
(

) /

β
∂ = −
2

n

∑

=
1

i

n

∑∑

=
1

i

(

y

i

− −

α β

x

i

)

((

y

i

− −

α β

⋅

x

i

)

x

i

)

  
 
 
 
   
  
PREDICTIVE  REGRESSION 

151

  TAB LE 5.2.     A Database for the Application 
of Regression Methods 

   A  

  1  
  8  
  11  
  4  
  3  

   B  

  3  
  9  
  11  
  5  
  2  

 Setting the partial derivatives equal to 0 (minimization of the total error) and rear-

ranging the terms, we obtain the equations

+
α β

n

n

n

∑ ∑
=
x

i

y

i

=
1

i

=
1

i

n

α

∑ ∑ ∑
β

=

+

x

x

2
i

i

n

n

⋅
x y
i

i

=
1

i

=
1

i

=
1

i

 which  may  be  solved  simultaneously  to  yield  the  computing  formulas  for   α   and   β . 
Using  standard  relations  for  the  mean  values,  regression  coefﬁ cients  for  this  simple 
case of optimization are

   β =





n

∑

(

=
1

i

−

x mean

i

⋅
) (

x

−

y mean

i


) /







n

∑

(

=
1

i

y

−

x mean

i

2

)

x





   α

=

mean

y

− ⋅
β

mean

x  

where mean x  and mean y  are the mean values for random variables X and Y given in a 
training data set. It is important to remember that our values of  α  and  β , based on a 
given data set, are only estimates of the true parameters for the entire population. The 
equation y    =     α     +     β x may be used to predict the mean response y 0  for the given input 
x 0 , which is not necessarily from the initial set of samples. 

 For example, if the sample data set is given in the form of a table (Table  5.2 ), and 
we are analyzing the linear regression between two variables (predictor variable A and 
response variable B), then the linear regression can be expressed as  

   B

α β
= + ⋅

A

where   α   and   β   coefﬁ cients  can  be  calculated  based  on  previous  formulas  (using 
mean A     =    5.4, and mean B     =    6), and they have the values

   α = 0 8.
   β = 0 92.

   
  
 
 
 
  
152 

STATISTICAL  METHODS

B

10

(cid:127)

(cid:127)

(cid:127)

(cid:127)

B = 0.8 + 0.92 A

A 

(cid:127)

01

     Figure 5.4.      Linear regression for the data set given in Table  5.2 .  

 The optimal regression line is

=

   B

+
0 8 0 92

.

.

⋅

A

 The  initial  data  set  and  the  regression  line  are  graphically  represented  in  Figure 

 5.4  as a set of points and a corresponding line.   

  Multiple  regression   is  an  extension  of  linear  regression,  and  involves  more  than 
one  predictor  variable.  The  response  variable  Y  is  modeled  as  a  linear  function  of 
several predictor variables. For example, if the predictor attributes are X 1 , X 2 , and X 3 , 
then the multiple linear regression is expressed as

   Y

= +

α β
1

⋅

X
1

+

β

⋅

X

2

2

+

β

⋅

3

X

3  

where   α ,   β  1 ,   β  2 ,  and   β  3   are  coefﬁ cients  that  are  found  by  using  the  method  of  least 
squares. For a linear regression model with more than two input variables, it is useful 
to analyze the process of determining  β  parameters through a matrix calculation:

   Y

X= ⋅β

where  β     =    { β  0 ,  β  1 ,    . . .    ,  β  n },  β  0     =     α , and X and Y are input and output matrices for a 
given training data set. The residual sum of the squares of errors SSE will also have 
the matrix representation

=
   SSE Y

(

β
− ⋅

X

)

⋅

(

Y

β
− ⋅

X

)

and after optimization

   ∂

SSE
(

) /

∂ = ⇒ ′ ⋅
β

(

X X

0

⋅ = ′ ⋅
β

X Y

)

 the ﬁ nal  β  vector satisﬁ es the matrix equation

   β =

(

′ ⋅

−
1
X X X Y

(

)

′ ⋅

)

where  β  is the vector of estimated coefﬁ cients in a linear regression. Matrices X and Y 
have the same dimensions as the training data set. Therefore, an optimal solution for  β  
vector is relatively easy to ﬁ nd in problems with several hundreds of training samples. 

  
 
 
  
 
PREDICTIVE  REGRESSION 

153

  TABLE 5.3.     Some Useful Transformations to Linearize Regression 

  Function  

  Proper Transformation  

  Form of Simple  

  Exponential:  
  Y    =     α  e   β x   
  Power:  
  Y    =     α  x  β    
  Reciprocal:  
  Y    =     α     +     β (1/x)  
  Hyperbolic:  
  Y    =    x/( α     +     β x)  

   Linear Regression  

  Y *     =    ln Y  

  Regress Y *  against x  

  Y *     =    logY; x *     =    log x  

  Regress Y *  against x *   

  x *     =    1/x  

  Regress Y against x *   

  Y *     =    1/Y; x *     =    1/x  

  Regress Y *  against x *   

For real - world data - mining problems, the number of samples may increase to several 
millions.  In  these  situations,  because  of  the  extreme  dimensions  of  matrices  and  the 
exponentially increased complexity of the algorithm, it is necessary to ﬁ nd modiﬁ cations 
and/or approximations in the algorithm, or to use totally different regression methods. 
 There is a large class of regression problems, initially nonlinear, that can be con-
verted into the form of the general linear model. For example, a polynomial relationship 
such as

   Y

= +

α β
1

⋅

X
1

+

β

⋅

X

2

2

+

β

⋅

3

X X
1

3

+

β

⋅

4

X X
2

3   

 can  be  converted  to  the  linear  form  by  setting  new  variables  X 4     =    X 1    ·   X 3   and 
X 5     =    X 2   ·  X 3 . Also, polynomial regression can be modeled by adding polynomial terms 
to the basic linear model. For example, a cubic polynomial curve has a form

   Y

= +

α β
1

⋅ +
X

β

2

⋅

X

2

+

β

3

⋅

X

3   

 By  applying  transformation  to  the  predictor  variables  (X 1     =    X,  X 2     =    X 2 ,  and 
X 3     =    X 3 ), it is possible to linearize the model and transform it into a multiple - regression 
problem, which can be solved by the method of least squares. It should be noted that 
the  term  linear  in  the  general  linear  model  applies  to  the  dependent  variable  being  a 
linear  function  of  the  unknown  parameters.  Thus,  a  general  linear  model  might  also 
include some higher order terms of independent variables, for example, terms such as 
X 1  2 , e  β X , X 1  · X 2 , 1/X, or X 2  3 . The basis is, however, to select the proper transformation 
of input variables or their combinations. Some useful transformations for linearization 
of the regression model are given in Table  5.3 .   

 The major effort, on the part of a user, in applying multiple - regression techniques 
lies in identifying the  relevant  independent variables from the initial set and in selecting 
the regression model using only relevant variables. Two general approaches are common 
for this task:

   1.      Sequential Search Approach.  

   It is consists primarily of building a regression 
model  with  an  initial  set  of  variables  and  then  selectively  adding  or  deleting 
variables until some overall criterion is satisﬁ ed or optimized.  

     
     
154 

STATISTICAL  METHODS

  2.      Combinatorial Approach.  

   It is, in essence, a brute - force approach, where the 
search is performed across all possible combinations of independent variables 
to determine the best regression model.    

 Irrespective  of  whether  the  sequential  or  combinatorial  approach  is  used,  the 
maximum beneﬁ t to model building occurs from a proper understanding of the applica-
tion domain. 

 Additional postprocessing steps may estimate the quality of the linear regression 
model. Correlation analysis attempts to measure the strength of a relationship between 
two variables (in our case this relationship is expressed through the linear regression 
equation). One parameter, which shows this strength of linear association between two 
variables by means of a single number, is called a  correlation coefﬁ cient r . Its computa-
tion requires some intermediate results in a regression analysis.

=

   r

β (
S

xx

/

S

yy

)

=

S

xy

/

(
S

xx

⋅

S

yy

)  

where

=

S

xx

=

S

yy

=

S

xy

n

∑

(

=
1

i

n

∑

(

=
1

i

n

∑

(

=
1

i

−

x mean

i

−

y mean

i

−

x mean

i

2

)

x

2

)

y

)(

y

i

x

−

mmean y

)

 The value of r is between  − 1 and 1. Negative values for r correspond to regression 
lines  with  negative  slopes  and  a  positive  r  shows  a  positive  slope. We  must  be  very 
careful in interpreting the r value. For example, values of r equal to 0.3 and 0.6 only 
mean that we have two positive correlations, the second somewhat stronger than the 
ﬁ rst. It is wrong to conclude that r    =    0.6 indicates a linear relationship twice as strong 
as that indicated by the value r    =    0.3. 

 For our simple example of linear regression given at the beginning of this section, 
the  model  obtained  was  B    =    0.8    +    0.92A. We  may  estimate  the  quality  of  the  model 
using the correlation coefﬁ cient r as a measure. Based on the available data in Figure 
 4.3 , we obtained intermediate results

   SAA = 62  
   SBB = 60  
   SAB = 52  

and the ﬁ nal correlation coefﬁ cient:

   r =

52

/

⋅
62 60

=

.
0 85

   
  
  
ANOVA 

155

 A correlation coefﬁ cient r    =    0.85 indicates a good linear relationship between two 
variables.  Additional  interpretation  is  possible.  Because  r 2     =    0.72,  we  can  say  that 
approximately  72%  of  the  variations  in  the  values  of  B  is  accounted  for  by  a  linear 
relationship with A.  

   5.5  

   ANOVA  

 Often  the  problem  of  analyzing  the  quality  of  the  estimated  regression  line  and  the 
inﬂ uence  of  the  independent  variables  on  the  ﬁ nal  regression  is  handled  through  an 
ANOVA approach. This is a procedure where the total variation in the dependent vari-
able is subdivided into meaningful components that are then observed and treated in a 
systematic  fashion.  ANOVA  is  a  powerful  tool  that  is  used  in  many  data - mining 
applications. 

 ANOVA is primarily a method of identifying which of the  β  ’ s in a linear regression 
model are nonzero. Suppose that the  β  parameters have already been estimated by the 
least - square error algorithm. Then the residuals are differences between the observed 
output values and the ﬁ tted values:

   R

i

=

y

i

− (
f x

)   

i

 The size of the residuals, for all m samples in a data set, is related to the size of 

variance  σ  2  and it can be estimated by:

2
   S

=





m

∑(

y

i

=
1

i

−

(
f x

i

2

))





−
m n

(

/(

−

))   
1

 assuming that the model is not over - parametrized. The numerator is called the residual 
sum while the denominator is called the residual degree of freedom (d.f.). 

 The key fact about S 2  is that it allows us to compare different linear models. If the 
ﬁ tted model is adequate, then S 2  is a good estimate of  σ  2 . If the ﬁ tted model includes 
redundant  terms  (some   β  ’ s  are  really  0),  S 2   is  still  good  and  close  to   σ  2 .  Only  if  the 
ﬁ tted model does not include one or more of the inputs that it ought to, will S 2  tend to 
be signiﬁ cantly larger than the true value of  σ  2 . These criteria are basic decision steps 
in  the ANOVA  algorithm,  in  which  we  analyze  the  inﬂ uence  of  input  variables  on  a 
ﬁ nal  model.  First,  we  start  with  all  inputs  and  compute  S 2   for  this  model. Then,  we 
omit inputs from the model one by one. If we omit a useful input the estimate S 2  will 
signiﬁ cantly increase, but if we omit a redundant input the estimate should not change 
much. Note that omitting one of the inputs from the model is equivalent to forcing the 
corresponding  β  to the 0. In principle, in each iteration we compare two S 2  values and 
analyze  the  differences  between  them.  For  this  purpose,  we  introduce  an  F - ratio  or 
F - statistic test in the form

= 2
   F S

new

/

2
S
old

 If the new model (after removing one or more inputs) is adequate, then F will be 
close to 1; a value of F signiﬁ cantly larger than one will signal that the model is not 

  
156 

STATISTICAL  METHODS

  TA BLE 5.4.     ANOVA for a Data Set with Three Inputs, x 1 , x 2 , 
and x 3  

   Case  

   Set of Inputs  

  1  
  2  
  3  
  4  
  5  
  6  

  x 1 , x 2 , x 3   
  x 1 , x 2   
  x 1 , x 3   
  x 2 , x 3   
  x 1   
  x 2   

     Si

2   

  3.56  
  3.98  
  6.22  
  8.34  
  9.02  
  9.89  

   F  

  F 21     =    1.12  
  F 31     =    1.75  
  F 41     =    2.34  
  F 52     =    2.27  
  F 62     =    2.48  

adequate.  Using  this  iterative  ANOVA  approach,  we  can  identify  which  inputs  are 
related  to  the  output  and  which  are  not.  The ANOVA  procedure  is  only  valid  if  the 
models being compared are nested; in other words, one model is a special case of the 
other. 

 Suppose that the data set has three input variables, x 1 , x 2 , and x 3,  and one output 
Y. In preparation for the use of the linear regression method, it is necessary to estimate 
the simplest model, in terms of the number of required inputs. Suppose that after apply-
ing the ANOVA methodology the results given in Table  5.4  are obtained.   

 The results of ANOVA show that the input attribute x 3  does not have an inﬂ uence 

on the output estimation because the F - ratio value is close to 1:

   F

21

=

/
S S
1
2

=

.
3 98 3 56 1 12

/

.

.

=

 In all other cases, the subsets of inputs increase the F - ratio signiﬁ cantly, and there-
fore, there is no possibility of reducing the number of input dimensions further without 
inﬂ uencing the quality of the model. The ﬁ nal linear regression model for this example 
will be

   Y

= +

α β
1

⋅

β1
+
x

2

⋅

x

2   

  Multivariate  ANOVA (MANOVA) is a generalization of the previously explained 
ANOVA, and it concerns data - analysis problems in which the output is a vector rather 
than a single value. One way to analyze this sort of data would be to model each element 
of  the  output  separately  but  this  ignores  the  possible  relationship  between  different 
outputs.  In  other  words,  the  analysis  would  be  based  on  the  assumption  that  outputs 
are  not  related.  MANOVA  is  a  form  of  analysis  that   does   allow  correlation  between 
outputs. Given the set of input and output variables, we might be able to analyze the 
available data set using a multivariate linear model:

   Y
j

= +

α β
1

⋅

x
1

j

+

β

⋅

x

2

j

+

β
3

⋅

x

3

j

2

+

…

+

β

⋅

x

nj

n

+

ε

j

=

…,
,
1 2

j

, m

where n is the number of input dimensions, m is the number of samples, Y j  is a vector 
with dimensions c    ×    1, and c is the number of outputs. This multivariate model can be 
ﬁ tted in exactly the same way as a linear model using least - square estimation. One way 
to do this ﬁ tting would be to ﬁ t a linear model to each of the c dimensions of the output, 

  
 
    
LOGISTIC  REGRESSION 

157

one at a time. The corresponding residuals for each dimension will be (y j     −    y ’  j ) where 
y j  is the exact value for a given dimension and y ’  j  is the estimated value. 

 The  analog  of  the  residual  sum  of  squares  for  the  univariate  linear  model  is  the 
matrix of the residual sums of squares for the multivariate linear model. This matrix R 
is deﬁ ned as

=

   R

m

∑(

=
1

j

−

y

j

y

j

)(

y

j

−

y

j

T

)

 The matrix R has the residual sum of squares for each of the c dimensions stored 
on  its  leading  diagonal.  The  off - diagonal  elements  are  the  residual  sums  of  cross -
 products for pairs of dimensions. If we wish to compare two nested linear models to 
determine  whether  certain   β  ’ s  are  equal  to  0,  then  we  can  construct  an  extra  sum  of 
squares matrix and apply a method similar to ANOVA — MANOVA. While we had an 
F - statistic  in  the  ANOVA  methodology,  MANOVA  is  based  on  matrix  R  with  four 
commonly used test statistics: Roy ’ s greatest root, the Lawley - Hotteling trace, the Pillai 
trace, and Wilks ’  lambda. Computational details of these tests are not explained in the 
book, but most textbooks on statistics will explain these; also, most standard statistical 
packages that support MANOVA support all four statistical tests and explain which one 
to use under what circumstances. 

 Classical  multivariate  analysis  also  includes  the  method  of  principal  component 
analysis, where the set of vector samples is transformed into a new set with a reduced 
number of dimensions. This method has been explained in Chapter  3  when we were 
talking about data reduction and data transformation as preprocessing phases for data 
mining.  

   5.6  

  LOGISTIC REGRESSION 

 Linear regression is used to model continuous - value functions. Generalized regression 
models represent the theoretical foundation on that the linear regression approach can 
be applied to model categorical response variables. A common type of a generalized 
linear model is  logistic regression . Logistic regression models the probability of some 
event occurring as a linear function of a set of predictor variables. 

 Rather than predicting the value of the dependent variable, the logistic regression 
method tries to estimate the probability that the dependent variable will have a given 
value. For example, in place of predicting whether a customer has a good or bad credit 
rating, the logistic regression approach tries to estimate the probability of a good credit 
rating. The actual state of the dependent variable is determined by looking at the esti-
mated probability. If the estimated probability is greater than 0.50 then the prediction 
is closer to  YES  (a good credit rating), otherwise the output is closer to  NO  (a bad credit 
rating  is  more  probable). Therefore,  in  logistic  regression,  the  probability  p  is  called 
the success probability. 

 We use logistic regression only when the output variable of the model is deﬁ ned 
as a categorical binary. On the other hand, there is no special reason why any of the 

  
158 

STATISTICAL  METHODS

inputs  should  not  also  be  quantitative,  and,  therefore,  logistic  regression  supports  a 
more general input data set. Suppose that output Y has two possible categorical values 
coded as 0 and 1. Based on the available data we can compute the probabilities for both 
values for the given input sample: P(y j     =    0)    =    1    −    p j  and P(y j     =    1)    =    p j . The model with 
which we will ﬁ t these probabilities is accommodated linear regression:

   log (

p

j

/[
1

−

p

j

])

= +

α β
1

⋅

X
1

j

+

β

⋅

X

2

j

+

β

⋅

X

3

j

3

2

+

β…
+

⋅

X

nj

n

 This equation is known as the  linear logistic model . The function log (p j /[1 − p j ]) is 
often written as  logit(p).  The main reason for using the logit form of output is to prevent 
the  predicting  probabilities  from  becoming  values  out  of  the  required  range  [0,  1]. 
Suppose  that  the  estimated  model,  based  on  a  training  data  set  and  using  the  linear 
regression procedure, is given with a linear equation

it p
   log ( )

=

−
1 5 0 6
.

.

⋅

x
1

+

0 4
.

⋅

x

2

−

0 3
.

⋅

x

3  

and  also  suppose  that  the  new  sample  for  classiﬁ cation  has  input  values  {x 1 ,  x 2 , 
x 3 }    =    {1, 0, 1}. Using the linear logistic model, it is possible to estimate the probability 
of  the  output  value  1,  (p[Y    =    1])  for  this  sample.  First,  calculate  the  corresponding 
logit(p):

   log ( )

it p =

1 5 0 6 1 0 4 0 0 3 1 0 6  
.

.

.

.

.

⋅ −

⋅ =

⋅ +

−

and then the probability of the output value 1 for the given inputs:

   log(
=

e

.
0 6

   p

p

−
p1

/[

])

=

0 6
.

/(
1

+

e

.
0 6

=

)

.
0 65

 Based on the ﬁ nal value for probability p, we may conclude that output value Y    =    1 
is  more  probable  than  the  other  categorical  value  Y    =    0.  Even  this  simple  example 
shows that logistic regression is a very simple yet powerful classiﬁ cation tool in data -
 mining  applications. With  one  set  of  data  (training  set)  it  is  possible  to  establish  the 
logistic regression model and with other sets of data (testing set) we may analyze the 
quality of the model in predicting categorical values. The results of logistic regression 
may be compared with other data - mining methodologies for classiﬁ cation tasks such 
as decision rules, neural networks, and Bayesian classiﬁ er.  

   5.7  

  LOG - LINEAR MODELS 

 Log - linear  modeling  is  a  way  of  analyzing  the  relationship  between  categorical  (or 
quantitative) variables. The log - linear model approximates discrete, multidimensional 
probability distributions. It is a type of a generalized linear model where the output Yi 
is assumed to have a Poisson distribution, with expected value  μ  j . The natural logarithm 
of  μ  j  is assumed to be the linear function of inputs

  
 
  
LOG-LINEAR  MODELS 

159

  TA BLE 5.5.     A 2    ×    2 Contingency Table for 1100 Samples 
Surveying Attitudes about Abortion 

   Support  

      Total  

  Sex  
  Female  
  Male  
  Total  

   Yes  

  309  
  319  
  628  

   No  

  191  
  281  
  472  

  500  
  600  
  1100  

   log(

)µ

j

= +

α β
1

⋅

X
1

j

+

β

⋅

X

2

j

+

β

⋅

X

3 …
+

j

3

+

β

n

⋅

X

nj

2

 Since all the variables of interest are categorical variables, we use a table to rep-
resent them, a frequency table that represents the global distribution of data. The aim 
in  log - linear  modeling  is  to  identify  associations  between  categorical  variables. 
Association corresponds to the interaction terms in the model, so our problem becomes 
a problem of ﬁ nding out which of all  β  ’ s are 0 in the model. A similar problem can be 
stated in ANOVA. If there is an interaction between the variables in a log - linear mode, 
it implies that the variables involved in the interaction are not independent but related, 
and the corresponding  β  is not equal to 0. There is no need for one of the categorical 
variables to be considered as an output in this analysis. If the output is speciﬁ ed, then 
instead of the log - linear models, we can use logistic regression for analysis. Therefore, 
we will next explain log - linear analysis when a data set is deﬁ ned without output vari-
ables. All given variables are categorical, and we want to analyze the possible associa-
tions between them. That is the task for  correspondence analysis . 

 Correspondence analysis represents the set of categorical data for analysis within 
incidence  matrices,  also  called   contingency  tables .  The  result  of  an  analysis  of  the 
contingency table answers the question: Is there a relationship between analyzed attri-
butes or not? An example of a 2    ×    2 contingency table, with cumulative totals, is shown 
in Table  5.5 . The table is a result of a survey to examine the relative attitude of males 
and females about abortion. The total set of samples is 1100 and every sample consists 
of two categorical attributes with corresponding values. For the attribute  sex , the pos-
sible values are male and female, and for attribute s upport  the values are yes and no. 
Cumulative results for all the samples are represented in four elements of the contin-
gency table.   

 Are there any differences in the extent of support for abortion between the male 
and the female populations? This question may be translated to: What is the level of 
dependency (if any) between the two given attributes: sex and support? If an association 
exists, then there are signiﬁ cant differences in opinion between the male and the female 
populations; otherwise both populations have a similar opinion. 

 Having seen that log - linear modeling is concerned with association of categorical 
variables, we might attempt to ﬁ nd some quantity (measure) based on this model using 
data in the contingency table. But we do not do this. Instead, we deﬁ ne the algorithm 
for feature association based on a comparison of two contingency tables:

  
    
     
160 

STATISTICAL  METHODS

   1.      The  ﬁ rst  step  in  the  analysis  is  to  transform  a  given  contingency  table  into  a 
similar table with  expected  values. These expected values are calculated under 
assumption that the variables are independent.  

  2.      In the second step, we compare these two matrices using the squared distance 
measure  and  the  chi - square  test  as  criteria  of  association  for  two  categorical 
variables.    

 The computational process for these two steps is very simple for a 2    ×    2 contin-
gency table. The process is also applicable for increased dimensions of a contingency 
table  (analysis  of  categorical  variables  with  more  than  two  values,  such  as  3    ×    4  or 
6    ×    9). 

 Let  us  introduce  the  notation.  Denote  the  contingency  table  as  X m      ×      n .  The  row 

totals for the table are

n

= ∑

X

ji

   X

+

j

=
1

i

and they are valid for every row (j    =    1,    . . .    , m). Similarly, we can deﬁ ne the column 
totals as

m

= ∑

X

ji

   X

+

i

=
1

j

 The grand total is deﬁ ned as a sum of row totals:

 or as a sum of column totals:

   X

++

m

= ∑

=
1

j

X j

+

   X

++

n

= ∑

=
1

i

X i
+

 Using these totals we can calculate the contingency table of expected values under 
the assumption that there is no association between the row variable and the column 
variable. The expected values are

   E

ji

=

⋅
X X
+
j

(

+

i

) /

X

++

for

=

j

1
,

…

,

m i
,

=

1
,

…  
, n

and they are computed for every position in the contingency table. The ﬁ nal result of 
this ﬁ rst step will be a totally new table that consists only of expected values, and the 
two tables will have the same dimensions. 

 For our example in Table  5.5 , all sums (columns, rows, and grand total) are already 
represented  in  the  contingency  table.  Based  on  these  values  we  can  construct  the 

 
  
  
  
LOG-LINEAR  MODELS 

161

  TA BLE 5.6.     A 2    ×    2 Contingency Table of Expected Values 
for the Data Given in Table  5.5  

   Support  

       Total  

   Yes  

   No  

  285.5  
  342.5  
  628  

  214.5  
  257.5  
  472  

  500  
  600  
  1100  

  Sex  
  Female  
  Male  
  Total  

contingency table of expected values. The expected value on the intersection of the ﬁ rst 
row and the ﬁ rst column will be

   E

11

=

⋅
X X
+
1

(

+
1

) /

X

++

=

500 628 1100

/

⋅

=

.
285 5

 Similarly,  we  can  compute  the  other  expected  values  and  the  ﬁ nal  contingency 

table with expected values will be as given in Table  5.6 .   

 The next step in the analysis of categorical - attributes dependency is the application 
of the chi - squared test of association. The initial hypothesis H 0  is the assumption that 
the two attributes are unrelated, and it is tested by Pearson ’ s chi - squared formula:

   χ2

=

n

m

∑∑ ((

−

X

ji

E

ji

2
) /

E

)

ji

=
1

j

=
1

i

 The greater the value of  χ  2 , the greater the evidence against the hypothesis H 0  is. 

For our example, comparing Tables  5.5  and  5.6 , the test gives the following result:

   χ2

= .

8 2816

 with the d.f. for an m    ×    n dimensional table computed as

=
   d.f. m

(

− ⋅
1
) (

n

− =
1
)

− =
2 1 2 1
)
)(

−

(

1   

 In general, the hypothesis H 0  is rejected at the level of signiﬁ cance  α  if

   χ

2 ≥ T(

α

)  

where T( α ) is the threshold value from the  χ  2  distribution table usually given in text-
books on statistics. For our example, selecting  α     =    0.05 we obtain the threshold

   T

0 05
( .
)

=

χ

2

1
(

−

α
,

)
d.f.

=

χ

2

0 95 1
( .
, )

=

3 84
.

.

 A simple comparison shows that

   χ2

=

.
8 2816

≥

T

)
0 05
( .

=

.
3 84

  
  
  
  
 
    
     
    
    
    
162 

STATISTICAL  METHODS

  TABLE 5.7.     Contingency Tables for Categorical Attributes with Three Values 

    (a) A 3    ×    3 contingency table of observed values  

  Attribute1  
  Attribute2  

  Total  

  Excellent  
  Good  
  Poor  

  Low  
  21  
  3  
  7  
  31  

  Medium  
  11  
  2  
  1  
  14  

    (b) A 3    ×    3 contingency table of expected values under H 0   

  Attribute1  
  Attribute2  

  Total  

  Excellent  
  Good  
  Poor  

  Low  
  21.5  
  4.2  
  5.4  
  31  

  Medium  
  9.7  
  1.9  
  2.4  

  14  

  High  
  4  
  2  
  1  
  7  

  High  
  4.8  
  0.9  
  1.2  
  7  

  Total  
  36  
  7  
  9  
  52  

  Total  
  36  
  7  
  9  
  52  

and therefore, we can conclude that hypothesis H 0  is rejected; the attributes analyzed 
in the survey have a high level of dependency. In other words, the attitude about abor-
tion shows differences between the male and the female populations. 

 The same procedure may be generalized and applied to contingency tables where 
the categorical attributes have more than two values. The next example shows how the 
previously explained procedure can be applied without modiﬁ cations to the contingency 
table  3    ×    3.  The  values  given  in  Table   5.7a   are  compared  with  the  estimated  values 
given in Table  5.7b , and the corresponding test is calculated as  χ  2     =    3.229. Note that 
in this case parameter  

   d.f.

=

−

(

n

1
)(

m

− =
1
)

3 1
(

− ⋅ − =

3 1
)

) (

4   
.

 We have to be very careful about drawing additional conclusions and further ana-
lyzing the given data set. It is quite obvious that the sample size is not large. The number 
of observations in many cells of the table is small. This is a serious problem and addi-
tional statistical analysis is necessary to check if the sample is a good representation 
of the total population or not. We do not cover this analysis here because in most real -
 world data - mining problems the data set is enough large to eliminate the possibility of 
occurrence of these deﬁ ciencies. 

 That  was  one  level  of  generalization  for  an  analysis  of  contingency  tables  with 
categorical data. The other direction of generalization is inclusion into analysis of more 
than  two  categorical  attributes. The  methods  for  three -   and  high - dimensional  contin-
gency table analysis are described in many books on advanced statistics; they explain 
the procedure of discovered dependencies between several attributes that are analyzed 
simultaneously.  

   5.8  

   LDA  

 LDA is concerned with classiﬁ cation problems where the dependent variable is cate-
gorical (nominal or ordinal) and the independent variables are metric. The objective of 

    
    
    
    
LDA 

163

(cid:127)
x2                                                    

(cid:127) (cid:127)
(cid:127)

(cid:127)

(cid:127)

x 

x

x  x
x 

x

x1

     Figure 5.5.      Geometric interpretation of the discriminant score.  

               z = w1 x1 + w2 x2

LDA is to construct a discriminant function that yields different scores when computed 
with data from different output classes. A linear discriminant function has the following 
form:

=

   z w x w x
1

1

2

+

2 …
+

+

w xk

k

where x 1 , x 2 ,    . . .    , x k  are independent variables. The quantity z is called the discriminant 
score, and w 1 , w 2 ,    . . .    ,w k  are called weights. A geometric interpretation of the discrimi-
nant score is shown in Figure  5.5 . As the ﬁ gure shows, the discriminant score for a data 
sample represents its projection onto a line deﬁ ned by the set of weight parameters.   

 The  construction  of  a  discriminant  function  z  involves  ﬁ nding  a  set  of  weight 
values w i  that maximizes the ratio of the  between - class  to the  within - class  variance of 
the discriminant score for a preclassiﬁ ed set of samples. Once constructed, the discrimi-
nant function z is used to predict the class of a new nonclassiﬁ ed sample. Cutting scores 
serve  as  the  criteria  against  which  each  individual  discriminant  score  is  judged. The 
choice of cutting scores depends upon a distribution of samples in classes. Letting z a  
and z b  be the mean discriminant scores of preclassiﬁ ed samples from class A and B, 
respectively, the optimal choice for the cutting score z cut - ab  is given as

   z

cut-ab

=

+(
z

a

z

b

) / 2   

 when  the  two  classes  of  samples  are  of  equal  size  and  are  distributed  with  uniform 
variance. A new sample will be classiﬁ ed to one or another class depending on its score 
z    >    z cut - ab  or z    <    z cut - ab . A weighted average of mean discriminant scores is used as an 
optimal cutting score when the set of samples for each of the classes are not of equal 
size:

   z

cut-ab

=

⋅
n z
a

(

a

+

⋅
n z
b

b

) /(

n

a

+

n

b

)   

 The quantities n a  and n b  represent the number of samples in each class. Although 
a  single  discriminant  function  z  with  several  discriminant  cuts  can  separate  samples 

 
164 

STATISTICAL  METHODS

      DISCRIMINANT  
         SCORE  #1 

    INPUT 

      DISCRIMINANT  
          SCORE  #2 

MAXIMA
SELECTOR

OUTPUT 

       DISCRIMINANT 
            SCORE #n 

     Figure 5.6.      Classiﬁ cation process in multiple - discriminant analysis.  

into several classes,  multiple discriminant analysis  is used for more complex problems. 
The term multiple discriminant analysis is used in situations when separate discriminant 
functions are constructed for each class. The classiﬁ cation rule in such situations takes 
the following form: Decide in favor of the class whose discriminant score is the highest. 
This is illustrated in Figure  5.6 .    

  5.9  

  REVIEW QUESTIONS AND PROBLEMS 

       1.     What are the differences between statistical testing and estimation as basic areas 

in statistical inference theory?   

    2.     A data set for analysis includes only one attribute X: 

 X    =    {7, 12, 5, 18, 5, 9, 13, 12, 19, 7, 12, 12, 13, 3, 4, 5, 13, 8, 7, 6}.

   (a)      What is the mean of the data set X?  
  (b)      What is the median?  
  (c)      What is the mode, and what is the modality of the data set X?  
  (d)      Find the standard deviation for X.  
  (e)      Give a graphical summarization of the data set X using a boxplot representation.  
  (f)      Find outliers in the data set X. Discuss the results.      

    3.     For the training set given in Table  5.1 , predict the classiﬁ cation of the following 

samples using simple Bayesian classiﬁ er.
   (a)      {2, 1, 1}  
  (b)      {0, 1, 1}      

    4.     Given a data set with two dimensions X and Y: 

   X  

  1  
  4  
  3  
  5  

   Y  

  5  
  2.75  
  3  
  2.5  

REVIEW  QUESTIONS  AND  PROBLEMS 

165

       (a)      Use a linear regression method to calculate the parameters  α  and  β  where y    =     α     +     β  x.  
  (b)      Estimate the quality of the model obtained in (a) using the correlation coefﬁ cient r.  
  (c)      Use an appropriate nonlinear transformation (one of those represented in Table  5.3 ) to 
improve  regression  results.  What  is  the  equation  for  a  new,  improved,  and  nonlinear 
model? Discuss a reduction of the correlation coefﬁ cient value.      

    5.     A logit function, obtained through logistic regression, has the form:

( )
   Logit p

=

1 2 1 3 1 0 6 2 0 4 3   
.
.

x

x

x

.

.

+

−

+

 Find the probability of output values 0 and 1 for the following samples:
   (a)      { 1,  − 1,  − 1 }  
  (b)      {  − 1, 1, 0 }  
  (c)      { 0, 0, 0 }      

    6.     Analyze the dependency between categorical attributes X and Y if the data set is 

summarized in a 2    ×    3 contingency table:   

T

128
66
42

   X

A
B
C

Y

F

7
30
55

    7.     Implement the algorithm for a boxplot representation of each numeric attribute in 

an input ﬂ at ﬁ le.   

    8.     What are the basic principles in the construction of a discriminant function applied 

in an LDA?   

    9.     Implement  the  algorithm  to  analyze  a  dependency  between  categorical  variables 

using two - dimensional contingency tables.   

    10.     Find   EMA (4,  4)  for  the  data  set  {27,  27,  18,  9}  if:  (a)  p    =    1/3,  and  (b)  p    =    3/4. 

Discuss the solutions.   

 11.        With Bayes classiﬁ er, missing data items are 

  (a)      treated as equal compares  
  (b)      treated as unequal compares  
  (c)      replaced with a default value  
  (d)      ignored    

 Determine what is the true statement.   

 12.        The table below contains counts and ratios for a set of data instances to be used 
for supervised Bayesian learning. The output attribute is sex with possible values 
 male   and   female.   Consider  an  individual  who  has  said   no   to  the  life  insurance 
promotion,   yes   to  the  magazine  promotion,   yes   to  the  watch  promotion,  and  has 
credit card insurance. Use the values in the table together with Bayes classiﬁ er to 
determine the probability that this individual is  male.  

       
166 

STATISTICAL  METHODS

   Magazine 
Promotion  

   Watch Promotion  

   Life Insurance 
Promotion  

   Credit Card 
Insurance  

   Male  

   Female  

   Male  

   Female  

   Male  

   Female  

   Male  

   Female  

  Yes  
  No  

  4  
  2  

  3  
  1  

  2  
  4  

  2  
  2  

  2  
  4  

  3  
  1  

  2  
  4  

  1  
  3  

    13.     The probability that a person owns a sports car given that they subscribe to at least 
one automotive magazine is 40%. We also know that 3% of the adult population 
subscribes to at least one automotive magazine. Finally, the probability of a person 
owning  a  sports  car  given  that  they  do  not  subscribe  to  at  least  one  automotive 
magazine is 30%. Use this information together with Bayes theorem to compute 
the probability that a person subscribes to at least one automotive magazine given 
that they own a sports car.   

    14.     Suppose the fraction of undergraduate students who smoke is 15% and the fraction 
of  graduate  students  who  smoke  is  23%.  If  one - ﬁ fth  of  the  college  students  are 
graduate  students  and  the  rest  are  undergraduates,  what  is  the  probability  that  a 
student who smokes is a graduate student?   

    15.     Given a 2    ×    2 contingency table for X and Y attributes: 

       X
x1
        ___________
y1    7

x2

4

Y                

y2    2

8

    (a)      Find a contingency table with  expected values.   
  (b)      If the threshold value for  χ  2  test is 8.28, determine if attributes X and Y are dependent 

or not.      

    16.     The logit function, obtained through logistic regression, has a form:

   Logit p( )

=

1 2 1 3 1 0 6 2 0 4 3   
.
.

.

.

× +

× +

×

−

 Find the probability of output values 0 and 1 for the sample {1,  − 1,  − 1}.   

    17.     Given:

    (cid:1)       P(Good Movie | Includes Tom Cruise)    =    0.01  
   (cid:1)       P(Good Movie | Tom Cruise absent)    =    0.1  
   (cid:1)       P(Tom Cruise in a randomly chosen movie)    =    0.01    

 What is P(Tom Cruise is in the movie | Not a Good Movie)?   

     
REFERENCES  FOR  FURTHER  STUDY 

167

    18.     You  have  the  following  training  set  with  three  Boolean  input  x,  y,  and  z,  and  a 
Boolean  output  U.  Suppose  you  have  to  predict  U  using  a  naive  Bayesian 
classiﬁ er.

   x  

  1  
  0  
  0  
  1  
  0  
  0  
  1  

   y  

  0  
  1  
  0  
  0  
  0  
  1  
  1  

   z  

  0  
  1  
  1  
  0  
  1  
  0  
  0  

   U  

  0  
  0  
  0  
  1  
  1  
  1  
  1  

      (a)      After learning is complete what would be the predicted probability P(U    =    0|x    =    0, y    =    1, 

z    =    0)?  

  (b)      Using the probabilities obtained during the Bayesian classiﬁ er training, what would be 

the predicted probability P(U    =    0|x    =    0)?         

   5.10  

  REFERENCES FOR FURTHER STUDY 

    Berthold ,   M.  ,    D.  J.    Hand  ,  eds.,   Intelligent  Data  Analysis — An  Introduction ,   Springer ,   Berlin , 

 1999 .  
  The book is a detailed introductory presentation of the key classes of intelligent data - analysis 
methods including all common data - mining techniques. The ﬁ rst half of the book is devoted 
to the discussion of classical statistical issues, ranging from basic concepts of probability and 
inference to advanced multivariate analyses and Bayesian methods. The second part of the 
book covers theoretical explanations of data - mining techniques with their roots in disciplines 
other than statistics. Numerous illustrations and examples will enhance a reader ’ s knowledge 
about the theory and practical evaluations of data - mining techniques.  

    Brandt ,  S.  ,  Data Analysis: Statistical and Computational Methods for Scientists and Engineers , 

 3rd edition ,  Springer ,  New York ,  1999 .  
  This text bridges the gap between statistical theory and practice. It emphasizes concise but 
rigorous mathematics while retaining the focus on applications. After introducing probability 
and  random  variables,  the  book  turns  to  the  generation  of  random  numbers  and  important 
distributions.  Subsequent  chapters  discuss  statistical  samples,  the  maximum - likelihood 
method, and the testing of statistical hypotheses. The text concludes with a detailed discussion 
of several important statistical methods such as least - square minimization, ANOVA, regres-
sions, and analysis of time series.  

    Cherkassky ,  V.  ,   F.   Mulier  ,  Learning from Data: Concepts, Theory and Methods ,  John Wiley ,  New 

York ,  1998 .  
  The book provides a uniﬁ ed treatment of the principles and methods for learning dependencies 
from data. It establishes a general conceptual framework in which various learning methods 
from statistics, machine learning, and other disciplines can be applied — showing that a few 
fundamental  principles  underlie  most  new  methods  being  proposed  today.  An  additional 

168 

STATISTICAL  METHODS

strength of this primary theoretical book is a large number of case studies and examples that 
simplify and make understandable statistical learning theory concepts.  

    Hand ,  D.  ,   Mannila   H.  ,   Smith   P.  ,  Principles of Data Mining ,  MIT Press ,  Cambridge, MA ,  2001 .  
  The book consists of three sections. The ﬁ rst, foundations, provides a tutorial overview of the 
principles underlying data - mining algorithms and their applications. The second section, data -
 mining  algorithms,  shows  how  algorithms  are  constructed  to  solve  speciﬁ c  problems  in  a 
principled  manner.  The  third  section  shows  how  all  of  the  preceding  analyses  ﬁ t  together 
when applied to real - world data - mining problems.  

    Nisbet ,  R.  ,   J.   Elder  ,   G.   Miner  ,  Handbook of Statistical Analysis and Data Mining Applications , 

 Elsevier Inc. ,  Amsterdam ,  2009 .  
  The book is a comprehensive professional reference book that guides business analysts, sci-
entists, engineers, and researchers (both academic and industrial) through all stages of data 
analysis,  model  building,  and  implementation.  The  handbook  helps  one  discern  technical 
and  business  problems,  understand  the  strengths  and  weaknesses  of  modern  data - mining 
algorithms, and employ the right statistical methods for practical application. Use this book 
to  address  massive  and  complex  data  sets  with  novel  statistical  approaches  and  be  able  to 
objectively evaluate analyses and solutions. It has clear, intuitive explanations of the princi-
ples  and  tools  for  solving  problems  using  modern  analytic  techniques,  and  discusses  their 
application  to  real  problems,  in  ways  accessible  and  beneﬁ cial  to  practitioners  across 
industries — from science and engineering, to medicine, academia, and commerce. This hand-
book brings together, in a single resource, all the information a beginner will need to under-
stand the tools and issues in data mining to build successful data - mining solutions.   

 
  6 

DECISION TREES AND 
DECISION RULES     

  Chapter Objectives 

     (cid:127)       Analyze  the  characteristics  of  a  logic - based  approach  to  classiﬁ cation 

problems.  

   (cid:127)       Describe the differences between decision - tree and decision - rule representations 

in a ﬁ nal classiﬁ cation model.  

   (cid:127)       Explain in - depth the C4.5 algorithm for generating decision trees and decision 

rules.  

   (cid:127)       Identify the required changes in the C4.5 algorithm when missing values exist 

in training or testing data set.  

   (cid:127)       Introduce the basic characteristics of Classiﬁ cation and Regression Trees (CART) 

algorithm and Gini index.  

   (cid:127)       Know  when  and  how  to  use  pruning  techniques  to  reduce  the  complexity  of 

decision trees and decision rules.  

   (cid:127)       Summarize  the  limitations  of  representing  a  classiﬁ cation  model  by  decision 

trees and decision rules.     

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

169

 
170 

DECISION  TREES  AND  DECISION  RULES

    Decision trees and decision rules are data - mining methodologies applied in many real -
 world applications as a powerful solution to classiﬁ cation problems. Therefore, to be 
begin with, let us brieﬂ y summarize the basic principles of classiﬁ cation. In general, 
classiﬁ cation is a process of learning a function that maps a data item into one of several 
predeﬁ ned classes. Every classiﬁ cation based on inductive - learning algorithms is given 
as an input a set of samples that consist of vectors of attribute values (also called feature 
vectors)  and  a  corresponding  class.  The  goal  of  learning  is  to  create  a  classiﬁ cation 
model, known as a  classiﬁ er , which will predict, with the values of its available input 
attributes, the class for some entity (a given sample). In other words, classiﬁ cation is 
the  process  of  assigning  a  discrete  label  value  (class)  to  an  unlabeled  record,  and  a 
classiﬁ er  is  a  model  (a  result  of  classiﬁ cation)  that  predicts  one  attribute — class  of  a 
sample — when  the  other  attributes  are  given.  In  doing  so,  samples  are  divided  into 
predeﬁ ned groups. For example, a simple classiﬁ cation might group customer billing 
records  into  two  speciﬁ c  classes:  those  who  pay  their  bills  within  30  days  and  those 
who takes longer than 30 days to pay. Different classiﬁ cation methodologies are applied 
today in almost every discipline where the task of classiﬁ cation, because of the large 
amount of data, requires automation of the process. Examples of classiﬁ cation methods 
used as a part of data - mining applications include classifying trends in ﬁ nancial market 
and identifying objects in large image databases. 

 A more formalized approach to classiﬁ cation problems is given through its graphi-
cal interpretation. A data set with n features may be thought of as a collection of discrete 
points (one per example) in an n - dimensional space. A classiﬁ cation rule is a hypercube 
that contains one or more of these points. When there is more than one cube for a given 
class, all the cubes are OR - ed to provide a complete classiﬁ cation for the class, such 
as the example of two - dimensional (2 - D) classes in Figure 6 .1 . Within a cube the condi-
tions for each part are AND - ed. The size of a cube indicates its generality, that is, the 
larger  the  cube  is,  the  more  vertices  it  contains  and  potentially  covers  more  sample 
points.   

 In a classiﬁ cation model, the connection between classes and other properties of 
the samples can be deﬁ ned by something as simple as a ﬂ owchart or as complex and 
unstructured as a procedure manual. Data - mining methodologies restrict discussion to 
formalized,  “ executable ”  models of classiﬁ cation, and there are two very different ways 
in which they can be constructed. On the one hand, the model might be obtained by 

x                    x         x

x

x                     x

(cid:127)

(cid:127)

x

(cid:127)

(cid:127)

(cid:127)

(cid:127)

x

(cid:127)

(cid:127)

x 

(cid:127)

(cid:127)

(cid:127)

x

x

x 

(cid:127)
     Figure 6.1.      Classiﬁ cation of samples in a 2 - D space.  

(cid:127)

x

DECISION  TREES 

171

interviewing the relevant expert or experts, and most knowledge - based systems have 
been  built  this  way  despite  the  well - known  difﬁ culties  in  taking  this  approach. 
Alternatively, numerous recorded classiﬁ cations might be examined and a model con-
structed inductively by generalizing from speciﬁ c examples that are of primary interest 
for data - mining applications. 

 The statistical approach to classiﬁ cation explained in Chapter  5  gives one type of 
model for classiﬁ cation problems: summarizing the statistical characteristics of the set 
of samples. The other approach is based on logic. Instead of using math operations like 
addition and multiplication, the logical model is based on expressions that are evaluated 
as true or false by applying Boolean and comparative operators to the feature values. 
These  methods  of  modeling  give  accurate  classiﬁ cation  results  compared  with  other 
nonlogical methods, and they have superior explanatory characteristics. Decision trees 
and decision rules are typical data - mining techniques that belong to a class of method-
ologies that give the output in the form of logical models.  

   6.1  

  DECISION TREES 

 A particularly efﬁ cient method of producing classiﬁ ers from data is to generate a deci-
sion tree. The decision - tree representation is the most widely used logic method. There 
is  a  large  number  of  decision - tree  induction  algorithms  described  primarily  in  the 
machine - learning and applied - statistics literature. They are supervised learning methods 
that construct decision trees from a set of input – output samples. It is an efﬁ cient non-
parametric  method  for  classiﬁ cation  and  regression. A  decision  tree  is  a  hierarchical 
model  for  supervised  learning  where  the   local  region   is  identiﬁ ed  in  a  sequence  of 
recursive   splits   through  decision  nodes  with  test  function.  A  decision  tree  is  also  a 
nonparametric model in the sense that we  do not assume any parametric form  for the 
class density. 

 A typical decision - tree learning system adopts a top - down strategy that searches 
for a solution in a part of the search space. It guarantees that a simple, but not neces-
sarily the simplest, tree will be found. A decision tree consists of  nodes  where attributes 
are  tested.  In  a  univariate  tree,  for  each  internal  node,  the  test  uses  only  one  of  the 
attributes for testing. The outgoing  branches  of a node correspond to all the possible 
outcomes of the test at the node. A simple decision tree for classiﬁ cation of samples 
with two input attributes X and Y is given in Figure 6 .2 . All samples with feature values 
X    >    1  and  Y    =    B  belong  to  Class2,  while  the  samples  with  values  X    <    1  belong  to 
Class1, whatever the value for feature Y is. The samples, at a non - leaf node in the tree 
structure,  are  thus  partitioned  along  the  branches  and  each  child  node  gets  its  corre-
sponding  subset  of  samples.  Decision  trees  that  use  univariate  splits  have  a  simple 
representational form, making it relatively easy for the user to understand the inferred 
model; at the same time, they represent a restriction on the expressiveness of the model. 
In general, any restriction on a particular tree representation can signiﬁ cantly restrict 
the  functional  form  and  thus  the  approximation  power  of  the  model. A  well - known 
tree - growing  algorithm  for  generating  decision  trees  based  on  univariate  splits  is 
Quinlan ’ s   ID3   with  an  extended  version  called   C4.5 .  Greedy  search  methods,  which 

172 

DECISION  TREES  AND  DECISION  RULES

 X > 1

        Yes

   No 

Y = ?

        Y = A

      Y = B

Y = C 

Class1

Class2

 Class2

  Class1

     Figure 6.2.      A simple decision tree with the tests on attributes X and Y.  

involve growing and pruning decision - tree structures, are typically employed in these 
algorithms to explore the exponential space of possible models.   

 The ID3 algorithm starts with all the training samples at the root node of the tree. 
An  attribute  is  selected  to  partition  these  samples.  For  each  value  of  the  attribute  a 
branch is created, and the corresponding subset of samples that have the attribute value 
speciﬁ ed  by  the  branch  is  moved  to  the  newly  created  child  node.  The  algorithm  is 
applied recursively to each child node until all samples at a node are of one class. Every 
path to the leaf in the decision tree represents a classiﬁ cation rule. Note that the critical 
decision  in  such  a  top - down  decision  tree - generation  algorithm  is  the  choice  of  an 
attribute at a node. Attribute selection in ID3 and C4.5 algorithms are based on mini-
mizing an information entropy measure applied to the examples at a node. The approach 
based on information entropy insists on minimizing the number of tests that will allow 
a sample to classify in a database. The attribute - selection part of ID3 is based on the 
assumption that the complexity of the decision tree is strongly related to the amount of 
information conveyed by the value of the given attribute. An information - based heu-
ristic selects the attribute providing the highest information gain, that is, the attribute 
that minimizes the information needed in the resulting subtree to classify the sample. 
An extension of ID3 is the C4.5 algorithm, which extends the domain of classiﬁ cation 
from categorical attributes to numeric ones. The measure favors attributes that result 
in  partitioning  the  data  into  subsets  that  have  a  low - class  entropy,  that  is,  when  the 
majority of examples in it belong to a single class. The algorithm basically chooses the 
attribute that provides the maximum degree of discrimination between classes locally. 
More details about the basic principles and implementation of these algorithms will be 
given in the following sections. 

 To apply some of the methods, which are based on the inductive - learning approach, 

several key requirements have to be satisﬁ ed:

   1.      Attribute - Value  Description .       The  data  to  be  analyzed  must  be  in  a  ﬂ at - ﬁ le 
form — all information about one object or example must be expressible in terms 

C4.5  ALGORITHM:  GENERATING  A  DECISION  TREE 

173

of a ﬁ xed collection of properties or attributes. Each attribute may have either 
discrete or numeric values, but the attributes used to describe samples must not 
vary  from  one  case  to  another.  This  restriction  rules  out  domains  in  which 
samples have an inherently variable structure.  

  2.      Predeﬁ ned Classes .       The categories to which samples are to be assigned must 
have been established beforehand. In the terminology of machine learning this 
is supervised learning.  

  3.      Discrete Classes .       The classes must be sharply delineated: A case either does or 
does not belong to a particular class. It is expected that there will be far more 
samples than classes.  

  4.      Sufﬁ cient  Data .       Inductive  generalization  given  in  the  form  of  a  decision  tree 
proceeds by identifying patterns in data. The approach is valid if enough number 
of robust patterns can be distinguished from chance coincidences. As this dif-
ferentiation usually depends on statistical tests, there must be sufﬁ cient number 
of samples to allow these tests to be effective. The amount of data required is 
affected by factors such as the number of properties and classes and the com-
plexity of the classiﬁ cation model. As these factors increase, more data will be 
needed to construct a reliable model.  

  5.       “ Logical ”  Classiﬁ cation Models .       These methods construct only such classiﬁ -
ers  that  can  be  expressed  as  decision  trees  or  decision  rules.  These  forms 
essentially restrict the description of a class to a logical expression whose primi-
tives are statements about the values of particular attributes. Some applications 
require  weighted  attributes  or  their  arithmetic  combinations  for  a  reliable 
description of classes. In these situations logical models become very complex 
and, in general, they are not effective.     

   6.2  

  C4.5 ALGORITHM: GENERATING A DECISION TREE 

 The most important part of the C4.5 algorithm is the process of generating an initial 
decision  tree  from  the  set  of  training  samples. As  a  result,  the  algorithm  generates  a 
classiﬁ er  in  the  form  of  a  decision  tree:  a  structure  with  two  types  of  nodes —  a  leaf  
indicating a class, or  a decision node  specifying some tests to be carried out on a single -
 attribute value, with one branch and a subtree for each possible outcome of the test. 

 A decision tree can be used to classify a new sample by starting at the root of the 
tree and moving through it until a leaf is encountered. At each non - leaf decision node, 
the features ’  outcome for the test at the node is determined and attention shifts to the 
root of the selected subtree. For example, if the classiﬁ cation model of the problem is 
given with the decision tree in Figure 6 .3 a, and the sample for classiﬁ cation in Figure 
6 .3 b, then the algorithm will create the path through the nodes  A ,  C , and  F  (leaf node) 
until it makes the ﬁ nal classiﬁ cation decision:  CLASS2 .   

 The skeleton of the C4.5 algorithm is based on Hunt ’ s Concept Learning System 
(CLS) method for constructing a decision tree from a set T of training samples. Let the 
classes be denoted as {C 1 , C 2 ,    . . .    , C k }. There are three possibilities for the content of 
the set T:

174 

DECISION  TREES  AND  DECISION  RULES

True

A 

(Attribute1 > 5) 
     False

B 
True      False

(Attribute2=”Black”)

C
  True          False

(Attribute3=”No”) 

    D 

 E 

       F   

  G

CLASS 1

CLASS2     CLASS2     CLASS1

Attribute

Value

Attribute1
Attribute2
Attribute3

5 
Black
No

(a)

(b)

     Figure  6.3.      Classiﬁ cation  of  a  new  sample  based  on  the  decision - tree  model.  (a)  Decision 
tree; (b) An example for classiﬁ cation.  

   1.      T contains one or more samples, all belonging to a single class C j . The decision 

tree for T is a leaf - identifying class C j .  

  2.      T  contains  no  samples.  The  decision  tree  is  again  a  leaf  but  the  class  to  be 
associated with the leaf must be determined from information other than T, such 
as  the  overall  majority  class  in T. The  C4.5  algorithm  uses  as  a  criterion  the 
most frequent class at the parent of the given node.  

  3.      T contains samples that belong to a mixture of classes. In this situation, the idea 
is  to  reﬁ ne  T  into  subsets  of  samples  that  are  heading  toward  a  single - class 
collection of samples. Based on single attribute, an appropriate test that has one 
or more mutually exclusive outcomes {O 1 , O 2 ,    . . .    , O n } is chosen. T is parti-
tioned  into  subsets  T 1 ,  T 2 ,    . . .    ,  T n ,  where  T i   contains  all  the  samples  in  T 
that have outcome O i  of the chosen test. The decision tree for T consists of a 
decision  node  identifying  the  test  and  one  branch  for  each  possible  outcome 
(examples of this type of nodes are nodes A, B, and C in the decision tree in 
Fig.  6.3 a).    

 The same tree - building procedure is applied recursively to each subset of training 
samples, so that the  i th branch leads to the decision tree constructed from the subset T i  
of the training samples. The successive division of the set of training samples proceeds 
until all the subsets consist of samples belonging to a single class. 

 The  tree - building  process  is  not  uniquely  deﬁ ned.  For  different  tests,  even  for  a 
different order of their application, different trees will be generated. Ideally, we would 
like to choose a test at each stage of sample - set splitting so that the ﬁ nal tree is small. 
Since  we  are  looking  for  a  compact  decision  tree  that  is  consistent  with  the  training 
set,  why  not  explore  all  possible  trees  and  select  the  simplest?  Unfortunately,  the 
problem of ﬁ nding the smallest decision tree consistent with a training data set is NP -
 complete  .  Enumeration  and  analysis  of  all  possible  trees  will  cause  a  combinatorial 
explosion  for  any  real - world  problem.  For  example,  for  a  small  database  with  ﬁ ve 
attributes and only 20 training examples, the possible number of decision trees is greater 
than 10 6 , depending on the number of different values for every attribute. Therefore, 
most  decision  tree - construction  methods  are  non - backtracking,  greedy  algorithms. 

 
C4.5  ALGORITHM:  GENERATING  A  DECISION  TREE 

175

Once a test has been selected using some heuristics to maximize the measure of progress 
and the current set of training cases has been partitioned, the consequences of alterna-
tive choices are not explored. The measure of progress is a local measure, and the gain 
criterion for a test selection is based on the information available for a given step of 
data splitting. 

 Suppose we have the task of selecting a possible test with n outcomes (n values 
for a given feature) that partitions the set T of training samples into subsets T 1 , T 2 ,    . . .    , 
T n . The only information available for guidance is the distribution of classes in T and 
its subsets T i . If S is any set of samples, let  freq (C i , S) stand for the number of samples 
in S that belong to class C i  (out of k possible classes), and let |S| denote the number of 
samples in the set S. 

 The original ID3 algorithm used a criterion called  gain  to select the attribute to be 
tested that is based on the information theory concept:  entropy . The following relation 
gives the computation of the entropy of the set T (bits are units):

   Info T

(

)

= −

k

∑

=
1

i

((

(
freq C T

,

i

) / |

T

⋅

|) log (
2

(
freq C T

,

i

) / |

T

|))

 Now  consider  a  similar  measurement  after T  has  been  partitioned  in  accordance 
with n outcomes of one attribute test X. The expected information requirement can be 
found as the weighted sum of entropies over the subsets:

   Info T
x

(

)

=

n

∑

=
1

i

((|

 The quantity

⋅
|)
T T Info T
i

|/|

(

i

))

=
   Gain X Info T
)

(

(

−

)

Info Tx

(

)

 measures the information that is gained by partitioning T in accordance with the test 
X. The gain criterion selects a test X to maximize Gain(X), that is, this criterion will 
select an attribute with the highest information gain. 

 Let us analyze the application of these measures and the creation of a decision tree 
for one simple example. Suppose that the database T is given in a ﬂ at form in which 
each of 14 examples (cases) is described by three input attributes and belongs to one 
of two given classes: CLASS1 or CLASS2. The database is given in tabular form in 
Table  6.1 .   

 Nine  samples  belong  to  CLASS1  and  ﬁ ve  samples  to  CLASS2,  so  the  entropy 

before splitting is

   Info T

(

)

= −

9 14
/

log ( /
2

9 14

)

−

5 14
/

log ( /
2

5 14

)

=

0 940
.

 bits

 After using Attribute1 to divide the initial set of samples T into three subsets (test 
x 1  represents the selection one of three values A, B, or C), the resulting information is 
given by:

  
  
  
 
  
176 

DECISION  TREES  AND  DECISION  RULES

  TA BLE  6.1.     A Simple Flat Database of Examples for Training 

  Database T:  

   Attribute1  

   Attribute2  

   Attribute3  

   Class  

  A  
  A  
  A  
  A  
  A  
  B  
  B  
  B  
  B  
  C  
  C  
  C  
  C  
  C  

Info T
x1

(

)

=

  70  
  90  
  85  
  95  
  70  
  90  
  78  
  65  
  75  
  80  
  70  
  80  
  80  
  96  

  True  
  True  
  False  
  False  
  False  
  True  
  False  
  True  
  False  
  True  
  True  
  False  
  False  
  False  

  CLASS1  
  CLASS2  
  CLASS2  
  CLASS2  
  CLASS1  
  CLASS1  
  CLASS1  
  CLASS1  
  CLASS1  
  CLASS2  
  CLASS2  
  CLASS1  
  CLASS1  
  CLASS1  

−

(

5 14
/
+

/
4 14

2 5
/
−

/
4 4

log (/ )
5
[
2
log

((

2

4 4
/

−

+

5 14
/

3 5
/

3 5
log ( / )

2

2 5
/

3 5
/
−

)
−

0 4
/

log ( / ))

3 5

2
log (
2
log (
2

0 4
/

))

2 5

/ ))

(
−

(

=

0 6
.

994 bits

 The information gained by this test x 1  is

   Gain  x
1

(

)

=

−
0 940 0 694

.

.

=

0 246
.

 bits

 If the test and splitting is based on Attribute3 (test x 2  represents the selection one 

of two values True or False), a similar computation will give new results:

Info T
x2

(

)

=

=

6 14
/
+

−

(

3 6
/
−

/
8 14

(

/
6 8

2
log

log ( / )
3 6

−

3 6
/
−

6 8
(( / )

2

2 8
/

log ( / ))

2 8

2

log ( / ))

3 6

2

0 892
.

 bits

and corresponding gain is

   Gain  x

(

)

2

=

−
0 940 0 892

.

.

=

.
0 048

 bits

 Based  on  the  gain  criterion,  the  decision - tree  algorithm  will  select  test  x 1   as  an 
initial test for splitting the database T because this gain is higher. To ﬁ nd the optimal 
test it will be necessary to analyze a test on Attribute2, which is a numeric feature with 
continuous values. In general, C4.5 contains mechanisms for proposing three types of 
tests:

   
 
 
 
  
  
   
 
 
 
  
    
    
    
C4.5  ALGORITHM:  GENERATING  A  DECISION  TREE 

177

   1.      The  “ standard ”  test on a discrete attribute, with one outcome and one branch 
for each possible value of that attribute (in our example these are both tests x 1  
for Attribute1 and x 2  for Attribute3).  

  2.      If attribute Y has continuous numeric values, a binary test with outcomes Y    ≤    Z 
and Y    >    Z could be deﬁ ned by comparing its value against a threshold value Z.  
  3.      A more complex test is also based on a discrete attribute, in which the possible 
values  are  allocated  to  a  variable  number  of  groups  with  one  outcome  and 
branch for each group.    

 While we have already explained standard test for categorical attributes, additional 
explanations are necessary about a procedure for establishing tests on attributes with 
numeric values. It might seem that tests on continuous attributes would be difﬁ cult to 
formulate,  since  they  contain  an  arbitrary  threshold  for  splitting  all  values  into  two 
intervals. But there is an algorithm for the computation of optimal threshold value Z. 
The training samples are ﬁ rst sorted on the values of the attribute Y being considered. 
There are only a ﬁ nite number of these values, so let us denote them in sorted order as 
{v 1 ,  v 2 ,    . . .    ,  v m }. Any  threshold  value  lying  between  v i   and  v i + 1   will  have  the  same 
effect as dividing the cases into those whose value of the attribute Y lies in {v 1 , v 2 ,    . . .    , 
v i } and those whose value is in {v i + 1 , v i + 2 ,    . . .    , v m }. There are thus only m - 1 possible 
splits on Y, all of which should be examined systematically to obtain an optimal split. 
It  is  usual  to  choose  the  midpoint  of  each  interval,  (v i     +    v i + 1 )/2,  as  the  representative 
threshold. The algorithm C4.5 differs in choosing as the threshold a smaller value v i  
for every interval {v i , v i + 1 }, rather than the midpoint itself. This ensures that the thresh-
old values appearing in either the ﬁ nal decision tree or rules or both actually occur in 
the database. 

 To illustrate this threshold - ﬁ nding process, we could analyze, for our example of 
database T, the possibilities of Attribute2 splitting. After a sorting process, the set of 
values  for Attribute2  is  {65,  70,  75,  78,  80,  85,  90,  95,  96}  and  the  set  of  potential 
threshold  values  Z  is  {65,  70,  75,  78,  80,  85,  90,  95}.  Out  of  these  eight  values  the 
optimal Z (with the highest information gain) should be selected. For our example, the 
optimal Z value is Z    =    80 and the corresponding process of information - gain computa-
tion for the test x 3  (Attribute2    ≤    80 or Attribute2    >    80) is the following:

Info T
x3

(

)

=

=

−

(

9 14
/
+

/
5 14

7 9
/
−

(

/
2 5

2
log

log ( / )
7 9

−

2 9
/
−

2 5
(( / )

2

3 5
/

log ( / ))

3 5

2

log ( / ))

2 9

2

0 837
.

 bits

   Gain x

(

)

3

=

0 940 0 837 0 103

.

.

.

 bits

=

−

 Now, if we compare the information gain for the three attributes in our example, 
we can see that Attribute1 still gives the highest gain of 0.246 bits and therefore this 
attribute will be selected for the ﬁ rst splitting in the construction of a decision tree. The 
root  node  will  have  the  test  for  the  values  of Attribute1,  and  three  branches  will  be 
created,  one  for  each  of  the  attribute  values. This  initial  tree  with  the  corresponding 
subsets of samples in the children nodes is represented in Figure 6 .4 .   

   
 
 
 
  
178 

DECISION  TREES  AND  DECISION  RULES

    Test x1:  
Attribute1 = ? 

A 

B 

C 

T1: 
Att.2  Att.3  Class 

T2: 
Att.2  Att.3  Class 

        T3: 

Att.2  Att.3  Class 

70 
90 
85 
95 
70 

True  CLASS1 
True  CLASS2 
False  CLASS2 
False  CLASS2 
False  CLASS1 

90 
78 
65 
75 

True  CLASS1 
False  CLASS1 
True  CLASS1 
False  CLASS1 

80 
70 
80 
80 
96 

True  CLASS2 
True  CLASS2 
False  CLASS1 
False  CLASS1 
False  CLASS1 

     Figure 6.4.      Initial decision tree and subset cases for a database in Table  6.1 .  

 After initial splitting, every child node has several samples from the database, and 
the  entire  process  of  test  selection  and  optimization  will  be  repeated  for  every  child 
node. Because the child node for test x 1 , Attribute1    =    B, has four cases and all of them 
are in CLASS1, this node will be the leaf node, and no additional tests are necessary 
for this branch of the tree. 

 For the remaining child node where we have ﬁ ve cases in subset T 1 , tests on the 
remaining  attributes  can  be  performed;  an  optimal  test  (with  maximum  information 
gain) will be test x 4  with two alternatives: Attribute2    ≤    70 or Attribute2    >    70.

   Info T
1

(

)

= −

2 5
/

2 5
log ( / )

2

−

3 5
/

3 5
log ( / )

2

=

0 97
.

 bits

 Using Attribute2 to divide T 1  into two subsets (test x 4  represents the selection of 

one of two intervals), the resulting information is given by:

Info T
1
x4

(

)

/
2 2
−

(

/
0 3

log (
2
log (
2

/
2 2

−

)

/ )
00 3

−

=

(

/
2 5
+
3 5
/
=  bits
0

/
0 2
−

/
3 3

log (
2

/
0 2

))

log ( / ))

3 3

2

 The information gained by this test is maximal:

   Gain  x

(

)

4

=

0 97 0

− =

.

0 97
.

 bits

and two branches will create the ﬁ nal leaf nodes because the subsets of cases in each 
of the branches belong to the same class. 

 A similar computation will be carried out for the third child of the root node. For 
the  subset  T 3   of  the  database  T,  the  selected  optimal  test  x 5   is  the  test  on Attribute3 
values.  Branches  of  the  tree,  Attribute3    =    True  and  Attribute3    =    False,  will  create 
uniform subsets of cases that belong to the same class. The ﬁ nal decision tree for data-
base T is represented in Figure 6 .5 .   

 Alternatively, a decision tree can be presented in the form of an executable code 
(or  pseudo - code)  with  if - then  constructions  for  branching  into  a  tree  structure.  The 
transformation  of  a  decision  tree  from  one  representation  to  the  other  is  very  simple 

  
   
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
C4.5  ALGORITHM:  GENERATING  A  DECISION  TREE 

179

       x1: 
Attribute

Test Nodes 

             A 

            B 

         C 

       x3: 
Attribute

        x4: 

Attribute

≤70 

 >70 

         True 

    False 

CLASS1 

CLASS2         CLASS1      CLASS2   

    CLASS1        Leaf 
 Nodes 

     Figure 6.5.      A ﬁ nal decision tree for database T given in Table  6.1 .  

If 

Attribute1 = A 
Then 

If 

Elseif  Attribute1 = B 
Then 

Elseif  Attribute1 = C 
Then 

If 

Attribute2 <= 70 
Then 

Classification = CLASS1;

Else 

Classification = CLASS2;

Classification = CLASS1;

Attribute3 = True 
Then 

Classification = CLASS2;

Else 

Classification = CLASS1. 

     Figure 6.6.      A decision tree in the form of pseudocode for the database T given in Table  6.1 .  

and straightforward. The ﬁ nal decision tree for our example is given in pseudocode in 
Figure 6 .6 .   

 While the gain criterion has had some good results in the construction of compact 
decision  trees,  it  also  has  one  serious  deﬁ ciency:  a  strong  bias  in  favor  of  tests  with 
many outcomes. A solution was found in some kinds of normalization. By analogy with 
the deﬁ nition of Info(S), an additional parameter was speciﬁ ed:

   Split-info X

(

)

= −

n

∑

=
1

i

((|

|/|
T T
i

|) log (|

2

|/|
T T
i

|)

 This  represented  the  potential  information  generated  by  dividing  set  T  into  n 

subsets T i . Now, a new gain measure could be deﬁ ned:

  
 
 
 
 
 
 
180 

DECISION  TREES  AND  DECISION  RULES

   Gain-ratio X gain X Split-info X

) /

(

(

)

(

=

)

 This new gain measure expresses the proportion of information generated by the 
split that is useful, that is, that appears helpful in classiﬁ cation. The gain - ratio criterion 
also  selects  a  test  that  maximizes  the  ratio  given  earlier. This  criterion  is  robust  and 
typically gives a consistently better choice of a test than the previous gain criterion. A 
computation of the gain - ratio test can be illustrated for our example. To ﬁ nd the gain -
 ratio measure for the test x 1 , an additional parameter Split - info(x 1 ) is calculated:

   Split-info x(
1

)

= −

5 14
/

log ( /
2

5 14

)

−

4 14
/

log (
2

4 14
/

)

−

5 14
/

log ( /
2

5 1

44

)

.=

1 577

 bits  

   Gain-ratio x(
1

)

=

0 246 1 557 0 156

/

.

.

.

=

 A similar procedure should be performed for other tests in the decision tree. Instead 
of  gain  measure,  the  maximal  gain  ratio  will  be  the  criterion  for  attribute  selection, 
along with a test to split samples into subsets. The ﬁ nal decision tree created using this 
new criterion for splitting a set of samples will be the most compact.  

   6.3  

  UNKNOWN ATTRIBUTE VALUES 

 The previous version of the C4.5 algorithm is based on the assumption that all values 
for all attributes are determined. But in a data set, often some attribute values for some 
samples  can  be  missing — such  incompleteness  is  typical  in  real - world  applications. 
This might occur because the value is not relevant to a particular sample, or it was not 
recorded when the data were collected, or an error was made by the person entering 
data into a database. To solve the problem of missing values, there are two choices:

   1.      Discard all samples in a database with missing data.  
  2.      Deﬁ ne  a  new  algorithm  or  modify  an  existing  algorithm  that  will  work  with 

missing data.    

 The ﬁ rst solution is simple but unacceptable when large amounts of missing values 
exist in a set of samples. To address the second alternative, several questions must be 
answered:

   1.      How does one compare two samples with different numbers of unknown values?  
  2.      Training samples with unknown values cannot be associated with a particular 
value of the test, and so they cannot be assigned to any subsets of cases. How 
should these samples be treated in the partitioning?  

  3.      In a testing phase of classiﬁ cation, how does one treat a missing value if the 

test is on the attribute with the missing value?    

 All these and many other questions arise with any attempt to ﬁ nd a solution for 
missing data. Several classiﬁ cation algorithms that work with missing data are usually 

  
  
UNKNOWN  ATTRIBUTE  VALUES 

181

based on ﬁ lling in a missing value with the most probable value, or on looking at the 
probability distribution of all values for the given attribute. None of these approaches 
is uniformly superior. 

 In C4.5, it is an accepted principle that samples with unknown values are distrib-
uted probabilistically according to the relative frequency of known values. Let Info(T) 
and Info x (T) be calculated as before, except that only samples with known values of 
attributes are taken into account. Then the gain parameter can reasonably be corrected 
with  a  factor  F,  which  represents  the  probability  that  a  given  attribute  is  known 
(F    =    number of samples in the database with a known value for a given attribute/total 
number of samples in a data set). The new gain criterion will have the form

   Gain x
( )

=

F  Info T

(

(

−

)

Info Tx

(

))

 Similarly,  Split - info(x)  can  be  altered  by  regarding  the  samples  with  unknown 
values as an additional group in splitting. If the test x has n outcomes, its Split - info(x) 
is computed as if the test divided the data set into n    +    1 subsets. This modiﬁ cation has 
a direct inﬂ uence on the ﬁ nal value of the modiﬁ ed criterion Gain - ratio(x). 

 Let us explain the modiﬁ cations of the C4.5 decision - tree methodology applied on 
one example. The database is similar to the previous one (Table  6.1 ), only there is now 
one value missing for Attribute1 denoted by  “ ? ”  as presented in Table  6.2 .   

 The computation of the gain parameter for Attribute1 is similar to as before, only 
the missing value corrects some of the previous steps. Eight out of the 13 cases with 
values  for Attribute1  belong  to  CLASS1  and  ﬁ ve  cases  to  CLASS2,  so  the  entropy 
before splitting is

  TA BLE 6.2.     A Simple Flat Database of Examples with One 
Missing Value 

   Database T:  

   Attribute1  

   Attribute2  

   Attribute3  

   Class  

  A  
  A  
  A  
  A  
  A  
   ?   
  B  
  B  
  B  
  C  
  C  
  C  
  C  
  C  

  70  
  90  
  85  
  95  
  70  
  90  
  78  
  65  
  75  
  80  
  70  
  80  
  80  
  96  

  True  
  True  
  False  
  False  
  False  
  True  
  False  
  True  
  False  
  True  
  True  
  False  
  False  
  False  

  CLASS1  
  CLASS2  
  CLASS2  
  CLASS2  
  CLASS1  
  CLASS1  
  CLASS1  
  CLASS1  
  CLASS1  
  CLASS2  
  CLASS2  
  CLASS1  
  CLASS1  
  CLASS1  

  
182 

DECISION  TREES  AND  DECISION  RULES

   Info T

(

)

= −

8 13
/

log ( /
2

8 13
)

−

5 13
/

log ( /
2

5 13
)

=

0 961
.

 bits

 After using Attribute1 to divide T into three subsets (test x 1  represents the selection 

one of three values A, B, or C), the resulting information is given by

Info T
x1

(

)

=

−

(

5 13
/
+

/
3 13
5 13
/

+

−

2 5
/
−

/ ]
2 5

log [
2
3 3
[[ / ]
log
3 5
log [ / ]

2

/
3 3
3 5
/

−

(
(

2

3 5
/
−

0 3
/
2 5
/

−

2
log [
2
log [
2

log [ / ])

3 5

0 3
2 5

/ ])
/ ])

=

0 7
.

447 bits

 The information gained by this test is now corrected with the factor F (F    =    13/14 

for our example):

   Gain  x
1
)

(

=

13 14 0 961 0 747

( .

/

.

−

=

)

0 199
.

 bits

 The gain for this test is slightly lower than the previous value of 0.216 bits. The 
split information, however, is still determined from the entire training set and is larger, 
since there is an extra category for unknown values.

1
Split-info x(
)

= −

+

5 14
( /

log( /

5 14

)

/
1 14

log( /

1 14

))

+

=

=

.
1 8

3 14
/

log( /

3 14

)

+

5 14
/

log( /

5 14

)

++

 Additionally, the concept of partitioning must be generalized. With every sample 
a new parameter, probability, is associated. When a case with known value is assigned 
from T to subset T i , the probability of it belonging to T i  is 1, and in all other subsets is 
0. When a value is not known, only a weaker probabilistic statement can be made. C4.5 
therefore  associates  with  each  sample  (having  a  missing  value)  in  each  subset  T i   a 
weight w, representing the probability that the case belongs to each subset. To make 
the solution more general, it is necessary to take into account that the probabilities of 
samples  before  splitting  are  not  always  equal  to  one  (in  subsequent  iterations  of  the 
decision - tree  construction).  Therefore,  new  parameter  w new   for  missing  values  after 
splitting is equal to the old parameter w old  before splitting multiplied by the probability 
that the sample belongs to each subset P(T i ), or more formally:

   w

new

=

⋅
w P T
i

old

(

)   

 For  example,  the  record  with  the  missing  value,  given  in  the  database  in  Figure 
6 .7 , will be represented in all three subsets after the splitting set T into subsets T i  using 
test x 1  on Attribute1. New weights w i  will be equal to probabilities 5/13, 3/13, and 5/13, 
because the initial (old) value for w is equal to one. The new subsets are given in Figure 
6 .7 . |T i | can now be reinterpreted in C4.5 not as a number of elements in a set T i , but 
as  a  sum  of  all  weights  w  for  the  given  set T i .  From  Figure  6 .7 ,  the  new  values  are 
computed as: |T 1 |    =    5    +    5/13, |T 2 |    =    3    +    3/13, and |T 3 |    =    5    +    5/13.   

  
   
 
 
 
  
 
  
   
  
UNKNOWN  ATTRIBUTE  VALUES 

183

T1: (Attribute1 = A)

     T2: (Attribute1 = B) 

    T3: (Attribute1 = C) 

Att.2 Att.3

Class

w

A

tt.2 Att.3

Class

w

Att.2 Att.3

Class

w

70
90
85
95
70
90

True
True
False
False
False
True

CLASS1
CLASS2
CLASS2
CLASS2
CLASS1
CLASS1 5/13

1
1
1
1
1

90
78
65
75

True
False
True
False

CLASS1
CLASS1
CLASS1
CLASS1

3/13
1
1
1

80
70
80
80
96
90

True
True
False
False
False
True

CLASS2
CLASS2
CLASS1
CLASS1
CLASS1
CLASS1 5/13

1
1
1
1
1

     Figure 6.7.      Results of test x 1  are subsets T i  (initial set T is with missing value).  

  If 

Attribute1 = A 

Then 

If 

Elseif  Attribute1 = B 
Then 

Elseif  Attribute1 = C 
Then 

If 

Attribute2 <= 70 
Then 

Classification = CLASS1 

(2.0 / 0); 

Else 

Classification = CLASS2 

 (3.4 / 0.4); 

Classification = CLASS1 

(3.2 / 0); 

Attribute3 = True 
Then 

Classification = CLASS2 

(2.4 / 0.4); 

Else 

Classification = CLASS1 

(3.0 / 0). 

     Figure 6.8.      Decision tree for the database T with missing values.  

 If  these  subsets  are  partitioned  further  by  the  tests  on Attribute2  and Attribute3, 
the  ﬁ nal  decision  tree  for  a  data  set  with  missing  values  has  the  form  shown  in 
Figure 6 .8    

 The decision tree in Figure 6 .8  has much the same structure as before (Fig.  6.6 ), 
but  because  of  the  ambiguity  in  ﬁ nal  classiﬁ cation,  every  decision  is  attached  with 
two parameters in a form (|T i |/E). |T i | is the sum of the fractional samples that reach the 
leaf and E is the number of samples that  belong  to classes other than  the nominated 
class. 

 For  example,  (3.4/0.4)  means  that  3.4  (or  3    +    5/13)  fractional  training  samples 
reached the leaf, of which 0.4 (or 5/13) did not belong to the class assigned to the leaf. 
It is possible to express the |T i | and E parameters in percentages:

⋅
.
   3 3 4 100

/

%

=

88

%

 of cases at a given leaf would be classifiedd as CLASS2.  

.
   0 4 3 4 100

/

.

%

⋅

=

12

%

 of cases at a given leaf would be classifiied as CLASS1.   

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184 

DECISION  TREES  AND  DECISION  RULES

 A  similar  approach  is  taken  in  C4.5  when  the  decision  tree  is  used  to  classify  a 
sample previously not present in a database, that is, the  testing phase . If all attribute 
values  are  known  then  the  process  is  straightforward.  Starting  with  a  root  node  in  a 
decision tree, tests on attribute values will determine traversal through the tree, and at 
the end, the algorithm will ﬁ nish in one of the leaf nodes that uniquely deﬁ ne the class 
of a testing example (or with probabilities, if the training set had missing values). If 
the value for a relevant testing attribute is unknown, the outcome of the test cannot be 
determined. Then the system explores all possible outcomes from the test and combines 
the  resulting  classiﬁ cation  arithmetically.  Since  there  can  be  multiple  paths  from  the 
root of a tree or subtree to the leaves, a classiﬁ cation is a class distribution rather than 
a single class. When the total class distribution for the tested case has been established, 
the class with the highest probability is assigned as the predicted class.  

   6.4  

  PRUNING DECISION TREES 

 Discarding  one  or  more  subtrees  and  replacing  them  with  leaves  simplify  a  decision 
tree, and that is the main task in decision - tree pruning. In replacing the subtree with a 
leaf, the algorithm expects to lower the  predicted error rate and  increase the quality 
of  a  classiﬁ cation  model.  But  computation  of  error  rate  is  not  simple. An  error  rate 
based only on a training data set does not provide a suitable estimate. One possibility 
to estimate the predicted error rate is to use a new, additional set of test samples if they 
are  available,  or  to  use  the  cross - validation  techniques  explained  in  Chapter   4 .  This 
technique  divides  initially  available  samples  into  equal - sized  blocks  and,  for  each 
block, the tree is constructed from all samples except this block and tested with a given 
block  of  samples.  With  the  available  training  and  testing  samples,  the  basic  idea  of 
decision tree pruning is to remove parts of the tree (subtrees) that do not contribute to 
the  classiﬁ cation  accuracy  of  unseen  testing  samples,  producing  a  less  complex  and 
thus more comprehensible tree. There are two ways in which the recursive - partitioning 
method can be modiﬁ ed:

   1.      Deciding Not to Divide a Set of Samples Any Further under Some Conditions .      
The stopping criterion is usually based on some statistical tests, such as the  χ  2  
test: If there are no signiﬁ cant differences in classiﬁ cation accuracy before and 
after division, then represent a current node as a leaf. The decision is made in 
advance, before splitting, and therefore this approach is called  prepruning .  
  2.      Removing Retrospectively Some of the Tree Structure Using Selected Accuracy 
Criteria .       The decision in this process of  postpruning  is made after the tree has 
been built.    

 C4.5 follows the  postpruning  approach, but it uses a speciﬁ c technique to estimate 
the predicted error rate. This method is called  pessimistic pruning . For every node in 
a tree, the estimation of the upper conﬁ dence limit U cf  is computed using the statistical 
tables for binomial distribution (given in most textbooks on statistics). Parameter U cf  
is a function of |T i | and E for a given node. C4.5 uses the default conﬁ dence level of 

C4.5  ALGORITHM:  GENERATING  DECISION  RULES 

185

     X1 

 ?       
⇒

     CLASS1 (16, 1) 

  A = 1   

           A = 2 

               A = 3 

CLASS1 (6, 0)  

 CLASS1 (9, 0 )            CLASS2 (1,0) 

     Figure 6.9.      Pruning a subtree by replacing it with one leaf node.  

25%, and compares U 25%  (|T i |/E) for a given node T i  with a weighted conﬁ dence of its 
leaves. Weights are the total number of cases for every leaf. If the predicted error for 
a  root  node  in  a  subtree  is  less  than  weighted  sum  of  U 25%   for  the  leaves  (predicted 
error for the subtree), then a subtree will be replaced with its root node, which becomes 
a new leaf in a pruned tree. 

 Let us illustrate this procedure with one simple example. A subtree of a decision 
tree is given in Figure 6 .9 , where the root node is the test x 1  on three possible values 
{1, 2, 3} of the attribute A. The children of the root node are leaves denoted with cor-
responding classes and (|Ti|/E) parameters. The question is to estimate the possibility 
of  pruning  the  subtree  and  replacing  it  with  its  root  node  as  a  new,  generalized  leaf 
node.   

 To analyze the possibility of replacing the subtree with a leaf node it is necessary 
to  compute  a  predicted  error  PE  for  the  initial  tree  and  for  a  replaced  node.  Using 
default  conﬁ dence  of  25%,  the  upper  conﬁ dence  limits  for  all  nodes  are  collected 
from  statistical  tables:  U 25% (6,0)    =    0.206,  U 25% (9,0)    =    0.143,  U 25% (1,0)    =    0.750,  and 
U 25% (16,1)    =    0.157. Using these values, the predicted errors for the initial tree and the 
replaced node are

   PEtree = ⋅

+ ⋅

.

6 0 206 9 0 143 1 0 750 3 257
.
   PEnode =

16 0 157 2 512

=

.

⋅

.

.

.

+ ⋅

=

 Since the existing subtree has a higher value of predicted error than the replaced 
node, it is recommended that the decision tree be pruned and the subtree replaced with 
the new leaf node.  

   6.5  

  C4.5 ALGORITHM: GENERATING DECISION RULES 

 Even  though  the  pruned  trees  are  more  compact  than  the  originals,  they  can  still  be 
very complex. Large decision trees are difﬁ cult to understand because each node has 
a speciﬁ c context established by the outcomes of tests at antecedent nodes. To make a 
decision - tree model more readable, a path to each leaf can be transformed into an IF -
 THEN production rule. The IF part consists of all tests on a path, and the THEN part 
is a ﬁ nal classiﬁ cation. Rules in this form are called  decision rules , and a collection of 

 
  
 
186 

DECISION  TREES  AND  DECISION  RULES

ROOT
: A
X1

A = 1

A = 2

X2: B

        Transformation
⇒

CLASS1      =========
                   Paths into Rules 

   B = 1

  B = 2

CLASS1 

CLASS2 

If A = 1 and B = 1 
   Then CLASS1 

If A = 1 and B = 2 
    Then CLASS2 

If A = 2 
     Then CLASS1

(a)

(b)

     Figure 6.10.      Transformation of a decision tree into decision rules. (a) Decision tree; (b) deci-
sion rules.  

decision rules for all leaf nodes would classify samples exactly as the tree does. As a 
consequence of their tree origin, the IF parts of the rules would be mutually exclusive 
and exhaustive, so the order of the rules would not matter. An example of the transfor-
mation of a decision tree into a set of decision rules is given in Figure 6 .10 , where the 
two  given  attributes, A  and  B,  may  have  two  possible  values,  1  and  2,  and  the  ﬁ nal 
classiﬁ cation is into one of two classes.   

 For  our  trained  decision  tree  in  Figure  6 .8 ,  the  corresponding  decision  rules 

will be 

   If   

   If   

   If   

   If   

   If   

  Attribute1    =    A and Attribute2    <     =    70  
   Then  Classiﬁ cation    =    CLASS1 (2.0/0);  
  Attribute1    =    A and Attribute2    >    70  
   Then  Classiﬁ cation    =    CLASS2 (3.4/0.4);  
  Attribute1    =    B  
   Then  Classiﬁ cation    =    CLASS1 (3.2/0);  
  Attribute1    =    C and Attribute3    =    True  
   Then  Classiﬁ cation    =    CLASS2 (2.4/0);  
  Attribute1    =    C and Attribute3    =    False  
   Then  Classiﬁ cation    =    CLASS1 (3.0/0).  

 Rewriting the tree to a collection of rules, one for each leaf in the tree, would not 
result in a simpliﬁ ed model. The number of decision rules in the classiﬁ cation model 
can be extremely large and pruning of rules can improve readability of the model. In 
some cases, the antecedents of individual rules may contain irrelevant conditions. The 
rules  can  be  generalized  by  deleting  these  superﬂ uous  conditions  without  affecting 
rule - set accuracy. What are criteria for deletion of rule conditions? Let rule R be 

  If A then Class C    

 and a more general rule R ’  could be 

 
 
 
     
C4.5  ALGORITHM:  GENERATING  DECISION  RULES 

187

  If A ’  then Class C    

 where A ’  is obtained by deleting one condition X from A (A    =    A ’  ∪ X). The evidence 
for the importance of condition X must be found in the training samples. Each sample 
in  the  database  that  satisﬁ es  the  condition A ’   either  satisﬁ es  or  does  not  satisfy  the 
extended conditions A. Also, each of these cases does or does not belong to the desig-
nated Class C. The results can be organized into a contingency 2    ×    2 table: 

   Class C  

   Other Classes  

  Satisﬁ es condition X  
  Does not satisfy condition X  

  Y 1   
  Y 2   

  E 1   
  E 2   

 There are Y 1     +    E 1  cases that are covered by the original rule R, where R misclas-
siﬁ es E 1  of them since they belong to classes other than C. Similarly, Y 1     +    Y 2     +    E 1     +    E 2  
is the total number of cases covered by rule R ’ , and E 1     +    E 2  are errors. The criterion 
for the elimination of condition X from the rule is based on a pessimistic estimate of 
the accuracy of rules R and R ’ . The estimate of the error rate of rule R can be set to 
U cf (Y 1     +    E 1 , E 1 ), and for that of rule R ’  to U cf (Y 1     +    Y 2     +    E 1     +    E 2 , E 1     +    E 2 ). If the pes-
simistic error rate of rule R ’  is no greater than that of the original rule R, then it makes 
sense to delete condition X. Of course, more than one condition may have to be deleted 
when  a  rule  is  generalized.  Rather  than  looking  at  all  possible  subsets  of  conditions 
that  could  be  deleted,  the  C4.5  system  performs  greedy  elimination: At  each  step,  a 
condition with the lowest pessimistic error is eliminated. As with all greedy searches, 
there is no guarantee that minimization in every step will lead to a global minimum. 

 If, for example, the contingency table for a given rule R is given in Table  6.3 , then 

the corresponding error rates are  

   1.      for initially given rule R:

+
   U Y E E
1
1

(

cf

,

1

=

)

U

cf

9 1
( , )

=

0 183
.
,

and

  2.      for a general rule R ’  without condition X:

+
   U Y Y E
1
1

+

(

cf

2

+

,
E E
1
2

+

E

2

)

=

U

cf

16 1
(
, )

=

0 157
.

 Because  the  estimated  error  rate  of  the  rule  R ’   is  lower  than  the  estimated  error 
rate for the initial rule R, a rule set pruning could be done by simplifying the decision 
rule R and replacing it with R ’ . 

  TA BLE 6.3.     Contingency Table for the Rule R 

   Class C  

   Other Classes  

   Satisﬁ es condition X   
  Does not satisfy condition X  

   8   
  7  

   1   
  0  

     
     
     
   
     
188 

DECISION  TREES  AND  DECISION  RULES

  Initial set of decision rules 

 Grouping attribute values 

Final set of decision rules 

If A then C1 
If B then C2 
If C then C1 
If D then C2 

⇒

G1 = {A, C} 
G2 = {B, D} 

⇒

             If G1 then C1 
          If G2 then C2 

     Figure 6.11.      Grouping attribute values can reduce decision - rules set.  

 One complication caused by a rule ’ s generalization is that the rules are no more 
mutually exclusive and exhaustive. There will be the cases that satisfy the conditions 
of more than one rule, or of no rules. The conﬂ ict resolution schema adopted in C4.5 
(detailed explanations have not been given in this book) selects one rule when there is 
 “ multiple - rule  satisfaction. ”   When  no  other  rule  covers  a  sample,  the  solution  is  a 
 default rule  or a  default class.  One reasonable choice for the default class would be the 
class  that  appears  most  frequently  in  the  training  set.  C.4.5  uses  a  modiﬁ ed  strategy 
and simply chooses as the default class the one that contains the most training samples 
not covered by any rule. 

 The  other  possibility  of  reducing  the  complexity  of  decision  rules  and  decision 
trees is a process of grouping attribute values for categorical data. A large number of 
values cause a large space of data. There is a concern that useful patterns may not be 
detectable because of the insufﬁ ciency of training data, or that patterns will be detected 
but the model will be extremely complex.. To reduce the number of attribute values it 
is necessary to deﬁ ne appropriate groups. The number of possible splitting is large: for 
n values, there exist 2 n − 1     −    1 nontrivial binary partitions. Even if the values are ordered, 
there are n    −    1  “ cut values ”  for binary splitting. A simple example, which shows the 
advantages  of  grouping  categorical  values  in  decision - rules  reduction,  is  given  in 
Figure 6 .11 .   

 C4.5 increases the number of grouping combinations because it does not include 
only binary categorical data, but also n - ary partitions. The process is iterative, starting 
with an initial distribution where every value represents a separate group, and then, for 
each new iteration, analyzing the possibility of merging the two previous groups into 
one. Merging is accepted if the information gain ratio (explained earlier) is nondecreas-
ing. A ﬁ nal result may be two or more groups that will simplify the classiﬁ cation model 
based on decision trees and decision rules. 

 C4.5 was superseded in 1997 by a commercial system C5.0. The changes include 

  1.      a variant of boosting technique, which constructs an ensemble of classiﬁ ers that 

are then voted to give a ﬁ nal classiﬁ cation, and  

  2.      new  data  types  such  as  dates,  work  with   “ not  applicable ”   values,  concept  of 

variable misclassiﬁ cation costs, and mechanisms to pre - ﬁ lter attributes.    

 C5.0 greatly improves scalability of both decision trees and rule sets, and enables 
successful  applications  with  large  real - world  data  sets.  In  practice,  these  data  can  be 
translated into more complicated decision trees that can include dozens of levels and 
hundreds of variables.  

           
 
      
 
 
 
 
 
 
 
 
 
CART  ALGORITHM  &  GINI  INDEX 

189

   6.6  

   CART  ALGORITHM  &  GINI INDEX 

 CART, as indicated earlier, is an acronym for Classiﬁ cation and Regression Trees. The 
basic methodology of divide and conquer described in C4.5 is also used in CART. The 
main differences are in the tree structure, the splitting criteria, the pruning method, and 
the way missing values are handled. 

 CART constructs trees that have only binary splits. This restriction simpliﬁ es the 
splitting criterion because there need not be a penalty for multi - way splits. Furthermore, 
if  the  label  is  binary,  the  binary  split  restriction  allows  CART  to  optimally  partition 
categorical  attributes  (minimizing  any  concave  splitting  criteria)  to  two  subsets  of 
values in the number of attribute values. The restriction has its disadvantages, however, 
because the tree may be less interpretable with multiple splits occurring on the same 
attribute at the adjacent levels. 

 CART uses the  Gini  diversity index as a splitting criterion instead of information -
 based  criteria  for  C4.5. The  CART  authors  favor  the  Gini  criterion  over  information 
gain because the Gini can be extended to include symmetrized costs, and it is computed 
more rapidly than information gain. The Gini index is used to select the feature at each 
internal node of the decision tree. We deﬁ ne the Gini index for a data set  S  as follows  :

   Gini S

( ) = −

−
1

c

∑1

2
pi

where 

=

i

0

   (cid:127)       c is the number of predeﬁ ned classes,  
   (cid:127)       C i  are classes for i    =    1,    . . .    , c    −    1,  
   (cid:127)       s i  is the number of samples belonging to class C i , and  
   (cid:127)       p i    =     s i /S is a relative frequency of class C i  in the set.    

 This metric indicates the partition purity of the data set  S . For branch prediction 
where we have two classes the Gini index lies within [0, 0.5]. If all the data in  S  belong 
to the same class,  Gini S  equals the minimum value 0, which means that  S  is pure. If 
 Gini S  equals 0.5, all observations in  S  are equally distributed among two classes. This 
decreases as a split favoring one class: for instance a 70/30 distribution produces Gini 
index of 0.42. If we have more than two classes, the maximum possible value for index 
increases; for instance, the worst possible diversity for three classes is a 33% split, and 
it produces a  Gini  value of 0.67. The Gini coefﬁ cient, which ranges from 0 to 1 (for 
extremely large number of classes), is multiplied by 100 to range between 0 and 100 
in some commercial tools. 

 The quality of a split on a feature into  k  subsets  S i   is then computed as the weighted 

sum of the Gini indices of the resulting subsets:

   Ginisplit =

−
1

k

∑ n n Gini S
(
/

i

i

)

=

i

0

 
 
190 

where 

DECISION  TREES  AND  DECISION  RULES

   (cid:127)       n i  is the number of samples in subset S i  after splitting, and  
   (cid:127)       n is the total number of samples in the given node.    

 Thus,  Gini split   is calculated for all possible features, and the feature with minimum 
 Gini split   is selected as split point. The procedure is repetitive as in C4.5. We may compare 
the results of CART and C4.5 attribute selection by applying entropy index (C4.5) and 
Gini index (CART) for splitting Attribute1 in Table  6.1 . While we already have results 
for C4.5 (gain ratio for Attribute 1), Gini split  index for the same attribute may be calcu-
lated as:

Ginisplit =

2

∑ n nGini S
(
/

i

i

=

)

5 14
/

× −
1
(

2 5
( / )

2

−

3 5
( / )

2

+

i
+

=

0
4 14
/

=

0 34
.

×

1−−
(

0 4
( /

)

2

−

(

4 4
/

2
) )

+

5 14
/

× −
1
(

2 5
( / )

2

−

2
3 5
( / ) )

=

 Interpretation of the absolute value for Gini split  index is not important. It is impor-
tant that relatively this value is lower for AttributeA1 than for the other two attributes 
in Table  6.1 . The reader may easily check this claim. Therefore, based on Gini index 
Attribute1 is selected for splitting. It is the same result obtained in C4.5 algorithm using 
an entropy criterion. Although the results are the same in this example, for many other 
data  sets  there  could  be  (usually  small)  differences  in  results  between  these  two 
approaches. 

 CART  also  supports  the   twoing   splitting  criterion,  which  can  be  used  for  multi -
 class problems. At each node, the classes are separated into two superclasses containing 
disjoint and mutually exhaustive classes. A splitting criterion for a two - class problem 
is used to ﬁ nd the attribute, and the two superclasses that optimize the two - class crite-
rion.  The  approach  gives   “ strategic ”   splits  in  the  sense  that  several  classes  that  are 
similar  are  grouped  together. Although  twoing  splitting  rule  allows  us  to  build  more 
balanced  trees,  this  algorithm  works  slower  than  Gini  rule.  For  example,  if  the  total 
number of classes is equal to K, then we will have 2K    −    1 possible grouping into two 
classes. It can be seen that there is a small difference between trees constructed using 
Gini and trees constructed via twoing rule. The difference can be seen mainly at the 
bottom of the tree where the variables are less signiﬁ cant in comparison with the top 
of the tree. 

 Pruning technique used in CART is called minimal cost complexity pruning, while 
C4.5 uses binomial conﬁ dence limits. The proposed approach assumes that the bias in 
the re - substitution error of a tree increases linearly with the number of leaf nodes. The 
cost  assigned  to  a  subtree  is  the  sum  of  two  terms:  the  re - substitution  error  and  the 
number of leaves times a complexity parameter  α . It can be shown that, for every  α  
value, there exists a unique smallest tree minimizing cost of the tree. Note that, although 
 α   runs  through  a  continuum  of  values,  there  are  at  most  a  ﬁ nite  number  of  possible 
subtrees for analysis and pruning. 

   
  
CART  ALGORITHM  &  GINI  INDEX 

191

 Unlike C4.5, CART does not penalize the splitting criterion during the tree con-
struction if examples have unknown values for the attribute used in the split. The cri-
terion  uses  only  those  instances  for  which  the  value  is  known.  CART  ﬁ nds  several 
surrogate splits that can be used instead of the original split. During classiﬁ cation, the 
ﬁ rst surrogate split based on a known attribute value is used. The surrogates cannot be 
chosen  based  on  the  original  splitting  criterion  because  the  subtree  at  each  node  is 
constructed based on the original split selected. The surrogate splits are therefore chosen 
to maximize a measure of predictive association with the original split. This procedure 
works well if there are attributes that are highly correlated with the chosen attribute. 

 As  its  name  implies,  CART  also  supports  building  regression  trees.  Regression 
trees are somewhat simpler than classiﬁ cation trees because the growing and pruning 
criteria used in CART are the same. The regression tree structure is similar to a clas-
siﬁ cation tree, except that each leaf predicts a real number. The re - substitution estimate 
for pruning the tree is the mean - squared error. 

 Among the main advantages of CART method is its robustness to outliers and noisy 
data. Usually the splitting algorithm will isolate outliers in an individual node or nodes. 
Also, an important practical property of CART is that the structure of its classiﬁ cation 
or regression trees is invariant with respect to monotone transformations of independent 
variables.  One  can  replace  any  variable  with  its  logarithm  or  square  root  value,  the 
structure  of  the  tree  will  not  change.  One  of  the  disadvantages  of  CART  is  that  the 
system  may  have  unstable  decision  trees.  Insigniﬁ cant  modiﬁ cations  of  learning 
samples, such as eliminating several observations, could lead to radical changes in a 
decision tree: with a signiﬁ cant increase or decrease in tree complexity are changes in 
splitting variables and values. 

 C4.5 and CART are two popular algorithms for decision tree induction; however, 
their corresponding splitting criteria, information gain, and Gini index are considered 
to be skew - sensitive. In other words, they are not applicable, or at least not successfully 
applied, in cases where classes are not equally distributed in training and testing data 
sets. It becomes important to design a decision tree - splitting criterion that captures the 
divergence  in  distributions  without  being  dominated  by  the  class  priors.  One  of  the 
proposed solutions is the  Hellinger distance  as a decision tree - splitting criterion. Recent 
experimental results show that this distance measure is skew - insensitive. 

 For application as a decision tree - splitting criterion, we assume a countable space, 
so all continuous features are discretized into p partitions or bins. Assuming a two - class 
problem (class +  and class − ), let X +  be samples belonging to class + , and X −  are samples 
with  class − .  Then,  we  are  essentially  interested  in  calculating  the   “ distance ”   in  the 
normalized frequencies distributions aggregated over all the partitions of the two - class 
distributions X +  and X − . The Hellinger distance between X +  and X −  is:

   d X X
(

,

+

H

=

)

−

P

∑

=
1

j





j

−

X
+
X

+

j

X
−
X

−

2





 This  formulation  is  strongly  skew - insensitive.  Experiments  with  real - world  data 
show that the proposed measure may be successfully applied to cases where X +     <<    X − . 

  
192 

DECISION  TREES  AND  DECISION  RULES

w1x1 + w2x2 + w0 > 0

     Figure 6.12.      Multivariate decision node.  

It essentially captures the divergence between the feature value distributions given the 
two different classes. 

 Recent developments in the ﬁ eld extend technology toward multivariate trees. In 
a multivariate tree, at a decision node, all input dimensions can be used for testing (e.g., 
w 1 x 1     +    w 2 x 2     +    w 0     >    0  as  presented  in  Fig.   6.12 ).  It  is  a  hyperplane  with  an  arbitrary 
orientation.  This  is  2 d   ( N  d )  possible  hyperplanes  and  exhaustive  search  is  not 
practical.   

 With linear multivariate nodes, we can use hyperplanes for better approximation 
using fewer nodes. A disadvantage of the technique is that multivariate nodes are mode 
difﬁ cult to interpret. Also, more complex nodes require more data. The earliest version 
of multivariate trees is implemented in CART algorithm, which ﬁ ne - tunes the weights 
w i  one by one to decrease impurity. CART also has a preprocessing stage to decrease 
dimensionality  through  subset  input  selection  (and  therefore  reduction  of  node 
complexity).  

   6.7  

  LIMITATIONS OF DECISION TREES AND DECISION RULES 

 Decision rule -  and decision tree - based models are relatively simple and readable, and 
their  generation  is  very  fast.  Unlike  many  statistical  approaches,  a  logical  approach 
does not depend on assumptions about distribution of attribute values or independence 
of attributes. Also, this method tends to be more robust across tasks than most other 
statistical methods. But there are also some disadvantages and limitations of a logical 
approach, and a data - mining analyst has to be aware of it because the selection of an 
appropriate methodology is a key step to the success of a data - mining process. 

 If data samples are represented graphically in an n - dimensional space, where n is 
the  number  of  attributes,  then  a  logical  classiﬁ er  (decision  trees  or  decision  rules) 
divides the space into regions. Each region is labeled with a corresponding class. An 
unseen testing sample is then classiﬁ ed by determining the region into which the given 
point falls. Decision trees are constructed by successive reﬁ nement, splitting existing 
regions  into  smaller  ones  that  contain  highly  concentrated  points  of  one  class.  The 
number  of  training  cases  needed  to  construct  a  good  classiﬁ er  is  proportional  to  the 
number of regions. More complex classiﬁ cations require more regions that are described 

LIMITATIONS  OF  DECISION  TREES  AND  DECISION  RULES 

193

     Figure 6.13.      Approximation of non - orthogonal classiﬁ cation with hyperrectangles.  

with more rules and a tree with higher complexity. All that will require an additional 
number of training samples to obtain a successful classiﬁ cation. 

 A graphical representation of decision rules is given by orthogonal hyperplanes in 
an n - dimensional space. The regions for classiﬁ cation are hyperrectangles in the same 
space. If the problem at hand is such that the classiﬁ cation hyperplanes are not orthogo-
nal, but are deﬁ ned through a linear (or nonlinear) combination of attributes, such as 
the example in Figure 6 .13 , then that increases the complexity of a rule - based model. 
A logical approach based on decision rules tries to approximate non - orthogonal, and 
sometimes,  nonlinear  classiﬁ cation  with  hyperrectangles;  classiﬁ cation  becomes 
extremely complex with large number of rules and a still larger error.   

 A  possible  solution  to  this  problem  is  an  additional  iteration  of  the  data - mining 
process: Returning to the beginning of preprocessing phases, it is necessary to transform 
input features into new dimensions that are linear (or nonlinear) combinations of initial 
inputs. This transformation is based on some domain heuristics, and it requires empha-
sis with additional effort in data preparation; the reward is a simpler classiﬁ cation model 
with a lower error rate. 

 The other types of classiﬁ cation problems, where decision rules are not the appro-
priate tool for modeling, have classiﬁ cation criteria in the form: A given class is sup-
ported  if  n  out  of  m  conditions  are  present. To  represent  this  classiﬁ er  with  rules,  it 
would be necessary to deﬁ ne ( m  n ) regions only for one class. Medical diagnostic deci-
sions are a typical example of this kind of classiﬁ cation. If four out of 11 symptoms 
support diagnosis of a given disease, then the corresponding classiﬁ er will generate 330 
regions in an 11 - dimensional space for positive diagnosis only. That corresponds to 330 
decision rules. Therefore, a data - mining analyst has to be very careful in applying the 
orthogonal - classiﬁ cation  methodology  of  decision  rules  for  this  type  of  nonlinear 
problems. 

 Finally,  introducing  new  attributes  rather  than  removing  old  ones  can  avoid  the 
sometimes intensive fragmentation of the n - dimensional space by additional rules. Let 
us analyze a simple example. A classiﬁ cation problem is described by nine binary inputs 
{A 1 , A 2 ,    . . .    , A 9 }, and the output class C is speciﬁ ed by the logical relation

   (

A A A

2

1

∨

∨

)

3

∧

(

A A A

5

4

∨

∨

)

6

∧

(

A A A

∨ →   
C
)

∨

9

7

8

194 

DECISION  TREES  AND  DECISION  RULES

 The above expression can be rewritten in a conjunctive form:

∧
   ((A A A

∧

1

4

∨

(

)

7

A A A

5

1

∧

∧

)…
∨ →

)

C

7

and it will have 27 factors with only  ∧  operations. Every one of these factors is a region 
in a 9 - D space and corresponds to one rule. Taking into account regions for negative 
examples,  there  exist  about  50  leaves  in  the  decision  tree  (and  the  same  number  of 
rules) describing class C. If new attributes are introduced:

∨
   B A A A
1

∨

=

2

1

,  

3

   B A A A  and
5

,

4

2

6

∨

∨

=

∨
   B A A A
7

∨

=

8

3

9

 the description of class C will be simpliﬁ ed into the logical rule

∧
   B B
2
1

∧ →   
C

B
3

 It  is  possible  to  specify  the  correct  classiﬁ cation  using  a  decision  tree  with  only 
four leaves. In a new three - dimensional space (B 1 , B 2 , B 3 ) there will be only four deci-
sion  regions.  This  kind  of  simpliﬁ cation  via  constructive  induction  (development  of 
new attributes in the preprocessing phase) can be applied also in a case n - of - m attri-
butes ’  decision. If none of the previous transformations are found appropriate, the only 
way  to  deal  with  the  increased  fragmentation  of  an  n - dimensional  space  is  to  bring 
more data to bear on the problem.   

 6.8  

 REVIEW QUESTIONS AND PROBLEMS 

       1.     Explain the differences between the statistical and logical approaches in the con-

struction of a classiﬁ cation model.   

    2.     What  are  the  new  features  of  C4.5  algorithm  comparing  with  original  Quinlan ’ s 

ID3 algorithm for decision tree generation?   

    3.     Given a data set X with 3 - D categorical samples  :

   X:  

   Attribute1  

   Attribute2  

   Class  

  T  
  T  
  F  
  F  

  1  
  2  
  1  
  2  

  C2  
  C1  
  C2  
  C2  

 
 
  
    
    
    
    
    
REVIEW  QUESTIONS  AND  PROBLEMS 

195

 Construct  a  decision  tree  using  the  computation  steps  given  in  the  C4.5 
algorithm.   

    4.     Given a training data set Y:

   Y  

   A  

  15  
  20  
  25  
  30  
  35  
  25  
  15  
  20  

   B  

  1  
  3  
  2  
  4  
  2  
  4  
  2  
  3  

   C  

  A  
  B  
  A  
  A  
  B  
  A  
  B  
  B  

   Class  

  C 1   
  C 2   
  C 1   
  C 1   
  C 2   
  C 1   
  C 2   
  C 2   

 Find the best threshold (for the maximal gain) for AttributeA. 

    (a)      Find the best threshold (for the maximal gain) for AttributeB.  
  (b)      Find a decision tree for data set Y.  
  (c)      If the testing set is:

   A  

  10  
  20  
  30  
  40  
  15  

   B  

  2  
  1  
  3  
  2  
  1  

   C  

  A  
  B  
  A  
  B  
  B  

   Class  

  C 2   
  C 1   
  C 2   
  C 2   
  C 1   

 What is the percentage of correct classiﬁ cations using the decision tree developed in (c).  

  (d)      Derive decision rules from the decision tree.      

    5.     Use the C4.5 algorithm to build a decision tree for classifying the following objects:

   Class  

  A  
  A  
  A  
  A  
  B  
  B  
  B  
  B  
  B  

   Size  

  Small  
  Big  
  Big  
  Small  
  Small  
  Big  
  Big  
  Big  
  Small  

   Color  

  Yellow  
  Yellow  
  Red  
  Red  
  Black  
  Black  
  Yellow  
  Black  
  Yellow  

   Shape  

  Round  
  Round  
  Round  
  Round  
  Round  
  Cube  
  Cube  
  Round  
  Cube  

    
    
    
    
    
    
    
    
    
    
      
196 

DECISION  TREES  AND  DECISION  RULES

    6.     Given a training data set Y *  with missing values:

   Y * :  

   A  

  15  
  20  
  25  
    –    
  35  
  25  
  15  
  20  

   B  

  1  
  3  
  2  
  4  
  2  
  4  
  2  
  3  

   C  

  A  
  B  
  A  
  A  
   –   
  A  
  B  
  B  

   Class  

  C1  
  C2  
  C1  
  C1  
  C2  
  C1  
  C2  
  C2  

    (a)      Apply a modiﬁ ed C4.5 algorithm to construct a decision tree with the (T i /E) parameters 

explained in Section  7.3 .  

  (b)      Analyze the possibility of pruning the decision tree obtained in (a).  
  (c)      Generate decision rules for the solution in (a). Is it necessary to generate a default rule 

for this rule - based model?      

    7.     Why is postpruning in C4.5 deﬁ ned as pessimistic pruning?   

    8.     Suppose that two decision rules are generated with C4.5:

  Rule1:    (X    >    3)    ∧    (Y    ≥    2)    →    Class1 (9.6/0.4)  
  Rule2:    (X    >    3)    ∧    (Y    <    2)    →    Class2 (2.4/2.0).  

 Analyze if it is possible to generalize these rules into one using conﬁ dence limit 
U 25%  for the binomial distribution.   

    9.     Discuss the complexity of the algorithm for optimal splitting of numeric attributes 

into more than two intervals.   

    10.     In real - world data - mining applications, a ﬁ nal model consists of extremely large 
number  of  decision  rules.  Discuss  the  potential  actions  and  analyses  you  should 
perform to reduce the complexity of the model.   

    11.     Search the Web to ﬁ nd the basic characteristics of publicly available or commercial 
software  tools  for  generating  decision  rules  and  decision  trees.  Document  the 
results of your search.   

    12.     Consider  a  binary  classiﬁ cation  problem  (output  attribute  value    =    {Low,  High}) 

with the following set of input attributes and attribute values:
    (cid:127)       Air Conditioner    =    {Working, Broken}  
   (cid:127)       Engine    =    {Good, Bad}  
   (cid:127)       Mileage    =    {High, Medium, Low}  
   (cid:127)       Rust    =    {Yes, No}    

 Suppose a rule - based classiﬁ er produces the following rule set:

    
    
    
    
    
    
    
    
    
    
REVIEW  QUESTIONS  AND  PROBLEMS 

197

    Mileage      =      High      −  →      Value      =      Low   
   Mileage      =      Low      −  →      Value      =      High   
   Air Conditioner      =      Working and Engine      =      Good      −  →      Value      =      High   
   Air Conditioner      =      Working and Engine      =      Bad      −  →      Value      =      Low   
   Air Conditioner      =      Broken      −  →      Value      =      Low  
   (a)      Are the rules mutually exclusive? Explain your answer.  
  (b)      Is the rule set exhaustive (covering each possible case)? Explain your answer.  
  (c)      Is ordering needed for this set of rules? Explain your answer.  
  (d)      Do you need a default class for the rule set? Explain your answer.        

    13.     Of the following algorithms:

    (cid:127)       C4.5  
   (cid:127)       K - Nearest Neighbor  
   (cid:127)       Na ï ve Bayes  
   (cid:127)       Linear Regression 

   (a)      Which are fast in training but slow in classiﬁ cation?  
  (b)      Which one produces classiﬁ cation rules?  
  (c)      Which one requires discretization of continuous attributes before application?  
  (d)      Which model is the most complex?        

    14.        (a)      How much information is involved in choosing one of eight items, assuming 

that they have an equal frequency?  

  (b)      One of 16 items?      

    15.     The following data set will be used to learn a decision tree for predicting whether 

a mushroom is edible or not based on its shape, color, and odor. 

   Shape  

   Color  

   Odor  

   Edible  

  C  
  D  
  D  
  D  
  C  
  D  
  D  
  C  
  C  
  C  
  D  

  B  
  B  
  W  
  W  
  B  
  B  
  G  
  U  
  B  
  W  
  W  

  1  
  1  
  1  
  2  
  2  
  2  
  2  
  2  
  3  
  3  
  3  

  Yes  
  Yes  
  Yes  
  Yes  
  Yes  
  No  
  No  
  No  
  No  
  No  
  No  

    (a)      What is entropy H(Edible|Odor    =    1 or Odor    =    3)?  
  (b)      Which attribute would the C4.5 algorithm choose to use for the root of the tree?  
  (c)      Draw the full decision tree that would be learned for this data (no pruning).  
  (d)      Suppose  we  have  a  validation  set  as  follows.  What  will  be  the  training  set  error  and 
validation  set  error  of  the  tree?  Express  your  answer  as  the  number  of  examples  that 
would be misclassiﬁ ed.

     
           
198 

DECISION  TREES  AND  DECISION  RULES

   Shape  

   Color  

   Odor  

   Edible  

  C  
  D  
  C  

  B  
  B  
  W  

  2  
  2  
  2  

  No  
  No  
  Yes  

  6.9  

 REFERENCES FOR FURTHER STUDY 

    Dzeroski ,  S.  ,   N.   Lavrac  , eds.,  Relational Data Mining ,  Springer - Verlag ,  Berlin, Germany ,  2001 .  
  Relational data mining has its roots in inductive logic programming, an area in the intersection 
of machine learning and programming languages. The book provides a thorough overview of 
different techniques and strategies used in knowledge discovery from multi - relational data. 
The chapters describe a broad selection of practical, inductive - logic programming approaches 
to relational data mining, and give a good overview of several interesting applications.  
    Kralj  Novak ,   P.  ,    N.    Lavrac  ,    G.  L.    Webb  ,   Supervised  Descriptive  Rule  Discovery: A  Unifying 
Survey of Contrast Set, Emerging Pattern and Subgroup Mining ,  Journal of Machine Learning 
Research , Vol.  10 ,  2009 , p.  377  –  403 .  
  This paper gives a survey of contrast set mining (CSM), emerging pattern mining (EPM), and 
subgroup discovery (SD) in a unifying framework named  supervised descriptive rule discov-
ery . While all these research areas aim at discovering patterns in the form of rules induced 
from labeled data, they use different terminology and task deﬁ nitions, claim to have different 
goals,  claim  to  use  different  rule  learning  heuristics,  and  use  different  means  for  selecting 
subsets of induced patterns. This paper contributes a novel understanding of these subareas 
of  data  mining  by  presenting  a  uniﬁ ed  terminology,  by  explaining  the  apparent  differences 
between the learning tasks as variants of a unique supervised descriptive rule discovery task 
and by exploring the apparent differences between the approaches.  
    Mitchell ,  T.  ,  Machine Learning ,  McGraw Hill ,  New York, NY ,  1997 .  

  This is one of the most comprehensive books on machine learning. Systematic explanations 
of all methods and a large number of examples for all topics are the main strengths of the 
book.  Inductive  machine - learning  techniques  are  only  a  part  of  the  book,  but  for  a  deeper 
understanding of current data - mining technology and newly developed techniques, it is very 
useful to get a global overview of all approaches in machine learning.  

    Quinlan ,  J. R.  ,  C4.5: Programs for Machine Learning ,  Morgan Kaufmann ,  San Mateo, CA ,  1992 .  
  The  book  outlines  the  C4.5  algorithm  step  by  step,  with  detailed  explanations  and  many 
illustrative examples. The second part of the book is taken up by the source listing of the C 
program that makes up the C4.5 system. The explanations in the book are intended to give a 
broad - brush view of C4.5 inductive learning with many small heuristics, leaving the detailed 
discussion to the code itself.  

    Russell ,  S.  ,   P.   Norvig  ,  Artiﬁ cial Intelligence: A Modern Approach ,  Prentice Hall ,  Upper Saddle 

River, NJ ,  1995 .  
  The book gives a uniﬁ ed presentation of the artiﬁ cial intelligence ﬁ eld using an agent - based 
approach.  Equal  emphasis  is  given  to  theory  and  practice.  An  understanding  of  the  basic 
concepts in artiﬁ cial intelligence (AI), including an approach to inductive machine learning, 
is obtained through layered explanations and agent - based implementations of algorithms.   

 
 
  7 

ARTIFICIAL NEURAL NETWORKS     

  Chapter Objectives 

     (cid:127)       Identify  the  basic  components  of  artiﬁ cial  neural  networks  (ANNs)  and  their 

properties and capabilities.  

   (cid:127)       Describe common learning tasks such as pattern association, pattern recognition, 

approximation, control, and ﬁ ltering that are performed by ANNs.  

   (cid:127)       Compare  different  ANN  architecture  such  as  feedforward  and  recurrent  net-

works, and discuss their applications.  

   (cid:127)       Explain the learning process at the level of an artiﬁ cial neuron, and its extension 

for multiplayer, feedforward - neural networks.  

   (cid:127)       Compare the learning processes and the learning tasks of competitive networks 

and feedforward networks.  

   (cid:127)       Present the basic principles of Kohonen maps and their applications.  
   (cid:127)       Discuss the requirements for good generalizations with ANNs based on heuristic 

parameter tuning.     

    Work on ANNs has been motivated by the recognition that the human brain com-
putes in an entirely different way from the conventional digital computer. It was a great 

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

199

 
200 

ARTIFICIAL  NEURAL  NETWORKS

challenge for many researchers in different disciplines to model the brain ’ s computa-
tional  processes. The  brain  is  a  highly  complex,  nonlinear,  and  parallel  information -
 processing  system.  It  has  the  capability  to  organize  its  components  and  to  perform 
certain computations with a higher quality and many times faster than the fastest com-
puter in existence today. Examples of these processes are pattern recognition, percep-
tion,  and  motor  control. ANNs  have  been  studied  for  more  than  four  decades  since 
Rosenblatt  ﬁ rst  applied  the   single - layer  perceptrons   to  pattern - classiﬁ cation  learning 
in the late 1950s. 

 An ANN is an abstract computational model of the human brain. The human brain 
has an estimated 10 11  tiny units called neurons. These neurons are interconnected with 
an estimated 10 15  links. Similar to the brain, an ANN is composed of artiﬁ cial neurons 
(or processing units) and interconnections. When we view such a network as a graph, 
neurons  can  be  represented  as  nodes  (or  vertices)  and  interconnections  as  edges. 
Although the term ANN is most commonly used, other names include  “ neural network, ”  
parallel  distributed  processing  (PDP)  system,  connectionist  model,  and  distributed 
adaptive system. ANNs are also referred to in the literature as neurocomputers. 

 A  neural  network,  as  the  name  indicates,  is  a  network  structure  consisting  of  a 
number of nodes connected through directional links. Each node represents a processing 
unit,  and  the  links  between  nodes  specify  the  causal  relationship  between  connected 
nodes. All nodes are adaptive, which means that the outputs of these nodes depend on 
modiﬁ able parameters pertaining to these nodes. Although there are several deﬁ nitions 
and several approaches to the ANN concept, we may accept the following deﬁ nition, 
which views the ANN as a formalized adaptive machine:

   An ANN is a massive parallel distributed processor made up of simple processing units. 
It has the ability to learn experiential knowledge expressed through interunit connec-
tion strengths, and can make such knowledge available for use.    

 It is apparent that an ANN derives its computing power through, ﬁ rst, its massive 
parallel distributed structure and, second, its ability to learn and therefore to generalize. 
Generalization  refers  to  the  ANN  producing  reasonable  outputs  for  new  inputs  not 
encountered during a learning process. The use of ANNs offers several useful properties 
and capabilities:

   1.      Nonlinearity .       An artiﬁ cial neuron as a basic unit can be a linear - or nonlinear -
 processing element, but the entire ANN is highly nonlinear. It is a special kind 
of nonlinearity in the sense that it is distributed throughout the network. This 
characteristic is especially important, for ANN models the inherently nonlinear 
real - world mechanisms responsible for generating data for learning.  

  2.      Learning  from  Examples .       An  ANN  modiﬁ es  its  interconnection  weights  by 
applying  a  set  of  training  or  learning  samples. The  ﬁ nal  effects  of  a  learning 
process  are  tuned  parameters  of  a  network  (the  parameters  are  distributed 
through  the  main  components  of  the  established  model),  and  they  represent 
implicitly stored knowledge for the problem at hand.  

  3.      Adaptivity .       An  ANN  has  a  built - in  capability  to  adapt  its  interconnection 
weights  to  changes  in  the  surrounding  environment.  In  particular,  an  ANN 

MODEL  OF  AN  ARTIFICIAL  NEURON 

201

trained to operate in a speciﬁ c environment can be easily retrained to deal with 
changes  in  its  environmental  conditions.  Moreover,  when  it  is  operating  in  a 
nonstationary environment, an ANN can be designed to adopt its parameters in 
real time.  

  4.      Evidential  Response .       In  the  context  of  data  classiﬁ cation,  an  ANN  can  be 
designed to provide information not only about which particular class to select 
for a given sample, but also about conﬁ dence in the decision made. This latter 
information  may  be  used  to  reject  ambiguous  data,  should  they  arise,  and 
thereby  improve  the  classiﬁ cation  performance  or  performances  of  the  other 
tasks modeled by the network.  

  5.      Fault Tolerance .       An ANN has the potential to be inherently fault - tolerant, or 
capable  of  robust  computation.  Its  performances  do  not  degrade  signiﬁ cantly 
under adverse operating conditions such as disconnection of neurons, and noisy 
or missing data. There is some empirical evidence for robust computation, but 
usually it is uncontrolled.  

  6.      Uniformity  of  Analysis  and  Design .       Basically,  ANNs  enjoy  universality  as 
information processors. The same principles, notation, and steps in methodol-
ogy are used in all domains involving application of ANNs.    

 To explain a classiﬁ cation of different types of ANNs and their basic principles it 
is necessary to introduce an elementary component of every ANN. This simple process-
ing unit is called an artiﬁ cial neuron.  

   7.1  

  MODEL OF AN ARTIFICIAL NEURON 

 An artiﬁ cial neuron is an information - processing unit that is fundamental to the opera-
tion of an ANN. The block diagram (Fig.  7.1 ), which is a model of an artiﬁ cial neuron, 
shows that it consists of three basic elements:

   1.       A set of connecting links  from different inputs x i  (or synapses), each of which 
is characterized by a weight or strength w ki . The ﬁ rst index refers to the neuron 
in question and the second index refers to the input of the synapse to which the 
weight refers. In general, the weights of an artiﬁ cial neuron may lie in a range 
that includes negative as well as positive values.    

  2.       An adder  for summing the input signals x i  weighted by the respective synaptic 
strengths w ki . The operation described here constitutes a linear combiner.  
  3.       An activation function  f for limiting the amplitude of the output y k  of a neuron.    

 The model of the neuron given in Figure 7 .1  also includes an externally applied 
bias, denoted by b k . The bias has the effect of increasing or lowering the net input of 
the activation function, depending on whether it is positive or negative. 

 In mathematical terms, an artiﬁ cial neuron is an abstract model of a natural neuron, 
and its processing capabilities are formalized using the following notation. First, there 

202 

ARTIFICIAL  NEURAL  NETWORKS

wk1

wk2

wkm

x1

x2

xm

kth artificial neuron

net

f(net)

yk

Σ

bk

     Figure 7.1.      Model of an artiﬁ cial neuron.  

are several inputs x i , i    =    1,    . . .    , m. Each input x i  is multiplied by the corresponding 
weight w ki  where k is the index of a given neuron in an ANN. The weights simulate 
the biological synaptic strengths in a natural neuron. The weighted sum of products x i  
w ki  for i    =    1,    . . .    , m is usually denoted as  net  in the ANN literature  :

   netk

=

x w
1

k

1

+

x w
2

k

2 …
+

+

x w
m

km

+

b

k

 Using adopted notation for w k0     =    b k  and default input x 0     =    1, a new uniform version 

of net summation will be

   net

k

=

x w
0

k

0

+

x w
1

k

1

+

x w
2

k

2

+

…

+

x w
m

km

=

m

∑

=

i

0

x w
i

ki

 The  same  sum  can  be  expressed  in  vector  notation  as  a  scalar  product  of  two 

m - dimensional vectors:

   net

k = ⋅

X W

where

    =    {x 0 , x 1 , x 2 ,    . . .    , x m }  
  X   
 W        =    {w k0 , w k1 , w k2 ,    . . .    , w km }    
 Finally,  an  artiﬁ cial  neuron  computes  the  output  y k   as  a  certain  function  of   net k   

value:

   y

k

= (
f

net

)

k

 The function f is called the activation function. Various forms of activation func-
tions can be deﬁ ned. Some commonly used activation functions are given in Table  7.1 .   
 Now, when we introduce the basic components of an artiﬁ cial neuron and its func-
tionality, we can analyze all the processing phases in a single neuron. For example, for 
the  neuron  with  three  inputs  and  one  output,  the  corresponding  input  values,  weight 
factors, and bias are given in Figure 7 .2 a. It is necessary to ﬁ nd the output y for different 
activation functions such as symmetrical hard limit, saturating linear, and log - sigmoid.

  
  
 
  
  TABLE 7.1.     A Neuron ’ s Common Activation Functions 

   Activation Function  

   Input/Output Relation  

   Graph  

  Hard limit  

=

    y


1



0

if net

if net

≥

<

0

0

  Symmetrical hard limit  

=

    y


1

−

1

if net

if net

≥

<

0

0

  Linear  

=

net

    y

  Saturating linear  

  Symmetric saturating linear  

=

    y


1


net



0

=

    y


1


net

−

1

>

1
net
<

0

≤

1

if net
≤

0
if net

if

if net

>

1
net
< −
1

if

− ≤
1
if net

  Log - sigmoid  

=

    y

1
+ −
e net

1

  Hyperbolic tangent sigmoid  

=

    y

net

net

e
e

−

net

−

net

−
+

e
e

≤

1

203

  
    
  
  
    
  
  
    
  
  
    
  
  
    
  
  
    
  
  
    
  
204 

ARTIFICIAL  NEURAL  NETWORKS

x1  =  0.5

x2  =  0.5

x3  =  0.2

0.3

0.2

0.5

fΣ

y

x1  =  1.0

0.2

1
−0.6

0.5

y1

1.0

−0.5

y3

3

b  =  −0.2

(a)

x2  =  0.5

−1.0

2

y2

(b)

     Figure 7.2.      Examples of artiﬁ cial neurons and their interconnections. (a) A single node; (b) 
three interconnected nodes.  

   1.      Symmetrical hard limit   

    net =

⋅
.
0 5 0 3 0 5 0 2 0 2 0 5

+

+

.

.

.

⋅

.

.

⋅

+ −
(

⋅ =
0 2 1 0 15

. )

.

=

    y

(
f net

)

=

f

0 15
( .
)

=

1    

  2.      Saturating linear 

    net

= 0 15
.

(
  computation is the same as for case 

)   
1

=

    y

(
f net

)

=

f

0 15
( .
)

=

0 15    
.

  3.      Log - sigmoid 

    net

= 0 15
.
=

    y

(
  computation is the same as for case 

)   
1

f net
(

=

)

f

0 15
( .
)

=

1 1
/(

+

e

−

0 15
.

=

)

0 54
.

 The  basic  principles  of  computation  for  one  node  may  be  extended  for  an ANN 
with several nodes even if they are in different layers, as given in Figure 7 .2 b. Suppose 
that for the given conﬁ guration of three nodes all bias values are equal to 0 and activa-
tion functions for all nodes are symmetric saturating linear. What is the ﬁ nal output y 3  
from the node 3? 

 The processing of input data is layered. In the ﬁ rst step, the neural network per-

forms the computation for nodes 1 and 2 that are in the ﬁ rst layer:

   net

1

=

1 0 2 0 5 0 5 0 45

.

.

.

.

+

=

⇒ =
y
1

f

)
0 45
( .

=

.
0 45

   net

2

=

1

(

−

. )
0 6

+

.
0 5

(

− = − ⇒ = −

.
1 1

f

(

. )
1 1

)
1

y

2

= −
1

 Outputs  y 1   and  y 2   from  the  ﬁ rst - layer  nodes  are  inputs  for  node  3  in  the  second 

layer:

   net

3

=

y
1

⋅ +
1

y

2

⋅ −
(

. )
0 5

=

0 45 1

⋅ + − ⋅ −
) (
1

(

.

. )
0 5

=

0

.
95

⇒ =
y
3

f

)
0 95
( .

=

. 55   
0 9

  
     
 
  
ARCHITECTURES  OF  ANNS 

205

 As we can see from the previous examples, the processing steps at the node level 
are very simple. In highly connected networks of artiﬁ cial neurons, computational tasks 
are multiplied with an increase in the number of nodes. The complexity of processing 
depends on the ANN architecture.  

   7.2  

  ARCHITECTURES OF  ANN  S  

 The architecture of an ANN is deﬁ ned by the characteristics of a node and the charac-
teristics of the node ’ s connectivity in the network. The basic characteristics of a single 
node have been given in a previous section and in this section the parameters of con-
nectivity will be introduced. Typically, network architecture is speciﬁ ed by the number 
of inputs to the network, the number of outputs, the total number of elementary nodes 
that are usually equal processing elements for the entire network, and their organization 
and interconnections. Neural networks are generally classiﬁ ed into two categories on 
the basis of the type of interconnections:  feedforward  and  recurrent . 

 The network is  feedforward  if the processing propagates from the input side to the 
output side unanimously, without any loops or feedbacks. In a layered representation 
of the feedforward neural network, there are no links between nodes in the same layer; 
outputs of nodes in a speciﬁ c layer are always connected as inputs to nodes in succeed-
ing layers. This representation is preferred because of its modularity, that is, nodes in 
the  same  layer  have  the  same  functionality  or  generate  the  same  level  of  abstraction 
about input vectors. If there is a feedback link that forms a circular path in a network 
(usually  with  a  delay  element  as  a  synchronization  component),  then  the  network  is 
 recurrent . Examples of ANNs belonging to both classes are given in Figure 7 .3 .   

 Although  many  neural - network  models  have  been  proposed  in  both  classes,  the 
multilayer  feedforward  network  with  a  backpropagation - learning  mechanism  is  the 
most  widely  used  model  in  terms  of  practical  applications.  Probably  over  90%  of 

Inputs

Hidden
layer 1

Hidden
layer 2

Output
layer

Inputs

Delay

x1

x2

xn

y1

Outputs

y2

x1

x2

xn

y1

Outputs

y2

(a)

(b)

     Figure 7.3.      Typical architectures of artiﬁ cial neural networks. (a) Feedforward network; (b) 
recurrent network.  

206 

ARTIFICIAL  NEURAL  NETWORKS

commercial  and  industrial  applications  are  based  on  this  model.  Why  multilayered 
networks? A  simple  example  will  show  the  basic  differences  in  application  require-
ments between single - layer and multilayer networks. 

 The simplest and well - known classiﬁ cation problem, very often used as an illustra-
tion in the neural - network literature, is the exclusive - OR (XOR) problem. The task is 
to classify a binary input vector X to class 0 if the vector has an even number of 1 ’ s 
or otherwise assign it to class 1. The XOR problem is not linearly separable; this can 
easily be observed from the plot in Figure 7 .4  for a two - dimensional (2 - D) input vector 
X    =    {x 1 ,  x 2 }. There  is  no  possibility  of  obtaining  a  single  linear  separation  of  points 
that belong to different classes. In other words, we cannot use a single - layer network 
to  construct  a  straight  line  (in  general,  it  is  a  linear  hyperplane  in  an  n - dimensional 
space) to partition the 2 - D input space into two regions, each containing data points of 
only the same class. It is possible to solve the problem with a two - layer network, as 
illustrated in Figure 7 .5 , in which one possible solution for the connection weights and 

x2

1

0

0

?

− class 1

− class 2

1

x1

     Figure 7.4.      XOR problem.  

x1

x2

+2.0

−1.0

−1.0

+2.0

−1.5

3

y

+1.0

+1.0

−1.0

1

2

+1.5

     Figure 7.5.      XOR solution: the two - layer ANN with the hard - limit activation function.  

LEARNING  PROCESS 

207

thresholds  is  indicated.  This  network  generates  a  nonlinear  separation  of  points  in  a 
2 - D space.   

 The basic conclusion from this example is that single - layered ANNs are a conve-
nient modeling tool only for relatively simple problems that are based on linear models. 
For  most  real - world  problems,  where  models  are  highly  nonlinear,  multilayered  net-
works are better and maybe the only solution.  

   7.3  

  LEARNING PROCESS 

 A major task for an ANN is to learn a model of the world (environment) in which it is 
embedded and to maintain the model sufﬁ ciently consistent with the real world so as 
to  achieve  the  speciﬁ ed  goals  of  the  concerned  application.  The  learning  process  is 
based  on  data  samples  from  the  real  world,  and  here  lies  a  fundamental  difference 
between the design of an ANN and a classical information - processing system. In the 
latter case, we usually proceed by ﬁ rst formulating a mathematical model of environ-
mental observations, validating the model with real data, and then building (program-
ming) the system on the basis of the model. In contrast, the design of an ANN is based 
directly on real - life data, with the data set being permitted to  “ speak for itself. ”  Thus, 
an ANN not only provides the implicit model formed through the learning process, but 
also performs the information - processing function of interest. 

 The property that is of primary signiﬁ cance for an ANN is the ability of the network 
to learn from its environment based on real - life examples, and to improve its perfor-
mance through that learning process. An ANN learns about its environment through an 
interactive process of adjustments applied to its connection weights. Ideally, the network 
becomes more knowledgeable about its environment after each iteration in the learning 
process. It is very difﬁ cult to agree on a precise deﬁ nition of the term learning. In the 
context of ANNs one possible deﬁ nition of inductive learning is as follows:

   Learning is a process by which the free parameters of a neural network are adapted 
through a process of stimulation by the environment in which the network is embedded. 
The type of learning is determined by the manner in which the parameters change.    

 A  prescribed  set  of  well - deﬁ ned  rules  for  the  solution  of  a  learning  problem  is 
called a learning algorithm. Basically, learning algorithms differ from each other in the 
way in which the adjustment of the weights is formulated. Another factor to be con-
sidered  in  the  learning  process  is  the  manner  in  which ANN  architecture  (nodes  and 
connections) is built. 

 To illustrate one of the learning rules, consider the simple case of a neuron k, shown 
in  Figure  7 .1 ,  constituting  the  only  computational  node  of  the  network.  Neuron   k   is 
driven by input vector X( n ), where  n  denotes discrete time, or, more precisely, the time 
step  of  the  iterative  process  involved  in  adjusting  the  input  weights  w ki .  Every  data 
sample  for ANN  training  (learning)  consists  of  the  input  vector  X( n )  and  the  corre-
sponding output d( n ). 

     
208 

ARTIFICIAL  NEURAL  NETWORKS

   Inputs  

   Output  

  Sample k   

  x k1 , x k2 ,    . . .    , x km   

  d k   

 Processing the input vector X( n ), a neuron k produces the output that is denoted 

by y k ( n ):

   y

k

=

f





m

∑

=
1

i

x w
i

ki





 It  represents  the  only  output  of  this  simple  network,  and  it  is  compared  with  a 
desired response or target output d k ( n ) given in the sample. An error e k ( n ) produced at 
the output is by deﬁ nition

   e

k

n
( )

=

d

k

n
( )

−

y

k

n
( )

 The error signal produced actuates a control mechanism of the learning algorithm, 
the  purpose  of  which  is  to  apply  a  sequence  of  corrective  adjustments  to  the  input 
weights of a neuron. The corrective adjustments are designed to make the output signal 
y k ( n ) come closer to the desired response d k ( n ) in a step - by - step manner. This objective 
is  achieved  by  minimizing  a  cost  function  E( n ),  which  is  the  instantaneous  value  of 
error energy, deﬁ ned for this simple example in terms of the error e k ( n ):

   E

n
( )

= 1

2
ek

n
( )

2

 The learning process based on a minimization of the cost function is referred to as 
 error - correction learning . In particular, minimization of E( n ) leads to a learning rule 
commonly referred to as the  delta rule  or Widrow - Hoff rule. Let w kj ( n ) denote the value 
of the weight factor for neuron  k  excited by input x j ( n ) at time step  n . According to the 
delta rule, the adjustment  Δ w kj ( n ) is deﬁ ned by

   ∆w

n
( )

kj

= ⋅η

e

k

n
( )

x

n
( )

j

where  η  is a positive constant that determines the rate of learning. Therefore, the delta 
rule may be stated as: The adjustment made to a weight factor of an input neuron con-
nection  is  proportional  to  the  product  of  the  error  signal  and  the  input  value  of  the 
connection in question. 

 Having computed the adjustment  Δ w kj ( n ), the updated value of synaptic weight is 

determined by

   w

kj

n

(

+ =
1
)

w

kj

n
( )

+

∆

w

n
( )

kj

 In effect, w kj ( n ) and w kj ( n     +    1) may be viewed as the old and new values of synaptic 
weight w kj , respectively. From Figure 7 .6  we recognize that error - correction learning 
is an example of a closed - loop feedback system. Control theory explains that the stabil-
ity  of  such  a  system  is  determined  by  those  parameters  that  constitute  the  feedback 

  
  
  
 
  
     
LEARNING  PROCESS 

209

x1(n)

x2(n)

wk1

wk2

fΣ

yk(n)

−

+

Σ

dk(n)

xm(n)

wkm

Corrections

     Figure 7.6.      Error - correction learning performed through weights adjustments.  

x1

x2

x3

0.5

−0.3

0.8

Σ

f

y

b = 0.0

(a)

n (sample)

1

2

3

x1

1.0

−1.0

0.3

x3

0.5

−0.5

−0.3

d

0.7

0.2

0.5

x2

1

0.7

0.3

(b)

     Figure  7.7.      Initialization  of  the  error  correction - learning  process  for  a  single  neuron.  (a) 
Artiﬁ cial neuron with the feedback; (b) training data set for a learning process.  

loop. One of those parameters of particular interest is the learning rate  η . This parameter 
has to be carefully selected to ensure that the stability of convergence of the iterative -
 learning process is achieved. Therefore, in practice, this parameter plays a key role in 
determining the performance of error - correction learning.   

 Let us analyze one simple example of the learning process performed on a single 
artiﬁ cial neuron in Figure 7 .7 a, with a set of the three training (or learning) examples 
given in Figure 7 .7 b.   

 The process of adjusting the weight factors for a given neuron will be performed 
with the learning rate  η     =    0.1. The bias value for the neuron is equal 0, and the activa-
tion  function  is  linear. The  ﬁ rst  iteration  of  a  learning  process,  and  only  for  the  ﬁ rst 
training example, is performed with the following steps:

net

1
( )

=

0 5 1
.

⋅ + −

(

0 3 1 0 8 0 5 0 6
. )
.
.

.

⋅ +

=

⋅

⇓

y

1
( )

=

(
f net

1
( ))

=

f

0 6
( . ))

= ..
6
0

e

1
( )

=

d

1
( )

−

y

1
( )

⇓

=

−
0 7 0 6
.
.
⇓

=

0 1
.

∆

w
1

1
( )

=

0 1 0 1 1 0 01
.

.

.

⋅ =

⋅

⇒

w
1

2
( )

==

w
1

( )
1

+

∆

w
1

( )
1

=

.
0 5 0 01 0 51

.

.

=

+

   
 
210 

ARTIFICIAL  NEURAL  NETWORKS

  TABL E 7.2.     Adjustment of Weight Factors 
with Training Examples in Figure 7 .7 b 

   Parameter  

  x 1   
  x 2   
  x 3   
  y  
  d  
  e  
   Δ w 1 ( n )  
   Δ w 2 ( n )  
   Δ w 3 ( n )  
  w1( n     +    1)  
  w2( n     +    1)  
  w3( n     +    1)  

    n     =    2  

   − 1  
  0.7  
   − 0.5  
   − 1.1555  
  0.2  
  1.3555  
   − 0.14  
  0.098  
   − 0.07  
  0.37  
   − 0.19  
  0.735  

    n     =    3  

  0.3  
  0.3  
   − 0.3  
   − 0.18  
  0.5  
  0.68  
  0.02  
  0.02  
   − 0.02  
  0.39  
   − 0.17  
  0.715  

   ∆

w

( )
1

2

=

⋅ =
0 1 0 1 1 0 01

.

.

.

⋅

⇒

w

2

( )
2

=

w

2

( )
1

+

∆

( )
1

= −

+
0 3 0 01

.

.

= −

.
0 29

   ∆

w

( )
1

3

=

.
0 1 0 1 0 5
.

.

⋅

⋅

=

.
0 005

⇒

w

3

( )
2

=

w

3

( )
1

+

w

( )
1

3

=

0 8 0 005

.

.

+

=

.
0 80

55   

w2
∆

 Similarly, it is possible to continue with the second and third examples ( n     =    2 and 
 n     =    3). The results of the learning corrections  Δ w together with new weight factors w 
are given in Table  7.2 .   

 Error - correction learning can be applied on much more complex ANN architecture, 
and its implementation is discussed in Section  7.5 , where the basic principles of mul-
tilayer  feedforward  ANNs  with  backpropagation  are  introduced.  This  example  only 
shows how weight factors change with every training (learning) sample. We gave the 
results only for the ﬁ rst iteration. The weight - correction process will continue either by 
using new training samples or by using the same data samples in the next iterations. 
As  to  when  to  ﬁ nish  the  iterative  process  is  deﬁ ned  by  a  special  parameter  or  set  of 
parameters called  stopping criteria . A learning algorithm may have different stopping 
criteria, such as the maximum number of iterations, or the threshold level of the weight 
factor  may  change  in  two  consecutive  iterations.  This  parameter  of  learning  is  very 
important for ﬁ nal learning results and it will be discussed in later sections.  

   7.4  

  LEARNING TASKS USING  ANN  S  

 The choice of a particular learning algorithm is inﬂ uenced by the learning task that an 
ANN is required to perform. We identify six basic learning tasks that apply to the use 
of  different ANNs.  These  tasks  are  subtypes  of  general  learning  tasks  introduced  in 
Chapter  4 . 

 
LEARNING  TASKS  USING  ANNS 

211

   7.4.1  

  Pattern Association 

 Association has been known to be a prominent feature of human memory since Aristotle, 
and all models of cognition use association in one form or another as the basic opera-
tion.  Association  takes  one  of  two  forms:   autoassociation   or   heteroassociation .  In 
 autoassociation , an ANN is required to store a set of patterns by repeatedly presenting 
them to the network. The network is subsequently presented with a partial description 
or a distorted, noisy version of an original pattern, and the task is to retrieve and recall 
that particular pattern.  Heteroassociation  differs from  autoassociation  in that an arbi-
trary  set  of  input  patterns  is  paired  with  another  arbitrary  set  of  output  patterns. 
 Autoassociation  involves the use of unsupervised learning, whereas  heteroassociation  
learning is supervised. For both,  autoassociation  and  heteroassociation , there are two 
main phases in the application of an ANN for pattern - association problems:

   1.      the storage phase, which refers to the training of the network in accordance with 

given patterns, and  

  2.      the recall phase, which involves the retrieval of a memorized pattern in response 
to the presentation of a noisy or distorted version of a key pattern to the network.     

   7.4.2  

  Pattern Recognition 

 Pattern recognition is also a task that is performed much better by humans than by the 
most  powerful  computers. We  receive  data  from  the  world  around  us  via  our  senses 
and  are  able  to  recognize  the  source  of  the  data.  We  are  often  able  to  do  so  almost 
immediately and with practically no effort. Humans perform pattern recognition through 
a learning process, so it is with ANNs. 

 Pattern recognition is formally deﬁ ned as the process whereby a received pattern 
is assigned to one of a prescribed number of classes. An ANN performs pattern recogni-
tion  by  ﬁ rst  undergoing  a  training  session,  during  which  the  network  is  repeatedly 
presented a set of input patterns along with the category to which each particular pattern 
belongs. Later, in a testing phase, a new pattern is presented to the network that it has 
not  seen  before,  but  which  belongs  to  the  same  population  of  patterns  used  during 
training. The network is able to identify the class of that particular pattern because of 
the information it has extracted from the training data. Graphically, patterns are repre-
sented by points in a multidimensional space. The entire space, which we call decision 
space, is divided into regions, each one of which is associated with a class. The decision 
boundaries are determined by the training process, and they are tested if a new, unclas-
siﬁ ed pattern is presented to the network. In essence, pattern recognition represents a 
standard classiﬁ cation task. 

  Function  Approximation.      Consider  a  nonlinear  input – output  mapping  des-

cribed by the functional relationship

   Y f X= (

)  

212 

ARTIFICIAL  NEURAL  NETWORKS

Reference
signal: d

+

Σ

−

Error
signal: e

ANN

Controller

Process
input: x

Process

Process
output: y

     Figure 7.8.      Block diagram of ANN - based feedback - control system.  

Feedback

where  the  vector  X  is  the  input  and  Y  is  the  output.  The  vector - value  function  f  is 
assumed  to  be  unknown. We  are  given  the  set  of  labeled  examples  {X i , Y i },  and  we 
have to design an ANN that approximates the unknown function f with a function F 
that is very close to original function. Formally:

F X
   | (

i

)

−

f X
(

)|

i

< ε

for all X  from the training set

i

where  ε  is a small positive number. Provided that the size of the training set is large 
enough and the network is equipped with an adequate number of free parameters, the 
approximation  error   ε   can  be  made  small  enough  for  the  task.  The  approximation 
problem described here is a perfect candidate for supervised learning.  

  Control      Control is another learning task that can be done by an ANN. Control is 
applied  to  a  process  or  a  critical  part  in  a  system,  which  has  to  be  maintained  in  a 
controlled condition. Consider the control system with feedback shown in Figure 7 .8 .   
 The system involves the use of feedback to control the output y on the level of a 
reference signal d supplied from the external source. A controller of the system can be 
realized in an ANN technology. The error signal e, which is the difference between the 
process output y and the reference value d, is applied to an ANN - based controller for 
the purpose of adjusting its free parameters. The primary objective of the controller is 
to supply appropriate inputs x to the process to make its output y track the reference 
signal d. It can be trained through:

   1.      Indirect Learning .       Using actual input – output measurements on the process, an 
ANN model of a control is ﬁ rst constructed ofﬂ ine. When the training is ﬁ n-
ished, the ANN controller may be included into the real - time loop.  

  2.      Direct Learning .       The training phase is online, with real - time data, and the ANN 
controller is enabled to learn the adjustments to its free parameters directly from 
the process.     

  Filtering      The  term  ﬁ lter  often  refers  to  a  device  or  algorithm  used  to  extract 
information about a particular quantity from a set of noisy data. Working with series 
of data in time domain, frequent domain, or other domains, we may use an ANN as a 
ﬁ lter to perform three basic information - processing tasks:

   1.      Filtering .       This  task  refers  to  the  extraction  of  information  about  a  particular 
quantity at discrete time  n  by using data measured up to and including time  n .  

 
MULTILAYER  PERCEPTRONS  (MLPs) 

213

x(n + n0)

x(n)

x(n-T)

x(n-2T)

x(n-mT)

Artificial
neural
network

x′(n + n0)

Predicted
value

−

Σ

+

x(n + n0)

Expected
value

Feedback for learning

     Figure 7.9.      Block diagram of an ANN - based prediction.  

  2.      Smoothing .       This  task  differs  from  ﬁ ltering  in  that  data  need  not  be  available 
only at time  n ; data measured later than time  n  can also be used to obtain the 
required information. This means that in smoothing there is a delay in producing 
the result at discrete time  n .  

  3.      Prediction .       The task of prediction is to forecast data in the future. The aim is 
to derive information about what the quantity of interest will be like at some 
time  n      +      n 0   in the future, for  n 0      >    0, by using data measured up to and including 
time  n . Prediction may be viewed as a form of model building in the sense that 
the  smaller  we  make  the  prediction  error,  the  better  the  network  serves  as  a 
model of the underlying physical process responsible for generating the data. 
The block diagram of an ANN for a prediction task is given in Figure 7 .9 .         

   7.5  

  MULTILAYER PERCEPTRONS ( MLP  s ) 

 Multilayer  feedforward  networks  are  one  of  the  most  important  and  most  popular 
classes of ANNs in real - world applications. Typically, the network consists of a set of 
inputs  that  constitute  the  input  layer  of  the  network,  one  or  more  hidden  layers  of 
computational nodes, and ﬁ nally an output layer of computational nodes. The process-
ing is in a forward direction on a layer - by - layer basis. This type of ANNs are commonly 
referred  to  as  MLPs,  which  represent  a  generalization  of  the  simple  perceptron,  a 
network with a single layer, considered earlier in this chapter. 

 A multiplayer perceptron has three distinctive characteristics:

   1.      The model of each neuron in the network includes usually a nonlinear activation 

function, sigmoidal or hyperbolic.  

  2.      The network contains one or more layers of hidden neurons that are not a part 
of the input or output of the network. These hidden nodes enable the network 

214 

ARTIFICIAL  NEURAL  NETWORKS

Input
signals
(stimulus)

Output
signals
(response)

Input
layer

First hidden
layer

Second hidden
layer

Output
layer

     Figure 7.10.      A graph of a multilayered - perceptron architecture with two hidden layers.  

to learn complex and highly nonlinear tasks by extracting progressively more 
meaningful features from the input patterns.  

  3.      The  network  exhibits  a  high  degree  of  connectivity  from  one  layer  to  the 

next one.    

 Figure 7 .10  shows the architectural graph of a multilayered perceptron with two 
hidden layers of nodes for processing and an output layer. The network shown here is 
fully connected. This means that the neuron in any layer of the network is connected 
to  all  the  nodes  (neurons)  in  the  previous  layer.  Data  ﬂ ow  through  the  network  pro-
gresses in a forward direction, from left to right and on a layer - by - layer basis.   

 MLPs have been applied successfully to solve some difﬁ cult and diverse problems 
by training the network in a supervised manner with a highly popular algorithm known 
as the  error backpropagation algorithm . This algorithm is based on the error - correction 
learning rule and it may be viewed as its generalization. Basically, error backpropaga-
tion  learning  consists  of  two  phases  performed  through  the  different  layers  of  the 
network: a forward pass and a backward pass. 

 In the forward pass, a training sample (input data vector) is applied to the input 
nodes  of  the  network,  and  its  effect  propagates  through  the  network  layer  by  layer. 
Finally, a set of outputs is produced as the actual response of the network. During the 
forward phase, the synaptic weights of the network are all ﬁ xed. During the backward 
phase,  on  the  other  hand,  the  weights  are  all  adjusted  in  accordance  with  an  error -
 correction  rule.  Speciﬁ cally,  the  actual  response  of  the  network  is  subtracted  from  a 
desired  (target)  response,  which  is  a  part  of  the  training  sample,  to  produce  an  error 
signal. This error signal is then propagated backward through the network, against the 
direction of synaptic connections. The synaptic weights are adjusted to make the actual 
response of the network closer to the desired response. 

 Formalization of the backpropagation algorithm starts with the assumption that an 
error signal exists at the output of a neuron j at iteration  n  (i.e., presentation of the  n th 
training sample). This error is deﬁ ned by

   e

j

n
( )

=

d

j

n
( )

−

n
( )

y

j

  
MULTILAYER  PERCEPTRONS  (MLPs) 

215

 We  deﬁ ne  the  instantaneous  value  of  the  error  energy  for  neuron  j  as  1/2  e j  2 ( n ). 
The  total  error  energy  for  the  entire  network  is  obtained  by  summing  instantaneous 
values  over  all  neurons  in  the  output  layer. These  are  the  only   “ visible ”   neurons  for 
which the error signal can be calculated directly. We may thus write

( )
   E n

=

∑1

2

2
e nj

( ),

∈
j C

where the set C includes all neurons in the output layer of the network. Let N denote 
the  total  number  of  samples  contained  in  the  training  set. The  average  squared  error 
energy is obtained by summing E( n ) over all  n  and then normalizing it with respect to 
size N, as shown by

N

∑1
N
/

=

   E

av

E n

( )   

=
1

n

 The average error energy E av  is a function of all the free parameters of the network. 
For a given training set, E av  represents the cost function as a measure of learning per-
formances. The objective of the learning process is to adjust the free parameters of the 
network to minimize E av . To do this minimization, the weights are updated on a sample -
 by - sample basis for one iteration, that is, one complete presentation of the entire train-
ing set of a network has been dealt with. 

 To obtain the minimization of the function E av , we have to use two additional rela-

tions for node - level processing, which have been explained earlier in this chapter:

( )
   v n
j

=

m

∑

=
1

i

( )
( )
w n x n

ji

i

and

( )
   y n
j

= ϕ

(

v n
j

( ))

where m is the number of inputs for j th  neuron. Also, we use the symbol v as a shorthand 
notation of the previously deﬁ ned variable  net . The backpropagation algorithm applies 
a correction  Δ w ji ( n ) to the synaptic weight w ji ( n ), which is proportional to the partial 
derivative  δ E( n )/ δ w ji ( n ). Using the chain rule for derivation, this partial derivative can 
be expressed as

   ∂
E

n
( ) /

∂
w

n
( )

= ∂

E

n
( ) /

∂
e

n
( )

⋅ ∂
e

n
( ) /

∂
y

n
( )

⋅ ∂
y

n
( ) /

∂
v

n
( )

⋅ ∂
v

n
(( ) /

∂w ji

n
( )

j

j

j

j

j

j

ji

 The partial derivative  δ E( n )/ δ wji( n ) represents a sensitive factor, determining the 

direction of search in weight space. Knowing that the next relations

   ∂
   ∂
e

E

n
( ) /

∂

e

n
( )

j

=

n
( ) (

e

j

from E

n
( )

=

2Σ
e
j

n
( ))

n
( ) /

∂
y

n
( )

j

j

= −

1  from e

(

n
( )

j

=

d

j

−

y

j

n  
( ))

1

2
n
( )

 
 
 
  
 
216 

ARTIFICIAL  NEURAL  NETWORKS

   ∂

j

n
( ) /
y
   ∂

v

j

∂

v

j

n
( )

ϕ
= ′

(v

j

n
( )) (

from y

n
( )

j

=

ϕ
[

v

j

n
( )))

n
( ) /

∂

w

ji

n
( )

=

x

i

n
( ) (

from  w

Σ

n
( )

n
( ))

x

i

ji

 are valid, we can express the partial derivative  ∂ E( n )/ ∂ w ji ( n ) in the form

   ∂
E

n
( ) /

∂
w

n
( )

ji

= −

n
( )

′
ϕ
(

v

e

j

n
( ))

j

n
( )

x

i

 The correction  Δ w ji ( n ) applied to w ji ( n ) is deﬁ ned by the delta rule

   ∆w

ji

n
( )

η
= − ⋅ ∂

E

n
( ) /

∂
w

n
( )

ji

η
= ⋅

n
( )

⋅

′
ϕ
(v

e

j

n
( ))

⋅

j

x

i

n
( )

where  η  is the learning - rate parameter of the backpropagation algorithm. The use of 
the  minus  sign  accounts  for  gradient  descent  in  weight  space,  that  is,  a  direction  for 
weight change that reduces the value E( n ). Asking for  φ  ′ (v j [ n ]) in the learning process 
is the best explanation for why we prefer continuous functions such as log - sigmoid and 
hyperbolic  as  a  standard - activation  function  at  the  node  level.  Using  the  notation 
 δ  j ( n )    =    e j ( n ) ·    ′ϕj
[ ])n ,  where   δ  j ( n )  is  the   local  gradient ,  the  ﬁ nal  equation  for  w ji ( n ) 
corrections is

jv(

   ∆w

ji

n
( )

= ⋅

η δ

n
( )

⋅

j

x

i

n
( )

 The  local  gradient   δ  j ( n )  points  to  the  required  changes  in  synaptic  weights. 
According to its deﬁ nition, the local gradient  δ  j ( n ) for output neuron j is equal to the 
product  of  the  corresponding  error  signal  e j ( n )  for  that  neuron  and  the  derivative 
 φ  ′ (v j [ n ]) of the associated activation function. 

 Derivative   φ  ′ (v j [ n ])  can  be  easily  computed  for  a  standard  activation  function, 
where differentiation is the only requirement for the function. If the activation function 
is sigmoid, it means that in the form

   y

j

n
( )

=

ϕ

(

v

j

n
( ))

=

1 1
/(

+ −−
(
e

vj

n
( )

)

)

 the ﬁ rst derivative is

    ′
ϕ (

v

n
[ ])

j

=

e

−

vj

n
( ))

(

1
/(

+

e

−

vj

n
( )

(

2

)

=

y

j

n
1
( )(

−

n
( ))

y

j

and a ﬁ nal weight correction is

   ∆w

ji

n
( )

η
= ⋅

n
( )

⋅

e

j

y

j

n
1
( )(

−

y

j

n
( ))

⋅

x

i

n
( )

 The ﬁ nal correction  Δ w ji ( n ) is proportional to the learning rate  η , the error value 
at this node is e j ( n ), and the corresponding input and output values are x i ( n ) and y j ( n ). 
Therefore,  the  process  of  computation  for  a  given  sample   n   is  relatively  simple  and 
straightforward. 

 If the activation function is a hyperbolic tangent, a similar computation will give 

the ﬁ nal value for the ﬁ rst derivative  φ  ′ (v j [ n ]):

    ′
ϕ (

v

n
[ ])

j

= −
(
1

⋅ +
n
[ ]) (
1

y

j

y

j

n
[ ])

 
  
  
 
  
  
 
  
 
MULTILAYER  PERCEPTRONS  (MLPs) 

217

and

   ∆w

ji

n
( )

η
= ⋅

e

j

⋅ −
n
1
( ) (

⋅ +
n
1
[ ]) (

y

j

n
[ ])

⋅

y

j

x

i

n
( )

 Again,  the  practical  computation  of   Δ w ji ( n )  is  very  simple  because  the  local -

 gradient derivatives depend only on the output value of the node y j ( n ). 

 In general, we may identify two different cases of computation for  Δ w ji ( n ), depend-
ing on where in the network neuron j is located. In the ﬁ rst case, neuron j is an output 
node. This case is simple to handle because each output node of the network is supplied 
with a desired response, making it a straightforward matter to calculate the associated 
error signal. All previously developed relations are valid for output nodes without any 
modiﬁ cations. 

 In the second case, neuron j is a hidden node. Even though hidden neurons are not 
directly  accessible,  they  share  responsibility  for  any  error  made  at  the  output  of 
the  network.  We  may  redeﬁ ne  the  local  gradient   δ  j ( n )  for  a  hidden  neuron  j  as  the 
product of the associated derivative  φ  ´ (v j [ n ]) and the weighted sum of the local gradi-
ents computed for the neurons in the next layer (hidden or output) that are connected 
to neuron j

δ

n
( )

j

= ′
ϕ
(

v

j

∑

n
( ))

δ

n
( )

k

⋅

w

kj

n
( ),

∈
k D

k

where D denotes the set of all nodes on the next layer that are connected to the node 
j. Going backward, all  δ  k ( n ) for the nodes in the next layer are known before computa-
tion of the local gradient  δ  j ( n ) for a given node on a layer closer to the inputs. 

 Let  us  analyze  once  more  the  application  of  the  backpropagation - learning  algo-
rithm with two distinct passes of computation that are distinguished for each training 
example. In the ﬁ rst pass, which is referred to as the forward pass, the function signals 
of the network are computed on a neuron - by - neuron basis, starting with the nodes on 
ﬁ rst hidden layer (the input layer is without computational nodes), then the second, and 
so on, until the computation is ﬁ nished with ﬁ nal output layer of nodes. In this pass, 
based on given input values of each learning sample, a network computes the corre-
sponding output. Synaptic weights remain unaltered during this pass. 

 The second, backward pass, on the other hand, starts at the output layer, passing 
the  error  signal  (the  difference  between  the  computed  and  the  desired  output  value) 
leftward through the network, layer by layer, and recursively computing the local gra-
dients   δ   for  each  neuron. This  recursive  process  permits  the  synaptic  weights  of  the 
network to undergo changes in accordance with the delta rule. For the neuron located 
at the output layer,  δ  is equal to the error signal of that neuron multiplied by the ﬁ rst 
derivative  of  its  nonlinearity  represented  in  the  activation  function.  Based  on  local 
gradients  δ , it is straightforward to compute  Δ w for each connection to the output nodes. 
Given the  δ  values for all neurons in the output layer, we use them in the previous layer 
before (usually the hidden layer) to compute modiﬁ ed local gradients for the nodes that 
are  not  the  ﬁ nal,  and  again  to  correct   Δ w  for  input  connections  for  this  layer.  The 
backward  procedure  is  repeated  until  all  layers  are  covered  and  all  weight  factors  in 

  
   
 
218 

ARTIFICIAL  NEURAL  NETWORKS

the network are modiﬁ ed. Then, the backpropagation algorithm continues with a new 
training  sample.  When  there  are  no  more  training  samples,  the  ﬁ rst  iteration  of  the 
learning process ﬁ nishes. With the same samples, it is possible to go through a second, 
third, and sometimes hundreds of iterations until error energy E av  for the given iteration 
is small enough to stop the algorithm. 

 The  backpropagation  algorithm  provides  an   “ approximation ”   to  the  trajectory  in 
weight space computed by the method of steepest descent. The smaller we make the 
learning rate parameter  η , the smaller the changes to the synaptic weights in the network 
will be from one iteration to the next and the smoother will be the trajectory in weight 
space. This improvement, however, is attained at the cost of a slower rate of learning. 
If, on the other hand, we make  η  too large in order to speed up the learning process, the 
resulting large changes in the synaptic weights can cause the network to become unsta-
ble, and the solution will become oscillatory about a minimal point never reaching it. 

 A  simple  method  of  increasing  the  rate  of  learning  yet  avoiding  the  danger  of 

instability is to modify the delta rule by including a  momentum term :

   ∆

w

ji

n
( )

= ⋅

η δ

n
( )

⋅

j

x

i

n
( )

α
+ ⋅

∆

w

(

ji

n

−

1  
)

where  α  is usually a positive number called momentum constant and  Δ w ji ( n     −    1) is the 
correction of the weight factor for a previous ( n     −    1) th  sample.  α , in practice, is usually 
set to the value between 0.1 and 1. The addition of the momentum term smoothes the 
weight updating and tends to resist erratic weight changes because of gradient noise or 
high - spatial  frequencies  in  the  error  surface.  However,  the  use  of  momentum  terms 
does  not  always  seem  to  speed  up  training;  it  is  more  or  less  application - dependent. 
The momentum factor represents a method of averaging; rather than averaging deriva-
tives, momentum averages the weight changes themselves. The idea behind momentum 
is  apparent  from  its  name:  including  some  kind  of  inertia  in  weight  corrections. The 
inclusion  of  the  momentum  term  in  the  backpropagation  algorithm  has  a  stabilizing 
effect  in  cases  where  corrections  in  weight  factors  have  a  high  oscillation  and  sign 
changes.  The  momentum  term  may  also  have  the  beneﬁ t  of  preventing  the  learning 
process from terminating in a shallow local minimum on the error surface. 

 Reﬂ ecting practical approaches to the problem of determining the optimal archi-
tecture of the network for a given task, the question about the values for three param-
eters,  the  number  of  hidden  nodes  (including  the  number  of  hidden  layers),  learning 
rate  η , and momentum rate  α , becomes very important. Usually the optimal architec-
ture is determined experimentally, but some practical guidelines exist. If several net-
works with different numbers of hidden nodes give close results with respect to error 
criteria  after  the  training,  then  the  best  network  architecture  is  the  one  with  smallest 
number of hidden nodes. Practically, that means starting the training process with net-
works  that  have  a  small  number  of  hidden  nodes,  increasing  this  number,  and  then 
analyzing the resulting error in each case. If the error does not improve with the increas-
ing number of hidden nodes, the latest analyzed network conﬁ guration can be selected 
as optimal. Optimal learning and momentum constants are also determined experimen-
tally, but experience shows that the solution should be found with  η  about 0.1 and  α  
about 0.5. 

MULTILAYER  PERCEPTRONS  (MLPs) 

219

 When the ANN is ﬁ rst set up, the initial weight factors must be given. The goal in 
choosing these values is to begin the learning process as fast as possible. The appropri-
ate  method  is  to  take  the  initial  weights  as  very  small  evenly  distributed  random 
numbers. That will cause the output values to be in mid - range regardless of the values 
of  its  inputs,  and  the  learning  process  will  converge  much  faster  with  every  new 
iteration. 

 In backpropagation learning, we typically use the algorithm to compute the syn-
aptic weights by using as many training samples as possible. The hope is that the neural 
network so designed will generalize the best. A network is said to generalize well when 
the input – output mapping computed by the network is correct for test data never used 
earlier in creating or training the network. In the MLP, if the number of hidden units 
is less that the number of inputs, the ﬁ rst layer performs a dimensionality reduction. 
Each hidden unit may be interpreted as deﬁ ning a template. By analyzing these tem-
plates we can extract knowledge from a trained ANN. In this interpretation weights are 
deﬁ ning relative importance in the templates. But the largest number of training samples 
and  the  largest  number  of  learning  iterations  using  these  samples  do  not  necessarily 
lead to the best generalization. Additional problems occur during the learning process, 
and they are brieﬂ y described through the following analysis. 

 The  learning  process  using  an ANN  may  be  viewed  as  a  curve - ﬁ tting  problem. 
Such a viewpoint then permits us to look on generalization not as a theoretical property 
of neural networks but as the effect of a good, nonlinear interpolation of the input data. 
An  ANN  that  is  designed  to  generalize  well  will  produce  a  correct  input – output 
mapping, even when the input is slightly different from the samples used to train the 
network, as illustrated in Figure 7 .11 a. When, however, an ANN learns from too many 
input – output samples, the network may end up memorizing the training data. Such a 
phenomenon is referred to as  overﬁ tting  or  overtraining . This problem has already been 
described in Chapter  4 . When the network is overtrained, it loses the ability to general-
ize between similar patterns. A smoothness of input – output mapping, on the other hand, 

y

y

− Training samples
− Testing samples

x

x

(a)

(b)

     Figure  7.11.      Generalization  as  a  problem  of  curve  ﬁ tting.  (a)  A  ﬁ tting  curve  with  good 
generalization; (b) overﬁ tted curve.  

220 

ARTIFICIAL  NEURAL  NETWORKS

is  closely  related  to  the  generalization  abilities  of  an ANN. The  essence  is  to  select, 
based on training data, the simplest function for generalization, that means the smooth-
est function that approximates the mapping for a given error criterion. Smoothness is 
natural in many applications, depending on the scale of the phenomenon being studied. 
It  is  therefore  important  to  seek  a  smooth  nonlinear  mapping,  so  that  the  network  is 
able to classify novel patterns correctly with respect to the training patterns. In Figure 
7 .11 a, b,  a   ﬁ tting  curve  with  a  good  generalization  and  an  overﬁ tted  curve  are  repre-
sented for the same set of training data.   

 To  overcome  the  problem  of  overﬁ tting,  some  additional  practical  recommenda-
tions may be introduced for the design and application of ANN in general and multi-
player perceptrons in particular. In ANNs, as in all modeling problems, we want to use 
the simplest network that can adequately represent the training data set. Do not use a 
bigger network when a smaller network will work. An alternative to using the simplest 
network  is  to  stop  the  training  before  the  network  overﬁ ts. Also,  one  very  important 
constraint is that the number of network parameters should be limited. For a network 
to be able to generalize it should have fewer parameters (signiﬁ cantly) than there are 
data points in the training set. ANN generalization is extremely poor if there is a large 
input space with very few training samples. 

 Interpretability  of  data - mining  models  including ANNs,  or  the  understanding  of 
the way inputs relate to an output in a model, is a desirable property in applied data -
 mining  research  because  the  intent  of  such  studies  is  to  gain  knowledge  about  the 
underlying reasoning mechanisms. Interpretation may also be used to validate results 
that are inconsistent or contradictory to common understanding of issues involved, and 
it may also indicate problems with data or models. 

 While ANNs have been intensively studied and successfully used in classiﬁ cation 
and regression problems, their interpretability still remains vague. They suffer from the 
shortcoming of being  “ black boxes, ”  that is, without explicit mechanisms for determin-
ing why an ANN makes a particular decision. That is, one provides the input values 
for  an  ANN  and  obtains  an  output  value,  but  generally  no  information  is  provided 
regarding how those outputs were obtained, how the input values correlate to the output 
value, and what is the meaning of large numbers of weight factors in the network. ANNs 
acceptability  as  valid  data - mining  methods  for  business  and  research  requires  that 
beyond  providing  excellent  predictions  they  provide  meaningful  insight  that  can  be 
understood by a variety of users: clinicians, policy makers, business planners, academi-
cians, and lay persons. Human understanding and acceptance is greatly enhanced if the 
input – output  relations  are  explicit,  and  end  users  would  gain  more  conﬁ dence  in  the 
prediction produced. 

 Interpretation of trained ANNs can be considered in two forms: broad and detailed. 
The aim of a broad interpretation is to characterize how important an input neuron is 
for predictive ability of the model. This type of interpretation allows us to rank input 
features  in  order  of  importance.  The  broad  interpretation  is  essentially  a  sensitivity 
analysis of the neural network. The methodology does not indicate the sign or direction 
of the effect of each input. Thus, we cannot draw conclusions regarding the nature of 
the correlation between input descriptors and network output; we are only concluding 
about the level of inﬂ uence. 

COMPETITIVE  NETWORKS  AND  COMPETITIVE  LEARNING 

221

 The goal of a detailed interpretation of an ANN is to extract the structure - property 
trends from an ANN model. For example, each of the hidden neurons corresponds to 
the number of piecewise hyperplanes that are components available for approximating 
the target function. These hyperplanes act as the basic building blocks for constructing 
an  explicit ANN  model. To  obtain  a  more  comprehensible  system  that  approximates 
the behavior of the ANN, we require the model with less complexity, and at the same 
time maybe scarifying accuracy of results. The knowledge hidden in a complex struc-
ture of an ANN may be uncovered using a variety of methodologies that allow mapping 
an ANN into a rule - based system. Many authors have focused their activities on com-
piling the knowledge captured in the topology and weight matrix of a neural network 
into  a  symbolic  form:  some  of  them  into  sets  of  ordinary  if - then  rules,  others  into 
formulas  from  propositional  logic  or  from  non - monotonic  logics,  or  most  often  into 
sets of fuzzy rules. These transformations make explicit the knowledge implicitly cap-
tured by the trained neural network and it allows the human specialist to understand 
how the neural network generates a particular result. It is important to emphasize that 
any method of rule extraction from ANN is valuable only to the degree to which the 
extracted rules are meaningful and comprehensible to a human expert. 

 It is proven that the best interpretation of trained ANNs with continuous activation 
functions is in a form of fuzzy rule - based systems. In this way, a more comprehensible 
description  of  the  action  of  the ANN  is  achieved.  Multilayer  feedforward ANNs  are 
seen as additive fuzzy rule - based systems. In these systems, the outputs of each rule 
are weighted by the activation degree of the rule, and then they are added for an inte-
grated representation of an ANN model. The main disadvantage of most approximation 
techniques  of  neural  networks  by  fuzzy  rules  is  the  exponential  increase  of  required 
number of rules for a good approximation. Fuzzy rules that express the input – output 
mapping of the ANNs are extracted using different approaches described in numerous 
references. If the reader is interested for more details about methodologies, the starting 
points  may  be  the  recommended  references  at  the  end  of  this  chapter,  and  also  the 
introductory concepts about fuzzy systems given in Chapter  14 .  

   7.6  

  COMPETITIVE NETWORKS AND COMPETITIVE LEARNING 

 Competitive neural networks belong to a class of recurrent networks, and they are based 
on algorithms of unsupervised learning, such as the competitive algorithm explained 
in this section. In competitive learning, the output neurons of a neural network compete 
among themselves to become active (to be  “ ﬁ red ” ). Whereas in multiplayer perceptrons 
several  output  neurons  may  be  active  simultaneously,  in  competitive  learning  only  a 
single output neuron is active at any one time. There are three basic elements necessary 
to build a network with a competitive learning rule, a standard technique for this type 
of ANNs:

   1.      a  set of neurons  that have the same structure and that are connected with initially 
randomly selected weights; therefore, the neurons respond differently to a given 
set of input samples;  

222 

ARTIFICIAL  NEURAL  NETWORKS

Layer of
inputs

Single layer of
output nodes

Competitive
outputs

x1

x2

xn

y1

y2

yk

     Figure 7.12.      A graph of a simple competitive network architecture.  

  2.      a  limit value  that is determined on the strength of each neuron; and  
  3.      a  mechanism that permits the neurons to compete  for the right to respond to a 
given subset of inputs, such that only one output neuron is active at a time. The 
neuron that wins the competition is called winner - take - all neuron.    

 In the simplest form of competitive learning, an ANN has a single layer of output 
neurons, each of which is fully connected to the input nodes. The network may include 
feedback connections among the neurons, as indicated in Figure 7 .12 . In the network 
architecture described herein, the feedback connections perform  lateral inhibition , with 
each neuron tending to inhibit the neuron to which it is laterally connected. In contrast, 
the feedforward synaptic connections in the network of Figure 7 .12  are all  excitatory .   
 For a neuron k to be the winning neuron, its net value net k  for a speciﬁ ed input 
sample X    =    {x 1 , x 2 ,    . . .    , x n } must be the largest among all the neurons in the network. 
The output signal y k  of the winning neuron k is set equal to one; the outputs of all other 
neurons that lose the competition are set equal to 0. We thus write

=

   y

k


1



0

net

>

if net

k
otherwise

for all j j

,

≠

k

j

where the induced local value net k  represents the combined action of all the forward 
and feedback inputs to neuron k. 

 Let w kj  denote the synaptic weights connecting input node j to neuron k. A neuron 
then learns by shifting synaptic weights from its inactive input nodes to its active input 
nodes.  If  a  particular  neuron  wins  the  competition,  each  input  node  of  that  neuron 
relinquishes some proportion of its synaptic weight, and the weight relinquished is then 
distributed  among  the  active  input  nodes.  According  to  the  standard,  competitive -
 learning rule, the change  Δ w kj  applied to synaptic weight w kj  is deﬁ ned by

   ∆w

kj

=





η(
0

−
x w

j

)

kj

if neuron k wins the competition

if neuron k

  loses the competition

 
 
x

x

x

(a)

COMPETITIVE  NETWORKS  AND  COMPETITIVE  LEARNING 

223

x2

x2

− Input vectors
− Synaptic weights

x

x

x

x

x1

(b)

x1

     Figure  7.13.      Geometric  interpretation  of  competitive  learning.  (a)  Initial  state  of  the 
network; (b) ﬁ nal state of the network.  

where  η  is the learning - rate parameter. The rule has the overall effect of moving the 
synaptic weights of the winning neuron toward the input pattern X. We may use the 
geometric analogy represented in Figure 7 .13  to illustrate the essence of competitive 
learning.   

 Each  output  neuron  discovers  a  cluster  of  input  samples  by  moving  its  synaptic 
weights  to  the  center  of  gravity  of  the  discovered  cluster.  Figure  7 .13   illustrates  the 
ability of a neural network to perform clustering through competitive learning. During 
the  competitive - learning  process,  similar  samples  are  grouped  by  the  network  and 
represented  by  a  single  artiﬁ cial  neuron  at  the  output.  This  grouping,  based  on  data 
correlation, is done automatically. For this function to be performed in a stable way, 
however, the input samples must fall into sufﬁ ciently distinct groups. Otherwise, the 
network may be unstable. 

 Competitive  (or  winner - take - all)  neural  networks  are  often  used  to  cluster  input 
data where the number of output clusters is given in advance. Well - known examples 
of ANNs used for clustering based on unsupervised inductive learning include Kohonen ’ s 
learning vector quantization (LVQ), self - organizing map (SOM), and networks based 
on adaptive - resonance theory models. Since the competitive network discussed in this 
chapter is very closely related to the Hamming networks, it is worth reviewing the key 
concepts associated with this general and very important class of ANNs. The Hamming 
network consists of two layers. The ﬁ rst layer is a standard, feedforward layer, and it 
performs  a  correlation  between  the  input  vector  and  the  preprocessed  output  vector. 
The second layer performs a competition to determine which of the preprocessed output 
vectors is closest to the input vector. The index of the second - layer neuron with a stable, 
positive output (the winner of the competition) is the index of the prototype vector that 
best matches the input. 

 Competitive learning makes efﬁ cient adaptive classiﬁ cation, but it suffers from a 
few methodological problems. The ﬁ rst problem is that the choice of learning rate  η  
forces a trade - off between speed of learning and the stability of the ﬁ nal weight factors. 
A learning rate near 0 results in slow learning. Once a weight vector reaches the center 

224 

ARTIFICIAL  NEURAL  NETWORKS

of a cluster, however, it will tend to stay close to the center. In contrast, a learning rate 
near  1  results  in  fast  but  unstable  learning. A  more  serious  stability  problem  occurs 
when  clusters  are  close  together,  which  causes  weight  vectors  also  to  become  close, 
and the learning process switches its values and corresponding classes with each new 
example. Problems with the stability of competitive learning may occur also when a 
neuron ’ s initial weight vector is located so far from any input vector that it never wins 
the competition, and therefore it never learns. Finally, a competitive - learning process 
always has as many clusters as it has output neurons. This may not be acceptable for 
some applications, especially when the number of clusters is not known or if it is dif-
ﬁ cult to estimate it in advance. 

 The following example will trace the steps in the computation and learning process 
of competitive networks. Suppose that there is a competitive network with three inputs 
and three outputs. The task is to group a set of 3 - D input samples into three clusters. 
The network is fully connected; there are connections between all inputs and outputs 
and  there  are  also  lateral  connections  between  output  nodes.  Only  local  feedback 
weights are equal to 0, and these connections are not represented in the ﬁ nal architecture 
of  the  network.  Output  nodes  are  based  on  a  linear - activation  function  with  the  bias 
value for all nodes equal to zero. The weight factors for all connections are given in 
Figure  7 .14 ,  and  we  assume  that  the  network  is  already  trained  with  some  previous 
samples.   

 Suppose that the new sample vector X has components

=

   X x x x3
{ ,
1

,

2

=
} { ,

1 0 1   
, }

 In  the  ﬁ rst,  forward  phase,  the  temporary  outputs  for  competition  are  computed 

through their excitatory connections and their values are

   net

*

1

=

.
0 5

⋅

x
1

+ −
(

. )
0 5

⋅

   net *
2

=

.
0 3

⋅

x
1

+

.
0 7

⋅

x

2

x

3
=

=

⋅ =  
0 5 1 0 5 1 0
.
.

⋅ −

.
0 3 1 0 7 0 0 3
.

.

⋅ =

⋅ +

   net

*

3

=

.
0 2

⋅

x

2

+ −
(

. )
0 2

⋅

x

3

=

⋅ −
0 2 0 0 2 1

⋅ = −

.

.

.
0 2

0.5

0.3

0.7

0.2

−0.5

−0.2

x1

x2

x3

1

0.5

0.2

0.6

2

0.4

0.1

0.2

3

y1

y2

yk

     Figure 7.14.      Example of a competitive neural network.  

 
 
SOMs 

225

and after including lateral inhibitory connections:

   net

1

=

net

1

*

+

.
0 5 0 3 0 6
.

.

+

⋅

⋅ −
(

. )
0 2

=

.
0 03

   net

2

=

net

2

*

+

⋅ +
.
0 2 0 0 1
.

⋅ −
(

. )
0 2

=

.
0 28

  maximum
(

)  

   net

3

=

net

3

*

+

.
0 4 0 0 2 0 3
.

⋅ +

.

⋅

= −

.
0 14

 Competition between outputs shows that the highest output value is net 2 , and it is 

the winner. So the ﬁ nal outputs from the network for a given sample will be

=

{ ,
   Y y y y
1

,

2

=
} { ,

0 1 0   
, }

3

 Based on the same sample, in the second phase of competitive learning, the pro-
cedure for a weight factor ’ s correction (only for the winning node y 2 ) starts. The results 
of the adaptation of the network, based on learning rate  η     =    0.2, are new weight factors:

   w

12

   w

22

   w

32

=

=

=

. )
0 3 0 2 1 0 3
.

(

.

. )
0 7 0 2 0 0 7

(

.

.

. )
0 0 0 2 1 0 0
.

(

.

−

−

−

+

+

+

=

.
0 44

=

.
0 56

=

.
0 20

 The  other  weight  factors  in  the  network  remain  unchanged  because  their  output 
nodes  were  not  the  winners  in  the  competition  for  this  sample.  New  weights  are  the 
results  of  a  competitive - learning  process  only  for  one  sample.  The  process  repeats 
iteratively for large training data sets.  

   7.7  

   SOM  s  

 SOMs,  often  called  Kohonen  maps,  are  a  data  visualization  technique  introduced  by 
University  of  Helsinki  Professor Teuvo  Kohonen,. The  main  idea  of  the  SOMs  is  to 
project  the  n - dimensional  input  data  into  some  representation  that  could  be  better 
understood visually, for example, in a 2 - D image map. The SOM algorithm is not only 
a heuristic model used to visualize, but also to explore linear and nonlinear relationships 
in high - dimensional data sets. SOMs were ﬁ rst used in the 1980s for speech - recognition 
problems,  but  later  they  become  a  very  popular  and  often  used  methodology  for  a 
variety of clustering and classiﬁ cation - based applications. 

 The  problem  that  data  visualization  attempts  to  solve  is:  Humans  simply  cannot 
visualize high - dimensional data, and SOM techniques are created to help us visualize 
and understand the characteristics of these dimensional data. The SOM ’ s output empha-
sizes on the salient features of the data, and subsequently leads to the automatic forma-
tion  of  clusters  of  similar  data  items.  SOMs  are  interpreted  as  unsupervised  neural 
networks (without teacher) and they are solving clustering problem by visualization of 
clusters. As a result of a learning process, SOM is used as an important visualization 
and data - reduction aid as it gives a complete picture of the data; similar data items are 
transformed in lower dimension but still automatically group together. 

 The  way  SOMs  perform  dimension  reduction  is  by  producing  an  output  map  of 
usually one or two dimensions that plot the similarities of the data by grouping similar 

 
  
 
 
 
 
 
  
226 

ARTIFICIAL  NEURAL  NETWORKS

Feature map (rectangular grid)

First output node

w12

1

w11

Weight matrix

1

2

Input values

Input values

     Figure 7.15.      SOM with 2 - D Input, 3    ×    3 Output.  

data  items  on  the  map. Through  these  transformations  SOMs  accomplish  two  goals: 
They  reduce  dimensions  and  display  similarities.  Topological  relationships  in  input 
samples  are  preserved  while  complex  multidimensional  data  can  be  represented  in  a 
lower dimensional space. 

 The basic SOM can be visualized as a neural network whose nodes become speciﬁ -
cally tuned to various input sample patterns or classes of patterns in an orderly fashion. 
Nodes  with  weighted  connections  are  sometimes  referred  to  as  neurons  since  SOMs 
are actually a speciﬁ c type of ANNs. SOM is represented as a single layer feedforward 
network where the output neurons are arranged usually in a 2 - D topological grid. The 
output grid can be either rectangular or hexagonal. In the ﬁ rst case each neuron except 
borders and corners has four nearest neighbors, in the second there are six. The hexago-
nal map requires more calculations, but ﬁ nal visualization provides a smoother result. 
Attached to every output neuron there is a weight vector with the same dimensionality 
as the input space. Each node  i  has a corresponding weight vector w i     =    {w i1 ,w i2 ,    . . .    , 
w id } where d is a dimension of the input feature space. 

 The structure of the SOM outputs may be a 1 - D array or a 2 - D matrix, but may 
also be more complex structures in 3 - D such as cylinder or toroid. Figure 7 .15  shows 
an example of a simple SOM architecture with all interconnections between inputs and 
outputs.   

 An important part of an SOM technique is the data. These are the samples used 
for SOM learning. The learning process is competitive and unsupervised, meaning that 
no teacher is needed to deﬁ ne the correct output for a given input. Competitive learning 
is  used  for  training  the  SOM,  that  is,  output  neurons  compete  among  themselves  to 
share the input data samples. The winning neuron, with weights w w , is a neuron that is 
the  “ closest ”  to the input example x among all other m neurons in the deﬁ ned metric:

   d x w
( ,

w

)

=

arg min ( ,

d x w

≤ ≤1

j m

)

j

  
SOMs 

227

 In the basic version of SOMs, only one output node (winner) at a time is activated 
corresponding to each input. The winner - take - all approach reduces the distance between 
winner ’ s node weight vector and the current input sample, making the node closer to 
be  “ representative ”  for the sample. The SOM learning procedure is an iterative process 
that ﬁ nds the parameters of the network (weights w) in order to organize the data into 
clusters  that  keep  the  topological  structure  .  Thus,  the  algorithm  ﬁ nds  an  appropriate 
projection of high - dimensional data into a low - dimensional space. 

 The  ﬁ rst  step  of  the  SOM  learning  is  the  initialization  of  the  neurons ’   weights 
where two methods are widely used. Initial weights can be taken as the coordinates of 
randomly selected m points from the data set (usually normalized between 0 and 1), or 
small random values can be sampled evenly from the input data subspace spanned by 
the two largest principal component eigenvectors. The second method can increase the 
speed of training but may lead to a local minima and miss some nonlinear structures 
in the data.  

 The  learning  process  is  performed  after  initialization  where  training  data  set  is 
submitted to the SOM one by one, sequentially, and usually in several iterations. Each 
output with its connections, often called a cell, is a node containing a template against 
which input samples are matched. All output nodes are compared with the same input 
sample in parallel, and SOM computes the distances between each cell and the input. 
All cells compete, so that only the cell with the closest match between the input and 
its template produces an active output. Each node therefore acts like a separate decoder 
or pattern detector for the same input sample, and the winning node is commonly known 
as the Best Matching Unit (BMU). 

 When the winning node is determined for a given input sample, the learning phase 
adapts the weight vectors in the SOM. Adaptation of the weight vectors for each output 
occurs through a process similar to competitive learning except that subsets of nodes 
are adapted at each learning step in order to produce topologically ordered maps. The 
 “ winning ”  node BMU aligns its own weight vector with the training input and hence 
becomes sensitive to it and will provide maximum response if it is shown to the network 
again after training. Nodes in the neighborhood set of the  “ winning ”  node must also 
be  modiﬁ ed  in  a  similar  way  to  create  regions  of  nodes  that  will  respond  to  related 
samples. Nodes outside the neighborhood set remain unchanged. Figure 7 .16 a gives an 
example  of  2 - D  matrix  outputs  for  SOM.  For  the  given  BMU  the  neighborhood  is 
deﬁ ned as a 3    ×    3 matrix of nodes surrounding BMU.   

 Every node within the BMU ’ s neighborhood (including the BMU) has its weight 

vector adjusted according to the following equation in the iterative training process:

   w t
(
i

+ =
1
)

w t
( )
i

+

h t x t w t
i

( )[ ( )

( )]

i

−

where  h i  ( t ) is a so - called neighborhood function. It is deﬁ ned as a function of time t or 
more  precisely  a  training  iteration,  and  it  speciﬁ es  the  neighborhood  area  of  the   i th 
neuron. It has been found experimentally that in order to achieve global ordering of the 
map the neighborhood set around the winning node should initially be large to quickly 
produce a rough mapping. With the increased number of iterations through the training 
set data, the neighborhood should be reduced to force a more localized adaptation of 
the network. This is done so the input samples can ﬁ rst move to an area of SOM where 

  
 
228 

Input
data

Most responsive neuron Neighbourhood

(a)

ARTIFICIAL  NEURAL  NETWORKS

1
0.8

0.6
0.4
0.2
0
−1

−0.5

0

y

0.5

−1

−0.5

0
x

0.5

1 1

(b)

BMU = (w1, w2)

x = (x1, x2)

BMU = (w1, w2)

x = (x1, x2)

Neighborhood of the BMU

Neighborhood of the BMU

(c)

(d)

     Figure 7.16.      Characteristics of SOM learning process. (a) SOM: BMU and neighborhood; (b) 
the radius of the neighborhood diminishes with each sample and iteration; (c) BEFORE learn-

ing, rectangular grid of SOM; (d) AFTER learning, rectangular grid of SOM.  

they will probably be, and then they will more precisely determine the position. This 
process is similar to coarse adjustment followed by ﬁ ne - tuning (Fig.  7.17 ). The radius 
of the neighborhood of the BMU is therefore dynamic. To do this SOM can use, for 
example, the  exponential decay function  that reduces the radius dynamically with each 
new iteration. The graphical interpretation of the function is given in Figure 7 .16 b.   

 The simplest neighborhood function, which refers to a neighborhood set of nodes 

around the BMU node  i , is a monotonically decreasing Gaussian function:

   h t
i ( )

=

a t

( )exp

−



d i w
)
( ,
2 2σ
t
( )





 
SOMs 

229

(a)

(b)

Most responsive neuron, BMU

(c)

(d)

     Figure  7.17.      Coarse  adjustment  followed  by  ﬁ ne - tuning  through  the  neighborhood.  (a) 
Hexagonal grid; (b) rectangular grid; (c) neighborhood in a hexagonal grid; (d) neighborhood 

in a rectangular grid.  

where   α  ( t ) is a learning rate (0    <     α (t)    <    1), and the width of the kernel   σ  ( t ) is a mono-
tonically decreasing function of time as well, and  t  is the current time step (iteration of 
the loop). While the process will adapt all weight vectors within the current neighbor-
hood region, including those of the winning neuron, those outside this neighborhood 
are left unchanged. The initial radius is set high, some values near the width or height 
of the map. As a result, at the early stage of training when the neighborhood is broad 
and covers almost all the neurons, the self - organization takes place at the global scale. 
As the iterations continue, the base goes toward the center, so there are fewer neighbors 
as time progresses. At the end of training, the neighborhood shrinks to 0 and only BMU 
neuron updates its weights. The network will generalize through the process to organize 
similar vectors (which it has not previously seen) spatially close at the SOM outputs. 
 Apart from reducing the neighborhood, it has also been found that quicker conver-
gence of the SOM algorithm is obtained if the adaptation rate of nodes in the network 
is  reduced  over  time.  Initially  the  adaptation  rate  should  be  high  to  produce  coarse 

230 

ARTIFICIAL  NEURAL  NETWORKS

clustering of nodes. Once this coarse representation has been produced, however, the 
adaptation  rate  is  reduced  so  that  smaller  changes  to  the  weight  vectors  are  made  at 
each  node  and  regions  of  the  map  become  ﬁ ne - tuned  to  the  input - training  vectors. 
Therefore,  every  node  within  the  BMU ’ s  neighborhood  including  the  BMU  has  its 
weight vector adjusted through the learning process. The previous equation for weight 
factors  correction   h i  ( t )  may  include  an  exponential  decrease  of   “ winner ’ s  inﬂ uence ”  
introducing   α  ( t ) also as a monotonically decreasing function. 

 The number of output neurons in an SOM (i.e., map size) is important to detect 
the deviation of the data. If the map size is too small, it might not explain some impor-
tant differences that should be detected between input samples. Conversely, if the map 
size  is  too  big,  the  differences  are  too  small.  In  practical  applications,  if  there  is  no 
additional heuristics, the number of output neurons in an SOM can be selected using 
iterations with different SOM architectures. 

 The main advantages of SOM technology are as follows: presented results are very 
easy  to  understand  and  interpret;  technology  is  very  simple  for  implementation;  and 
most  important,  it  works  well  in  many  practical  problems.  Of  course,  there  are  also 
some disadvantages. SOMs are computationally expensive; they are very sensitive to 
measure of similarity; and ﬁ nally, they are not applicable for real - world data sets with 
missing values. There are several possible improvements in implementations of SOMs. 
To reduce the number of iterations in a learning process, good initialization of weight 
factors is essential.  Principal components of input data  can make computation of the 
SOM orders of magnitude faster. Also, practical experience shows that hexagonal grids 
give output results with a better quality. Finally, selection of distance measure is impor-
tant as in any clustering algorithm. Euclidean distance is almost standard, but that does 
not mean that it is always the best. For an improved quality (isotropy) of the display, 
it is advisable to select the grid of the SOM units as  hexagonal . 

 The  SOMs  have  been  used  in  large  spectrum  of  applications  such  as  automatic 
speech  recognition,  clinical  data  analysis,  monitoring  of  the  condition  of  industrial 
plants and processes, classiﬁ cation from satellite images, analysis of genetic informa-
tion,  analysis  of  electrical  signals  from  the  brain,  and  retrieval  from  large  document 
collections. Illustrative examples are given in Figure 7 .18 .     

44

2

6
6

3
3

1
1

5

(a)

(b)

(c)

     Figure  7.18.      SOM  applications.  (a)  Drugs  binding  to  human  cytochrome;  (b)  interest  rate 
classiﬁ cation; (c) analysis of book - buying behavior.  

REVIEW  QUESTIONS  AND  PROBLEMS 

231

 7.8  

 REVIEW QUESTIONS AND PROBLEMS 

       1.     Explain the fundamental differences between the design of an ANN and  “ classical ”  

information - processing systems.   

    2.     Why  is  fault - tolerance  property  one  of  the  most  important  characteristics  and 

capabilities of ANNs?   

    3.     What are the basic components of the neuron ’ s model?   

    4.     Why are continuous functions such as log - sigmoid or hyperbolic tangent consid-

ered common activation functions in real - world applications of ANNs?   

    5.     Discuss the differences between feedforward and recurrent neural networks.   
    6.     Given  a  two - input  neuron  with  the  following  parameters:  bias  b    =    1.2,  weight 
factors W    =    [w1, w2]    =    [3, 2], and input vector X    =    [ − 5, 6] T ; calculate the neuron ’ s 
output for the following activation functions:
   (a)      a symmetrical hard limit  
  (b)      a log - sigmoid  
  (c)      a hyperbolic tangent      

    7.     Consider  a  two - input  neuron  with  the  following  weight  factors  W  and  input 

vector X:

   W

=

3 2
[ ,

]

X

= −
[

T
5 7   
]
,

 We would like to have an output of 0.5.

   (a)      Is there a transfer function from Table  9.1  that will do the job if the bias is zero?  
  (b)      Is there a bias that will do the job if the linear - transfer function is used?  
  (c)      What is the bias that will do the job with a log - sigmoid – activation function?      

    8.     Consider  a  classiﬁ cation  problem  deﬁ ned  with  the  set  of  3 - D  samples  X,  where 

two dimensions are inputs and the third one is the output.

   X:  

   I 1   

   − 1  
  0  
  1  
  1  
  0  

   I 2   

  1  
  0  
   − 1  
  0  
  1  

   O  

  1  
  1  
  1  
  0  
  0  

    (a)      Draw a graph of the data points X labeled according to their classes. Is the problem of 

classiﬁ cation solvable with a single - neuron perceptron? Explain the answer.  

  (b)      Draw a diagram of the perceptron you would use to solve the problem. Deﬁ ne the initial 

values for all network parameters.  

  (c)      Apply single iteration of the delta - learning algorithm. What is the ﬁ nal vector of weight 

factors?      

    
    
    
    
    
    
232 

ARTIFICIAL  NEURAL  NETWORKS

   9.    The one - neuron network is trained to classify input – output samples:

  1  
  1  
  0  

  0  
  1  
  1  

  1  
   − 1  
  1  

 Show that this problem cannot be solved unless the network uses a bias.   

    10.     Consider the classiﬁ cation problem based on the set of samples X:

   X:  

   I 1   

   − 1  
   − 1  
  0  
  1  

   I 2   

  1  
   − 1  
  0  
  0  

   O  

  1  
  1  
  0  
  0  

    (a)      Draw a graph of the data points labeled according to their classiﬁ cation. Is the problem 

solvable with one artiﬁ cial neuron? If yes, graph the decision boundaries.  

  (b)      Design  a  single - neuron  perceptron  to  solve  this  problem.  Determine  the  ﬁ nal  weight 

factors as a weight vector orthogonal to the decision boundary.  

  (c)      Test your solution with all four samples.  
  (d)      Using your network classify the following samples: ( − 2, 0), (1, 1), (0, 1), and ( − 1,  − 2).  
  (e)      Which  of  the  samples  in  (d)  will  always  be  classiﬁ ed  the  same  way,  and  for  which 

samples classiﬁ cation may vary depending on the solution?      

    11.     Implement the program that performs the computation (and learning) of a single -

 layer perceptron.   

    12.     For the given competitive network  :

   (a)      ﬁ nd the output vector [Y1, Y2, Y3] if the input sample is [X1, X2, X3]    =    [1,  − 1,  − 1];  
  (b)      what are the new weight factors in the network?      

    
    
    
    
    
    
REFERENCES  FOR  FURTHER  STUDY 

233

    13.     Search the Web to ﬁ nd the basic characteristics of publicly available or commercial 
software tools that are based on ANNs. Document the results of your search. Which 
of them are for learning with a teacher, and which are support learning without a 
teacher?   

    14.     For  a  neural  network,  which  one  of  these  structural  assumptions  is  the  one  that 
most affects the trade - off between underﬁ tting (i.e., a high - bias model) and overﬁ t-
ting (i.e., a high - variance model):
   (a)      the number of hidden nodes,  
  (b)      the learning rate,  
  (c)      the initial choice of weights, or  
  (d)      the use of a constant - term unit input.      

    15.     Is it true that the Vapnik - Chervonenkis (VC) dimension of a perceptron is smaller 
than the VC dimension of a simple linear support vector machine (SVM)? Discuss 
your answer.     

  7.9  

 REFERENCES FOR FURTHER STUDY 

    Engel ,  A.  ,   C.   Van den Broeck  ,  Statistical Mechanics of Learning ,  Cambridge University Press , 

 Cambridge, UK ,  2001 .  
  The subject of this book is the contribution made to machine learning over the last decade 
by researchers applying the techniques of statistical mechanics. The authors provide a coher-
ent account of various important concepts and techniques that are currently only found scat-
tered in papers. They include many examples and exercises to make a book that can be used 
with courses, or for self - teaching, or as a handy reference.  

    Haykin ,  S.  ,  Neural Networks and Learning Machines ,  3rd edition ,  Prentice Hall ,  Upper Saddle 

River, NJ ,  2009 .  
  Fluid and authoritative, this well - organized book represents the ﬁ rst comprehensive treatment 
of  neural  networks  from  an  engineering  perspective,  providing  extensive,  state - of - the - art 
coverage  that  will  expose  readers  to  the  myriad  facets  of  neural  networks  and  help  them 
appreciate the technology ’ s origin, capabilities, and potential applications. The book examines 
all  the  important  aspects  of  this  emerging  technology,  covering  the  learning  process,  back-
propagation,  radial  basis  functions,  recurrent  networks,  self - organizing  systems,  modular 
networks, temporal processing, neurodynamics, and VLSI implementation. It integrates com-
puter experiments throughout to demonstrate how neural networks are designed and perform 
in  practice.  Chapter  objectives,  problems,  worked  examples,  a  bibliography,  photographs, 
illustrations, and a thorough glossary all reinforce concepts throughout. New chapters delve 
into  such  areas  as  SVMs,  and  reinforcement  learning/neurodynamic  programming,  plus 
readers will ﬁ nd an entire chapter of case studies to illustrate the real - life, practical applica-
tions of neural networks. A highly detailed bibliography is included for easy reference. It is 
the book for professional engineers and research scientists.  

    Heaton ,  J.  ,  Introduction to Neural Networks with Java ,  Heaton Research ,  St. Louis, MO ,  2005 .  
  Introduction to  Neural Networks with Java  introduces the Java programmer to the world of 
neural  networks  and  artiﬁ cial  intelligence  (AI).  Neural - network  architectures  such  as  the 
feedforward backpropagation, Hopﬁ eld, and Kohonen networks are discussed. Additional AI 

234 

ARTIFICIAL  NEURAL  NETWORKS

topics, such as Genetic Algorithms and Simulated Annealing, are also introduced. Practical 
examples  are  given  for  each  neural  network.  Examples  include  the  Traveling  Salesman 
problem, handwriting recognition, fuzzy logic, and learning mathematical functions. All Java 
source code can be downloaded online. In addition to showing the programmer how to con-
struct  these  neural  networks,  the  book  discusses  the  Java  Object  Oriented  Neural  Engine 
(JOONE). JOONE is a free open source Java neural engine.  

    Principe ,   J.  C.  ,    R.    Mikkulainen  ,   Advances  in  Self - Organizing  Maps,  Series:  Lecture  Notes  in 

Computer Science , Vol.  5629 ,  Springer ,  New York ,  2009 .  
  This book constitutes the refereed proceedings of the 7th International Workshop on Advances 
in Self - Organizing Maps, WSOM 2009, held in St. Augustine, Florida, in June 2009. The 41 
revised full papers presented were carefully reviewed and selected from numerous submis-
sions.  The  papers  deal  with  topics  in  the  use  of  SOM  in  many  areas  of  social  sciences, 
economics, computational biology, engineering, time - series analysis, data visualization, and 
theoretical computer science.  

    Zurada ,  J. M.  ,  Introduction to Artiﬁ cial Neural Systems ,  West Publishing Co. ,  St. Paul, MN ,  1992 .  
  The book is one of the traditional textbooks on ANNs. The text grew out of a teaching effort 
in  artiﬁ cial  neural  systems  offered  for  both  electrical  engineering  and  computer  science 
majors. The author emphasizes that the practical signiﬁ cance of neural computation becomes 
apparent for large or very large - scale problems.   

 
 
  8 

ENSEMBLE LEARNING     

  Chapter Objectives 

     (cid:127)       Explain the basic characteristics of ensemble learning methodologies.  
   (cid:127)       Distinguish between the different implementations of combination schemes for 

different learners.  

   (cid:127)       Compare bagging and boosting approaches.  
   (cid:127)       Introduce AdaBoost algorithm and its advantages.     

    One  of  the  primary  goals  of  data  mining  is  to  predict  an   “ unknown ”   value  of  a 
new sample from observed samples. Such a prediction is achieved by two sequential 
phases as shown in Figure 8 .1 : (a) training phase — producing a predictive model from 
training  samples  using  one  of  the  available  supervised  learning  algorithms;  and  (b) 
testing  phase — evaluating  the  generated  predictive  model  using  test  samples  that  are 
not used in the training phase. Numerous applications of a data - mining process showed 
validity  of  the  so - called   “ No - Free - Lunch  Theorem. ”   It  states  that  there  is  no  single 
learning algorithm that is the best and most accurate in all applications. Each algorithm 
determines  a  certain  model  that  comes  with  a  set  of  assumptions.  Sometimes  these 
assumptions hold, sometimes not; therefore, no single algorithm  “ wins ”  all the time.   

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

235

 
236 

ENSEMBLE  LEARNING

Training
samples

Applied
methodology

Predictive
model

Test
sample

Predictive
model

Predicted value
of an interesting feature

(a)

(b)

     Figure 8.1.      Training phase and testing phase for a predictive model. (a) Training phase; (b) 
testing phase.  

 In  order  to  improve  the  accuracy  of  a  predictive  model,  the  promising  approach 
called the  ensemble learning  is introduced. The idea is to combine results from various 
predictive  models  generated  using  training  samples.  The  key  motivation  behind  the 
proposed  approach  is  to  reduce  the  error  rate.  An  initial  assumption  is  that  it  will 
become much more unlikely that the ensemble will misclassify a new sample compared 
with a single predictive model. When combinining multiple, independent, and diverse 
 “ decisions  makers, ”   each  of  which  is  at  least  more  accurate  than  random  guessing, 
correct decisions should be reinforced. The idea may be demonstrated by some simple 
decision  processes  where  single - human  performances  are  compared  with  human 
ensembles. For example, given the question  “ How many jelly beans are in the jar? ” , 
the  group  average  will  outperform  individual  estimates.  Or,  in  the  TV  series   “ Who 
Wants to be a Millionaire? ”  where audience (ensemble) vote is a support for the can-
didate who is not sure of the answer  . 

 This idea is proven theoretically by Hansen and company through the statement: 
If   N   classiﬁ ers  make   independent   errors  and  they  have  the  error  probability   e     <    0.5, 
then it can be shown that the error of an ensemble  E  is monotonically decreasing the 
function of  N . Clearly, performances quickly decrease for dependent classiﬁ ers.  

   8.1  

  ENSEMBLE - LEARNING METHODOLOGIES 

 The ensemble - learning methodology consists of two sequential phases: (a) the training 
phase, and (b) the testing phase. In the training phase, the ensemble method generates 
several different predictive models from training samples as presented in Figure 8 .2 a. 
For  predicting  an  unknown  value  of  a  test  sample,  the  ensemble  method  aggregates 
outputs of each predictive model (Fig.  8.2 b). An integrated predictive model generated 
by  an  ensemble  approach  consists  of  several  predictive  models  (Predictive  model.1, 
Predictive model.2,    . . .    , Predictive model.  n ) and a combining rule as shown in Figure 
8 .2 b. We will refer to such a predictive model as an  ensemble . The ﬁ eld of ensemble 
learning is still relatively new, and several names are used as synonyms depending on 
which predictive task is performed, including combination of multiple classiﬁ ers, clas-
siﬁ er fusion, mixture of experts, or consensus aggregation.   

 To perform better than a single predictive model, an ensemble should consist of 
predictive models that are independent of each other, that is, their errors are uncorre-
lated, and each of them has an accuracy rate of  > 0.5. The outcome of each predictive 
model is aggregated to determine the output value of a test sample. We may analyze 

ENSEMBLE-LEARNING  METHODOLOGIES 

237

Applied
methodology.1

Predictive
model.1

Applied
methodology.2

Predictive
model.2

Test
sample

Training
samples

Ensemble

Predicted
value.1

Predicted
value.2

Predictive
model.1

Predictive
model.2

Applied
methodology.n

Predictive
model.n

Predicted
value.n

Predictive
model.n

e
l
u
r

g
n
i
n
i
b
m
o
C

s
e
u
l
a
v
d
e
t
c
i
d
e
r
p
e
h
t
g
n
i
t
a
g
e
r
g
g
a
(

)
l
e
d
o
m
h
c
a
e

f
o

Final predicted value
of an interesting feature

(a)

(b)

     Figure 8.2.      Training phase and testing phase for building an ensemble. (a) Training phase; 
(b) testing phase.  

all steps of ensemble prediction for a classiﬁ cation task. For example, we may analyze 
a  classiﬁ cation  task  where  the  ensemble  consists  of  15  classiﬁ ers,  each  of  which 
classiﬁ es  test  samples  into  one  of  two  categorical  values.  The  ensemble  decides  the 
categorical  value  based  on  the  dominant  frequency  of  classiﬁ ers ’   outputs.  If  15  pre-
dictive  models  are  different  from  each  other,  and  each  model  has  the  identical 
error rate ( ε     =    0.3), the ensemble will make a wrong prediction only if more than half 
of  the  predictive  models  misclassify  a  test  sample.  Therefore,  the  error  rate  of  the 
ensemble is

   ε

ensemble

=

15


∑ 15


i

=
8

i





i

ε

(
1

−

ε

15
)

=−
i

.
0 05

 which  is  considerably  lower  than  the  0.3  error  rate  of  a  single  classiﬁ er. The  sum  is 
starting with eight, and it means that eight or more models misclassiﬁ ed a test sample, 
while seven or fewer models classiﬁ ed the sample correctly. 

 Figure 8 .3 a shows the error rates of an ensemble, which consists of 15 predictive 
models (n    =    15). The x - axis represents an error rate ( ε ) of a single classiﬁ er. The diago-
nal line represents the case in which all models in the ensemble are identical. The solid 
line represents error rates of an ensemble in which predictive models are different and 
independent from each other. An ensemble has a signiﬁ cantly lower error rate than a 
single predictive model only when the error rate ( ε ) of the members of the ensemble 
is lower than 0.5.   

 We can also analyze the effect of the number of predictive models in an ensemble. 
Figure  8 .3 b  shows  error - rate  curves  for  ensembles  that  consist  of  5,  15,  25,  and  35 
predictive models, respectively. Observe that when an error rate of a predictive model 
is lower than 0.5, the larger the number of predictive models is, the lower the error rate 
of  an  ensemble  is.  For  example,  when  each  predictive  model  of  an  ensemble  has  an 
error rate of 0.4, error rates of each ensemble ( n     =    5,  n     =    15,  n     =    25, and  n     =    35) are 
calculated  as  0.317,  0.213,  0.153,  and  0.114,  respectively.  However,  this  decrease  in 

  
 
 
 
 
 
 
e
l
b
m
e
s
n
e

n
a

f
o

e
t
a
r

r
o
r
r
E

)
e
l
b
m
e
s
n
e
_
ε
(

238 

1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0

0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.90 0.99

Error rate of a predictive model (ε)

15 identical predictive models
15 different predictive models

(a)

e
l
b
m
e
s
n
e

n
a

f
o

e
t
a
r

r
o
r
r
E

)
e
l
b
m
e
s
n
e
_
ε
(

ENSEMBLE  LEARNING

1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0

0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 0.90 0.99
Error rate of a predictive model (ε)
n = 15

n = 35

n = 25

n = 5

(b)

     Figure  8.3.      Changes  in  error  rates  of  an  ensemble.  (a)  Identical  predictive  models  versus  different 
predictive models in an ensemble; (b) the different number of predictive models in an ensemble.  

the error rate for an ensemble is becoming less signiﬁ cant if the number of classiﬁ ers 
is very large, or when the error rate of each classiﬁ er becomes relatively small. 

 The basic questions in creating an ensemble learner are as follows: How to generate 
base learners, and how to combine the outputs from base learners? Diverse and inde-
pendent learners can be generated by 

  (a)      using  different  learning  algorithms  for  different  learning  models  such  as 

support vector machines, decision trees, and neural networks;  

  (b)      using different hyper - parameters in the same algorithm to tune different models 

(e.g., different numbers of hidden nodes in artiﬁ cial neural networks);  

  (c)      using different input representations, such as using different subsets of input 

features in a data set; or  

  (d)      using  different  training  subsets  of  input  data  to  generate  different  models 

usually using the same learning methodology.    

 Stacked Generalization (or stacking) is a methodology that could be classiﬁ ed in 
the ﬁ rst group (a). Unlike other well - known techniques, stacking may be (and normally 
is) used to combine models of different types. One way of combining multiple models 
is speciﬁ ed by introducing the concept of a meta - learner. The learning procedure is as 
follows:

   1.      Split the training set into two disjoint sets.  
  2.      Train several base learners on the ﬁ rst part.  
  3.      Test the base learners on the second part.  
  4.      Using the predictions from (3) as the inputs, and the correct responses as the 

outputs, train a higher level learner.    

 Note  that  steps  (1)  to  (3)  are  the  same  as  cross - validation,  but  instead  of  using 
a  winner - take - all  approach,  the  base  learners  are  combined,  possibly  nonlinearly. 

 
 
 
 
 
 
 
 
ENSEMBLE-LEARNING  METHODOLOGIES 

239

Samples

S1

S2

S3
S4

S5

Features

F1

F2 F3 F4

Training samples

Training data set 1

Training data set 2

Training data set 3

F1 F2 F4

F2 F4

F1 F3 F4

S1

S2

S3
S4

S5

S1

S2

S3
S4

S5

S1

S2

S3
S4

S5

     Figure 8.4.      Feature selection for ensemble classiﬁ ers methodology.  

Although  an  attractive  idea,  it  is  less  theoretically  analyzed  and  less  widely  used 
than bagging and boosting, the two most recognized ensemble - learning methodologies. 
Similar situation is with the second group of methodologies (b): Although a very simple 
approach, it is not used or analyzed intensively. Maybe the main reason is that applying 
the same methodology with different parameters does not guarantee independence of 
models. 

 Class  (c)  methodologies  are  based  on  manual  or  automatic  feature  selection/
extraction that can be used for generating diverse classiﬁ ers using different feature sets. 
For example, subsets related to different sensors, or subsets of features computed with 
different algorithms, may be used. To form training data sets, different subsets of input 
features  are  chosen,  and  then  each  training  sample  with  the  selected  input  features 
becomes an element of training data sets. In Figure 8 .4 , there are ﬁ ve training samples 
{S1, S2, S3, S4, S5} with four features {F1, F2, F3, F4}. When the training data set 1 
is generated, three features {F1, F2, F4} is randomly selected from input features {F1, 
F2,  F3,  F4},  and  all  training  samples  with  those  features  form  the  ﬁ rst  training  set. 
Similar process is performed for the other training sets. The main requirement is that 
classiﬁ ers use different subsets of features that are complementary.   

 The   random  subspace  method   (RSM)  is  a  relatively  recent  method  of  ensemble 
learning  that  is  based  on  the  theory  of  stochastic  discrimination.  Learning  machines 
are trained on randomly chosen subspaces of the original input space and the outputs 
of the models are then combined. Illustrative example for the classiﬁ cation of movies 
is given in Figure 8 .5 . RSM works well for large feature sets with redundant features. 

240 

ENSEMBLE  LEARNING

Ratings
Actors
Genres

Classifier A
Classifier B
Classifier C

+
+

Predictions

     Figure 8.5.      RSM approach in ensemble classiﬁ er for movie classiﬁ cation.  

Random forest methodology, which utilizes such an approach, is implemented in many 
commercial data - mining tools.   

 Methodologies based on different training subsets of input samples (d) are the most 
popular approaches in ensemble learning, and corresponding techniques such as bagging 
and boosting are widely applied in different tools. But, before the detailed explanations 
of these techniques, it is necessary to explain one additional and ﬁ nal step in ensemble 
learning, and that is combining of outcomes for different learners.  

   8.2  

  COMBINATION SCHEMES FOR MULTIPLE LEARNERS 

 Combination schemes include:

   1.       Global  approach   is  through  learners ’   fusion  where  all  learners  produce  an 
output and these outputs are combined by voting, averaging, or stacking. This 
represents integration (fusion) functions where for each pattern, all the classi-
ﬁ ers contribute to the ﬁ nal decision.  

  2.       Local approach  is based on learner selection where one or more learners respon-
sible  for  generating  the  output  are  selected  based  on  their  closeness  to  the 
sample. Selection function is applied where for each pattern, just one classiﬁ er, 
or a subset, is responsible for the ﬁ nal decision.  

  3.       Multistage combination  uses a serial approach where the next learner is trained 
with or tested on only instances where previous learners were inaccurate.    

  Voting  is the simplest way of combining classiﬁ ers on a global level, and represent-

ing the result as a linear combination of outputs d j  for  n  learners:

=

   y

i

n

∑

=
1

j

w d
j

j

where w

j

≥

0

and

n

∑

=
1

j

w

j

=

1   

 The result of the combination could be different depending on w j . Alternatives for 
combinations  are   simple  sum  ( equal  weights ),  weighted  sum,  median,  minimum, 
maximum,  and  product of d ij .  Voting schemes can be seen as approximations under a 
Bayesian framework where weights w j  approximate prior model probabilities. 

  Rank - level Fusion Method  is applied for some classiﬁ ers that provide class  “ scores, ”  
or some sort of class probabilities. In general, if  Ω     =    { c1 ,    . . .    ,  ck } is the set of classes, 
each  of  these  classiﬁ ers  can  provide  an   “ ordered ”   (ranked)  list  of  class  labels.  For 

BAGGING  AND  BOOSTING 

241

example, if probabilities of output classes are 0.10, 0.75, and 0.20, corresponding ranks 
for the classes will be 1, 3, and 2, respectively. The highest rank is given to the class 
with the highest probability. Let us check an example, where the number of classiﬁ ers 
is  N    =    3,  and  the  number  of  classes  k    =    4,   Ω     =    { a ,   b ,   c ,   d }.  For  a  given  sample,  the 
ranked outputs of the three classiﬁ ers are as follows: 

   Rank value  

   Classiﬁ er 1  

   Classiﬁ er 2  

   Classiﬁ er 3  

  4  
  3  
  2  
  1  

   c   
   b   
   d   
   a   

   a   
   b   
   d   
   c   

   b   
   a   
   c   
   d   

 In this case, ﬁ nal selection of the output class will be determined by accumulation 

of scores for each class:

   r
a

=

1
( )
r
a

+

2
( )
r
a

+

3
( )
r
a

= + + =

1 4 3 8  

   r
b

=

1
( )
r
b

+

2
( )
r
b

+

3
( )
r
b

= + + =

3 3 4 10  

   r
c

=

1
( )
r
c

+

2
( )
r
c

+

3
( )
r
c

= + + =
4 1 2

7  

   r
d

=

1
( )
r
d

+

2
( )
r
d

+

3
( )
r
d

= + + =

2 3 1 5   

 The winner class is  b  because it has the maximum overall rank. 
 Finally,  the   Dynamic  Classiﬁ er  Selection   (DCS)  algorithm,  representing  a  local 

approach, assumes the following steps:

   1.      Find the k nearest training samples to the test input.  
  2.      Look at the accuracies of the base classiﬁ ers on these samples.  
  3.      Choose one (or top N) classiﬁ ers that performs best on these samples.  
  4.      Combine decisions for selected classiﬁ ers.     

   8.3  

  BAGGING AND BOOSTING 

 Bagging  and  boosting  are  well - known  procedures  with  solid  theoretical  background. 
They belong to the class (d) of ensemble methodologies and essentially they are based 
on resampling of a training data set. 

  Bagging , a name derived from bootstrap aggregation, was the ﬁ rst effective method 
of ensemble learning and is one of the simplest methods. It was originally designed for 
classiﬁ cation and is usually applied to decision tree models, but it can be used with any 

     
242 

ENSEMBLE  LEARNING

Samples

Training data set 1
F1 F2 F3 F4

S2

S2

S4
S4

S5

S1

S2

S3
S4

S5

S1

S2

S3
S4

S4

Features

F1

F2 F3 F4

Training samples

Training data set 2
F1 F2 F3 F4

Training data set 3
F1 F2 F3 F4

S1

S1

S3
S5

S5

     Figure  8.6.      Bagging  methodology  distributes  samples  taken  with  replacement  from  initial 
set of samples.  

type of model for classiﬁ cation or regression. The method uses multiple versions of a 
training set by using the bootstrap, that is, sampling with replacement. Each of these 
data sets is used to train a different model. The outputs of the models are combined by 
averaging (in the case of regression) or voting (in the case of classiﬁ cation) to create 
a single output. 

 In the bagging methodology a training data set for a predictive model consists of 
samples taken with replacement from an initial set of samples according to a sampling 
distribution. The sampling distribution determines how likely it is that a sample will 
be selected. For example, when the sampling distribution is predeﬁ ned as the uniform 
distribution, all  N  training samples have the same probability, 1/ N , of being selected. 
In the same training data set, because of replacement sampling, some training samples 
may appear multiple times, while any training samples may not appear even once. In 
Figure 8 .6 , there are ﬁ ve training samples {S1, S2, S3, S4, S5} with four features {F1, 
F2, F3, F4}. Suppose that three training data sets are formed by samples that are ran-
domly selected with replacement from the training samples according to the uniform 
distribution. Each training sample has a 1/5 probability of being selected as an element 
of a training data set. In the training data set 1, S2 and S4 appear twice, while S1 and 
S3 do not appear.   

 Bagging is only effective when using unstable nonlinear models where small changes 
in training data lead to signiﬁ cantly different classiﬁ ers and large changes in accuracy. 
It decreases error by decreasing the variance in the results of unstable learners. 

ADABOOST 

243

  Boosting  is the most widely used ensemble method and one of the most powerful 
learning ideas introduced in the ensemble - learning community. Originally designed for 
classiﬁ cation, it can also be extended to regression. The algorithm ﬁ rst creates a  “ weak ”  
classiﬁ er, that is, it sufﬁ ces that its accuracy on the training set is slightly better than 
random guessing. Samples are given initial weights, and usually it starts with uniform 
weighting. For the following iterations, the samples are reweighted to focus the system 
on  samples  that  are  not  correctly  classiﬁ ed  with  a  recently  learned  classiﬁ er.  During 
each step of learning: (1) increase weights of the samples that are not correctly learned 
by the weak learner, and (2) decrease weights of the samples that are correctly learned 
by the weak learner. Final classiﬁ cation is based on a weighted vote of weak classiﬁ ers 
generated in iterations.  

   8.4  

   A  DA  B  OOST  

 The  original  boosting  algorithm  combined  three  weak  learners  to  generate  a  strong, 
high quality learner.  AdaBoost , short for  “ adaptive boosting, ”  is the most popular boost-
ing algorithm. AdaBoost combine  “ weak ”  learners into a highly accurate classiﬁ er to 
solve difﬁ cult highly nonlinear problems. Instead of sampling, as in a bagging approach, 
AdaBoost reweighs samples. It uses the same training set over and over again (thus it 
need not be large) and it may keep adding weak learners until a target training error is 
reached. 

 Given a training data set: {(x1, y1),    . . .    , (xm, ym)} where xi    ∈    X and yi    ∈    { − 1,  + 1}, 
when a weak classiﬁ er is trained with the data, for each input sample x i  the classiﬁ er will 
give classiﬁ cation h(x i ) (where h(x i )    ∈    { − 1,  + 1}). With these assumptions the main steps 
of the AdaBoost algorithm are presented in Figure 8 .8 . 

 Simplicity and easy implementation are the main reasons why AdaBoost is very 
popular.  It  can  be  combined  with  any  classiﬁ ers  including  neural  networks,  decision 
trees, or nearest neighbor classiﬁ ers. The algorithm requires almost no parameters to 
tune, and is still very effective even for the most complex classiﬁ cation problems, but 
at the same time it could be sensitive to noise and outliers. 

 Ensemble - learning approach showed all advantages in one very famous applica-
tion,  Netﬂ ix  $1  million  competition.  The  Netﬂ ix  prize  required  substantial  improve-
ment in the accuracy of predictions on how much someone is going to love a movie 
based on his or her previous movie preferences. Users ’  rating for movies was 1 to 5 
stars;  therefore,  the  problem  was  classiﬁ cation  task  with  ﬁ ve  classes.  Most  of  the 
top - ranked competitors have used some variations of ensemble learning, showing its 
advantages in practice. Top competitor  BellKor  team explains ideas behind its success: 
 “ Our ﬁ nal solution consists of blending 107 individual predictors. Predictive accuracy 
is  substantially  improved  when  blending  multiple  predictors.  Our  experience  is  that 
most  efforts  should  be  concentrated  in  deriving  substantially  different  approaches, 
rather  than  reﬁ ning  a  single  technique.  Consequently,  our  solution  is  an  ensemble  of 
many methods. ”    

244 

ENSEMBLE  LEARNING

Black2
Gray2

Gray1

Black1

Gray3

Black3

Distribution D1

Distribution D2

Distribution D3

     Figure 8.7.      AdaBoost iterations.  

(cid:127) Initialize distribution over the training set D1(i) = 1/m
(cid:127) For t = 1, . . . , T:

1. Train Weak Learner using distribution Dt.
2. Choose a weight (or confidence value ) at   R.
∋
3. Update the distribution over the training set:

Dt + 1(i) = 

D t(i)e −a ty ih t(x i)
Zt

(2)

Where Zt is a normalization factor chosen so that Dt+1 will
be a distribution

(cid:127) Final vote H(x) is a weighted sum:

H (x) = sign ( f (x)) = sign

T

Σ

t=1

atht(x)

     Figure 8.8.      AdaBoost algorithm.  

No Progress Prize candidates yet

Progress Prize - RMSE <= 0.8625

BellKor

0.8705

Progress Prize 2007 − RMSE = 0.8712 − Winning Team: KorBell

KorBell

When Gravity and Dinosaurs Unite
Gravity

basho

0.8712
0.8717
0.8743
0.8746

1

2
3
4
5

8.50

8.43
8.38
8.10

8.07

     Figure 8.9.      Top competitors in 2007/2008 for Netﬂ ix award.  

REVIEW  QUESTIONS  AND  PROBLEMS 

245

 8.5  

 REVIEW QUESTIONS AND PROBLEMS 

       1.     Explain the basic idea of ensemble learning, and discuss why the ensemble mecha-

nism is able to improve prediction accuracy of a model.   

    2.     Designing an ensemble model, there are factors that directly affect the accuracy of 

the ensemble. Explain those factors and approaches to each of them.   

    3.     Bagging and boosting are very famous ensemble approaches. Both of them gener-
ate a single predictive model from each different training set. Discuss the differ-
ences between bagging and boosting, and explain the advantages and disadvantages 
of each of them.   

    4.     Propose the efﬁ cient boosting approach for a large data set.   

    5.     In  the  bagging  methodology,  a  subset  is  formed  by  samples  that  are  randomly 
selected  with  replacement  from  training  samples.  On  average,  a  subset  contains 
approximately what percentage of training samples?   

    6.     In Figure 8 .7 , draw a picture of the next distribution  D  4 .     

α
    7.     In equation (2) of the AdaBoost algorithm (Fig.  8.8 ),   e t

y h x
i
i
t

(

) replaces the term of 

−α
  e t

y h x
i
t
i

(

). Explain how and why this change inﬂ uences the AdaBoost algorithm.     

    8.     Consider the following data set, where there are 10 samples with one dimension 

and two classes: 

 Training samples:

    x  1   

    x  2   

    x  3   

    x  4   

    x  5   

    x  6   

    x  7   

    x  8   

    x  9   

    x  10   

   f  1   
  Class  

  0.1  
  1  

  0.2  
  1  

  0.3  
  1  

  0.4  
   − 1  

  0.5  
  1  

  0.6  
   − 1  

  0.7  
  1  

  0.8  
   − 1  

  0.9  
   − 1  

  1.0  
   − 1  

    (a)      Determine ALL the best one - level binary decision trees. 

 (e.g., IF  f  1     ≤    0.35, THEN Class is 1, and IF  f  1     >    0.35, THEN Class is  − 1. The accuracy 
of that tree is 80%)  

  (b)      We have the following ﬁ ve training data sets randomly selected from the above training 

samples. Apply the bagging procedure using those training data sets. 

   (i)      Construct the best one - level binary decision tree from each training data set.  
  (ii)      Predict the training samples using each constructed one - level binary decision tree.  
  (iii)      Combine outputs predicted by each decision tree using voting method  
  (iv)      What is the accuracy rate provided by bagging? 

 Training Data Set 1:

    x  1   

    x  2   

    x  3   

    x  4   

    x  5   

    x  8   

    x  9   

    x  10   

    x  10   

    x  10   

   f  1   
  Class  

  0.1  
  1  

  0.2  
  1  

  0.3  
  1  

  0.4  
   − 1  

  0.5  
  1  

  0.8  
   − 1  

  0.9  
   − 1  

  1.0  
   − 1  

  1.0  
   − 1  

  1.0  
   − 1  

    
     
     
    
246 

ENSEMBLE  LEARNING

 Training Data Set 2:

    x  1   

    x  1   

    x  2   

    x  4   

    x  4   

    x  5   

    x  5   

    x  7   

    x  8   

    x  9   

   f  1   
  Class  

  0.1  
  1  

  0.1  
  1  

  0.2  
  1  

  0.4  
   − 1  

  0.4  
   − 1  

  0.5  
  1  

  0.5  
  1  

  0.7  
  1  

  0.8  
   − 1  

  0.9  
   − 1  

 Training Data Set 3:

    x  2   

    x  4   

    x  5   

    x  6   

    x  7   

    x  7   

    x  7   

    x  8   

    x  9   

    x  10   

   f  1   
  Class  

  0.2  
  1  

  0.4  
   − 1  

  0.5  
  1  

  0.6  
   − 1  

  0.7  
  1  

  0.7  
  1  

  0.7  
  1  

  0.8  
   − 1  

  0.9  
   − 1  

  1.0  
   − 1  

 Training Data Set 4:

    x  1   

    x  2   

    x  5   

    x  5   

    x  5   

    x  7   

    x  7   

    x  8   

    x  9   

    x  10   

   f  1   
  Class  

  0.1  
  1  

  0.2  
  1  

  0.5  
  1  

  0.5  
  1  

  0.5  
  1  

  0.7  
  1  

  0.7  
  1  

  0.8  
   − 1  

  0.9  
   − 1  

  1.0  
   − 1  

 Training Data Set 5:

    x  1   

    x  1   

    x  1   

    x  1   

    x  3   

    x  3   

    x  8   

    x  8   

    x  9   

    x  9   

   f  1   
  Class  

  0.1  
  1  

  0.1  
  1  

  0.1  
  1  

  0.1  
   − 1  

  0.3  
  1  

  0.3  
   − 1  

  0.8  
  1  

  0.8  
   − 1  

  0.9  
   − 1  

  0.9  
   − 1  

  (c)      Applying the AdaBoost algorithm (Fig.  8.8 ) to the above training samples, we generate 

the following initial one - level binary decision tree from those samples:

≤ .
f1
   IF 
f1
>

   IF 

,
0 35
.

,
0 35

1
 THEN Class is 

 THEN Class is 

−

1

 To  generate  the  next  decision  tree,  what  is  the  probability  (D 2   in  Fig.   8.8 )  that  each 
sample is selected to the training data set? ( α  t  is deﬁ ned as an accuracy rate of the initial 
decision tree on training samples.)      

    9.     For classifying a new sample into four classes: C1, C2, C3, and C4, we have an 
ensemble that consists of three different classiﬁ ers:  Classiﬁ er 1 ,  Classiﬁ ers 2 , and 
 Classiﬁ er 3 . Each of them has 0.9, 0.6, and 0.6 accuracy rate on training samples, 
respectively. When the new sample, X, is given, the outputs of the three classiﬁ ers 
are as follows:

    
     
       
    
     
    
     
     
 
  
    
REFERENCES  FOR  FURTHER  STUDY 

247

   Class Label  

    Classiﬁ er 1   

    Classiﬁ er 2   

    Classiﬁ er 3   

  C1  
  C2  
  C3  
  C4  

  0.9  
  0.0  
  0.1  
  0.0  

  0.3  
  0.4  
  0.2  
  0.1  

  0.0  
  0.9  
  0.0  
  0.1  

 Each number in the above table describes the probability that a classiﬁ er predicts 
the class of a new sample as a corresponding class. For example, the probability 
that  Classiﬁ er 1 predicts  the class of X as C1 is 0.9. 

 When  the  ensemble  combines  predictions  of  each  of  them,  as  a  combination 
method:
   (a)      If the  simple sum  is used, which class is X classiﬁ ed as and why?  
  (b)      If the  weight sum  is used, which class is X classiﬁ ed as and why?  
  (c)      If the  rank - level fusion  is used, which class is X classiﬁ ed as and why?      

    10.     Suppose you have a drug discovery data set, which has 1950 samples and 100,000 
features. You must classify chemical compounds represented by structural molecu-
lar  features  as  active  or  inactive  using  ensemble  learning.  In  order  to  generate 
diverse and independent classiﬁ ers for an ensemble, which ensemble methodology 
would you choose? Explain the reason for selecting that methodology.   

    11.     Which  of  the  following  is  a  fundamental  difference  between  bagging  and 

boosting? 
  (a)      Bagging  is  used  for  supervised  learning.  Boosting  is  used  with  unsupervised 

clustering.  

  (b)      Bagging gives varying weights to training instances. Boosting gives equal weight to all 

training instances.  

  (c)      Bagging does not take the performance of previously built models into account when 
building a new model. With boosting each new model is built based upon the results of 
previous models.  

  (d)      With boosting, each model has an equal weight in the classiﬁ cation of new instances. 

With bagging, individual models are given varying weights.        

  8.6  

 REFERENCES FOR FURTHER STUDY 

    Brown ,   G.  ,   Ensemble  Learning ,  in   Encyclopedia  of  Machine  Learning ,    C.    Sammut    and   Webb  

 G. I.  , eds.,  Springer Press ,  New York ,  2010 .  
   “ Ensemble  learning  refers  to  the  procedures  employed  to  train  multiple  learning  machines 
and combine their outputs, treating them as a committee of decision makers. ”  The principle 
is  that  the  committee  decision,  with  individual  predictions  combined  appropriately,  should 
have better overall accuracy, on average, than any individual committee member. Numerous 
empirical and theoretical studies have demonstrated that ensemble models very often attain 
higher accuracy than single models. Ensemble methods constitute some of the most robust 
and  accurate  learning  algorithms  of  the  past  decade.  A  multitude  of  heuristics  has  been 

248 

ENSEMBLE  LEARNING

developed for randomizing the ensemble parameters to generate diverse models. It is arguable 
that  this  line  of  investigation  is  rather  oversubscribed  nowadays,  and  the  more  interesting 
research is now in methods for nonstandard data.  

    Kuncheva ,  L. I.  ,  Combining Pattern Classiﬁ ers: Methods and Algorithms ,  Wiley Press ,  Hoboken, 

NJ ,  2004 .  
  Covering  pattern  classiﬁ cation  methods,   Combining  Classiﬁ ers:  Methods  and  Algorithms  
focuses on the important and widely studied issue of combining several classiﬁ ers together 
in order to achieve an improved recognition performance. It is one of the ﬁ rst books to provide 
uniﬁ ed, coherent, and expansive coverage of the topic and as such will be welcomed by those 
involved in the area. With case studies that bring the text alive and demonstrate  “ real - world ”  
applications it is destined to become an essential reading.  

    Dietterich ,  T. G.  ,  Ensemble Methods in Machine Learning , in  Lecture Notes in Computer Science 

on Multiple Classiﬁ er Systems , Vol.  1857 ,  Springer, Berlin ,  2000 .  
  Ensemble methods are learning algorithms that construct a set of classiﬁ ers and then classify 
new  data  points  by  taking  a  (weighted)  vote  of  their  predictions.  The  original  ensemble 
method  is  Bayesian  averaging,  but  more  recent  algorithms  include  error - correcting  output 
coding, bagging, and boosting. This paper reviews these methods and explains why ensembles 
can often perform better than any single classiﬁ er. Some previous studies comparing ensemble 
methods are reviewed, and some new experiments are presented to uncover the reasons that 
Adaboost does not overﬁ t rapidly.   

   
 
  9 

CLUSTER ANALYSIS     

  Chapter Objectives 

     (cid:127)       Distinguish between different representations of clusters and different measures 

of similarities.  

   (cid:127)       Compare  the  basic  characteristics  of  agglomerative -   and  partitional - clustering 

algorithms.  

   (cid:127)       Implement  agglomerative  algorithms  using  single - link  or  complete - link  mea-

sures of similarity.  

   (cid:127)       Derive  the  K - means  method  for  partitional  clustering  and  analysis  of  its 

complexity.  

   (cid:127)       Explain the implementation of incremental - clustering algorithms and its advan-

tages and disadvantages.  

   (cid:127)       Introduce concepts of density clustering, and algorithms Density - Based Spatial 
Clustering  of Applications  with  Noise  (DBSCAN)  and  Balanced  and  Iterative 
Reducing and Clustering Using Hierarchies (BIRCH).  

   (cid:127)       Discuss why validation of clustering results is a difﬁ cult problem.     

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

249

 
250 

CLUSTER  ANALYSIS

    Cluster analysis is a set of methodologies for automatic classiﬁ cation of samples into 
a number of groups using a measure of association so that the samples in one group 
are similar and samples belonging to different groups are not similar. The input for a 
system of cluster analysis is a set of samples and a measure of similarity (or dissimilar-
ity)  between  two  samples.  The  output  from  cluster  analysis  is  a  number  of  groups 
(clusters) that form a partition, or a structure of partitions, of the data set. One additional 
result of cluster analysis is a generalized description of every cluster, and this is espe-
cially important for a deeper analysis of the data set ’ s characteristics.  

   9.1  

  CLUSTERING CONCEPTS 

 Organizing data into sensible groupings is one of the most fundamental approaches of 
understanding and learning. Cluster analysis is the formal study of methods and algo-
rithms for natural grouping, or clustering, of objects according to measured or perceived 
intrinsic  characteristics  or  similarities.  Samples  for  clustering  are  represented  as  a 
vector  of  measurements,  or  more  formally,  as  a  point  in  a  multidimensional  space. 
Samples within a valid cluster are more similar to each other than they are to a sample 
belonging to a different cluster. Clustering methodology is particularly appropriate for 
the exploration of interrelationships among samples to make a preliminary assessment 
of the sample structure. Human performances are competitive with automatic - clustering 
procedures in one, two, or three dimensions, but most real problems involve clustering 
in higher dimensions. It is very difﬁ cult for humans to intuitively interpret data embed-
ded in a high - dimensional space. 

 Table   9.1   shows  a  simple  example  of  clustering  information  for  nine  customers, 
distributed across three clusters. Two features describe customers: The ﬁ rst feature is 
the number of items the customers bought, and the second feature shows the price they 
paid for each.   

 Customers in Cluster 1 purchase a few high - priced items; customers in Cluster 2 
purchase many high - priced items; and customers in Cluster 3 purchase few low - priced 

  TAB LE 9.1.     Sample Set of Clusters 
Consisting of Similar Objects 

   Number of Items  

  Cluster 1  

  Cluster 2  

  Cluster 3  

  2  
  3  
  4  
  10  
  12  
  11  
  2  
  3  
  3  

   Price  

  1700  
  2000  
  2300  
  1800  
  2100  
  2500  
  100  
  200  
  350  

     
CLUSTERING  CONCEPTS 

251

(cid:127)

(cid:127)
(cid:127) (cid:127)

(cid:127)

(cid:127)

(cid:127) (cid:127)
(cid:127)

(cid:127)

(cid:127)
(cid:127) (cid:127)
(cid:127)

(cid:127)

(cid:127) (cid:127)

(cid:127)

(cid:127)
(cid:127)

(cid:127)

(cid:127)
(cid:127)
(cid:127) (cid:127)
(cid:127)

(a)

(b) 

(c) 

     Figure 9.1.      Cluster analysis of points in a 2D - space. (a) Initial data; (b) three clusters of data; 
(c) four clusters of data.  

items. Even this simple example and interpretation of a cluster ’ s characteristics shows 
that  clustering  analysis  (in  some  references  also  called  unsupervised  classiﬁ cation) 
refers to situations in which the objective is to construct decision boundaries (classiﬁ ca-
tion surfaces) based on unlabeled training data set. The samples in these data sets have 
only input dimensions, and the learning process is classiﬁ ed as unsupervised. 

 Clustering is a very difﬁ cult problem because data can reveal clusters with different 
shapes and sizes in an n - dimensional data space. To compound the problem further, the 
number  of  clusters  in  the  data  often  depends  on  the  resolution  (ﬁ ne  vs.  coarse)  with 
which  we  view  the  data.  The  next  example  illustrates  these  problems  through  the 
process of clustering points in the Euclidean two - dimensional (2 - D) space. Figure  9.1 a 
shows a set of points (samples in a 2 - D space) scattered on a 2 - D plane. Let us analyze 
the problem of dividing the points into a number of groups. The number of groups N 
is  not  given  beforehand.  Figure   9.1 b  shows  the  natural  clusters  bordered  by  broken 
curves.  Since  the  number  of  clusters  is  not  given,  we  have  another  partition  of  four 
clusters  in  Figure   9.1 c  that  is  as  natural  as  the  groups  in  Figure   9.1 b.  This  kind  of 
arbitrariness for the number of clusters is a major problem in clustering.   

 Note that the above clusters can be recognized by sight. For a set of points in a 
higher dimensional Euclidean space, we cannot recognize clusters visually. Accordingly, 
we  need  an  objective  criterion  for  clustering.  To  describe  this  criterion,  we  have  to 
introduce a more formalized approach in describing the basic concepts and the cluster-
ing process. 

 An input to a cluster analysis can be described as an ordered pair (X,  s ), or (X,  d ), 
where X is a set of object descriptions represented with samples, and  s  and  d  are mea-
sures  for  similarity  or  dissimilarity  (distance)  between  samples,  respectively.  Output 
from the clustering system is a partition  Λ     =    {G 1 , G 2 ,    . . .    , G N  }, where G k , k    =    1,    . . .    , 
N is a crisp subset of X such that

   G G
1

…

2∪ ∪ ∪
G
j∩ = ∅

   G G
i

=

N

X and
,
≠   
j

for i

 The  members  G 1 ,  G 2 ,    . . .    ,  G N   of   Λ   are  called  clusters.  Every  cluster  may  be 
described with some characteristics. In discovery - based clustering, both the cluster (a 

 
252 

CLUSTER  ANALYSIS

X1 < 2

X1 ≥ 2

             C

1:   X1 < 2 

x
x
•
x C
x x

          X2 < 5

      X2 ≥ 5 

             C

2:   X1 ≥ 2  X2 < 5

              C3:   X1 ≥ 2  X2 ≥ 5 

^ 

^ 

  C1

   C2            C3

(a)

(b)

(c) 

     Figure  9.2.      Different  schemata  for  cluster  representation.  (a)  Centroid;  (b)  clustering  tree; 
(c) logical expressions.  

separate set of points in X) and its descriptions or characterizations are generated as a 
result of a clustering procedure. There are several schemata for a formal description of 
discovered clusters:

   1.      Represent a cluster of points in an n - dimensional space (samples) by their cen-

troid or by a set of distant (border) points in a cluster.  

  2.      Represent a cluster graphically using nodes in a clustering tree.  
  3.      Represent clusters by using logical expression on sample attributes.    

 Figure   9.2   illustrates  these  ideas.  Using  the  centroid  to  represent  a  cluster  is  the 
most popular schema. It works well when the clusters are compact or isotropic. When 
the clusters are elongated or non - isotropic, however, this schema fails to represent them 
properly.   

 The availability of a vast collection of clustering algorithms in the literature and 
also  in  different  software  environments  can  easily  confound  a  user  attempting  to 
select an approach suitable for the problem at hand. It is important to mention that there 
is  no  clustering  technique  that  is  universally  applicable  in  uncovering  the  variety  of 
structures  present  in  multidimensional  data  sets.  The  user ’ s  understanding  of  the 
problem  and  the  corresponding  data  types  will  be  the  best  criteria  in  selecting  the 
appropriate method. Most clustering algorithms are based on the following two popular 
approaches:

   1.      hierarchical clustering, and  
  2.      iterative square - error partitional clustering.    

 Hierarchical techniques organize data in a nested sequence of groups, which can 
be displayed in the form of a dendrogram or a tree structure. Square - error partitional 
algorithms attempt to obtain the partition that minimizes the within - cluster scatter or 
maximizes the between - cluster scatter. These methods are nonhierarchical because all 
resulting clusters are groups of samples at the same level of partition. To guarantee that 
an optimum solution has been obtained, one has to examine all possible partitions of 
the  N  samples  with  n  dimensions  into  K  clusters  (for  a  given  K),  but  that  retrieval 

SIMILARITY  MEASURES 

253

process is not computationally feasible. Notice that the number of all possible partitions 
of a set of N objects into K clusters is given by:

K

∑   
K N
j
( )
j

   1

/K

!

=
1

j

 So  various  heuristics  are  used  to  reduce  the  search  space,  but  then  there  is  no 

guarantee that the optimal solution will be found. 

 Hierarchical  methods  that  produce  a  nested  series  of  partitions  are  explained  in 
Section  6.3 , while partitional methods that produce only one level of data grouping are 
given with more details in Section  9.4 . The next section introduces different measures 
of similarity between samples; these measures are the core component of every cluster-
ing algorithm.  

   9.2  

  SIMILARITY MEASURES 

 To formalize the concept of a similarity measure, the following terms and notation are 
used throughout this chapter. A sample  x  (or feature vector, observation) is a single - data 
vector used by the clustering algorithm in a space of samples X. In many other texts, 
the term pattern is used. We do not use this term because of a collision in meaning with 
patterns  as  in  pattern - association  analysis,  where  the  term  has  a  totally  different 
meaning. Most data samples for clustering take the form of ﬁ nite dimensional vectors, 
and  it  is  unnecessary  to  distinguish  between  an  object  or  a  sample  x i ,  and  the  corre-
sponding  vector.  Accordingly,  we  assume  that  each  sample  x i     ∈    X,  i    =    1,    . . .    ,  n  is 
represented by a vector x i     =    {x i1 , x i2 ,    . . .    , x im }. The value m is the number of dimen-
sions  (features)  of  samples,  while  n  is  the  total  number  of  samples  prepared  for  a 
clustering process that belongs to the sample domain X. 

 A  sample  can  describe  either  a  physical  object  (a  chair)  or  an  abstract  object  (a 
style  of  writing).  Samples,  represented  conventionally  as  multidimensional  vectors, 
have each dimension as a single feature. These features can be either quantitative or 
qualitative descriptions of the object. If the individual scalar component x ij  of a sample 
x i  is a feature or attribute value, then each component x ij , j    =    1,    . . .    , m is an element 
of  a  domain  P j ,  where  P j   could  belong  to  different  types  of  data  such  as  binary 
(P j     =    {0,1}), integer (P j     ⊆    Z), real number (P j     ⊆    R), or a categorical set of symbols. In 
the  last  case,  for  example,  Pj  may  be  a  set  of  colors:  P j     =    {white,  black,  red,  blue, 
green}. If weight and color are two features used to describe samples, then the sample 
(20,  black)  is  the  representation  of  a  black  object  with  20  units  of  weight.  The  ﬁ rst 
feature is quantitative and the second one is qualitative. In general, both feature types 
can be further subdivided, and details of this taxonomy are already given in Chapter  1 . 

 Quantitative features can be subdivided as 

  1.       continuous values  (e.g., real numbers where P j      ⊆    R),  
  2.       discrete values  (e.g., binary numbers P j     =    {0,1}, or integers P j     ⊆    Z), and  
  3.       interval values  (e.g., P j     =    {x ij     ≤    20, 20    <    x ij     <    40, x ij     ≥    40}.    

254 

CLUSTER  ANALYSIS

 Qualitative features can be 

  1.       nominal or unordered  (e.g., color is  “ blue ”  or  “ red ” ), and  
  2.       ordinal  (e.g., military rank with values  “ general ”  and  “ colonel ” ).    

 Since similarity is fundamental to the deﬁ nition of a cluster, a measure of the simi-
larity  between  two  patterns  drawn  from  the  same  feature  space  is  essential  to  most 
clustering algorithms. This measure must be chosen very carefully because the quality 
of a clustering process depends on this decision. It is most common to calculate, instead 
of  the  similarity  measure,  the  dissimilarity  between  two  samples  using  a  distance 
measure deﬁ ned on the feature space. A distance measure may be a metric or a quasi -
 metric on the sample space, and it is used to quantify the dissimilarity of samples. 

 The word  “ similarity ”  in clustering means that the value of s(x, x ′ ) is large when 
x and x ′  are two similar samples; the value of s(x, x ′ ) is small when x and x ′  are not 
similar. Moreover, a similarity measure  s  is symmetric:

   s

x x
( ,

′ =
)

′
,
x x

),

s

(

∀

′∈   
x x X
,

 For most clustering techniques, we say that a similarity measure is normalized:

   0

≤

s( ,

x x

′ ≤ ∀
,
1
)

′∈
x x X   
,

 Very  often  a  measure  of  dissimilarity  is  used  instead  of  a  similarity  measure. A 
dissimilarity  measure  is  denoted  by  d(x,  x ′ ),   ∀ x,  x ′     ∈    X.  Dissimilarity  is  frequently 
called a distance. A distance d(x, x ′ ) is small when x and x ′  are similar; if x and x ′  are 
not similar d(x, x ′ ) is large. We assume without loss of generality that

( ,
   d x x

′ ≥ ∀
0
,
)

′∈
x x X
,

 Distance measure is also symmetric:

( ,
   d x x

′ =
)

′
d x x
,

(

),

∀

′∈  
x  x X
,

and  if  it  is  accepted  as  a   metric  distance  measure ,  then  a  triangular  inequality  is 
required:

( ,
   d x x

′′ ≤
)

( ,
d x x

′ +
)

′
d x x
,

(

′′ ∀
),

′′∈   
x x x X
,

′
,

 The  most  well - known  metric  distance  measure  is  the  Euclidean  distance  in  an 

m - dimensional feature space:

   d x x
(
i

,

2

=

)

j





m

∑

=
1

k

(

x

ik

−

x

jk

2

)

1

2





 Another  metric  that  is  frequently  used  is  called  the  L 1   metric  or  city  block 

distance:

  
  
SIMILARITY  MEASURES 

255

   d x x
(
i

,

1

=

)

j

m

∑

=
1

k

|

x

ik

−

x

jk

|

and ﬁ nally, the Minkowski metric includes the Euclidean distance and the city block 
distance as special cases:

   d x x
(
i

,

p

=

)

j





m

∑

=
1

k

(x

ik

−

x

jk

p

)

/

p

1




 It is obvious that when p    =    1, then d coincides with L 1  distance, and when p    =    2, 
d is identical with the Euclidean metric. For example, for 4 - D vectors x 1     =    {1, 0, 1, 0} 
and x 2     =    {2, 1,  − 3,  − 1}, these distance measures are d 1     =    1    +    1    +    4    +    1    =    7, d 2     =    (1    +    
1    +    16    +    1) 1/2     =    4.36, and d 3     =    (1    +    1    +    64    +    1) 1/3     =    4.06. 

 The Euclidian n - dimensional space model offers not only the Euclidean distance 

but also other measures of similarity. One of them is called the cosine - correlation:

   s

(

,
x x
i

j

)

cos

=





m

∑

=
1

k

(

x

ik

⋅

x jk

)









m

m

∑∑
x

2
ik

=
1

k

=
1

k

x

2
jk

1 22
/





 It is easy to see that

   s

cos(

x x
,
i

j

)

= ⇔ ∀

1

i j and
,

   s

cos(

,
x x
i

j

)

= − ⇔ ∀
1

,
i j and

0

where x

i

λ
= ⋅

x

j

where x

i

λ
= ⋅

x

j

0λ
>
λ
<

 For the previously given vectors x 1  and x 2 , the corresponding cosine measure of 

similarity is s cos (x 1 , x 2 )    =    (2    +    0    −    3    +    0)/(2  ½    ·    15  ½   )    =     − 0.18. 

 Computing  distances  or  measures  of  similarity  between  samples  that  have  some 
or all features that are noncontinuous is problematic, since the different types of features 
are not comparable and one standard measure is not applicable. In practice, different 
distance  measures  are  used  for  different  features  of  heterogeneous  samples.  Let  us 
explain  one  possible  distance  measure  for  binary  data.  Assume  that  each  sample  is 
represented by the n - dimensional vector x i , which has components with binary values 
(v ij     ∈    {0,1}). A  conventional  method  for  obtaining  a  distance  measure  between  two 
samples x i  and x j  represented with binary features is to use the 2    ×    2 contingency table 
for samples x i  and x j , as shown in Table  9.2 .   

 The meaning of the table parameters a, b, c, and d, which are given in Figure  6.2 , 

is as follows:

   1.       a  is the number of binary attributes of samples x i  and x j  such that x ik     =    x jk     =    1.  
  2.       b  is the number of binary attributes of samples x i  and x j  such that x ik     =    1 and 

x jk     =    0.  

  3.       c  is the number of binary attributes of samples x i  and x j  such that x ik     =    0 and 

x jk     =    1.  

  4.       d  is the number of binary attributes of samples x i  and x j  such that x ik     =    x jk     =    0.    

 
  
  
 
  
256 

CLUSTER  ANALYSIS

  TAB LE 9.2.     The 2    ×    2 Contingency Table 

  x i   

    x j   

  1  

  a  

  c  

  1  

  0  

  0  

  b  

  d  

 For example, if x i  and x j  are 8 - D vectors with binary feature values

   xi = { ,
   x j = { , , ,

0 0 1 1 0 1 0 1  
, }

, , ,

, ,

0 1 1 0 0 1 0 0   
, }

, ,

,

 then the values of the parameters introduced are

=

   a

,
2

b

=

,
2

c

=

,
1

and d

=

.   
3

 Several  similarity  measures  for  samples  with  binary  features  are  proposed  using 

the values in the 2    ×    2 contingency table. Some of them are 

  1.      simple matching coefﬁ cient (SMC) 

    s

smc

(

,
x x
i

j

)

=

+
(
a d

) /(

+ + +
a b c d

)

  2.      Jaccard Coefﬁ cient 

  3.      Rao ’ s Coefﬁ cient 

    s x x
(
i

jc

,

=

)

j

a a b c

+ +

/(

)

(
    s x x
i

rc

,

=

)

j

a a b c d

+ + +

/(

)

 For the previously given 8 - D samples x i  and x j  these measures of similarity will 

be s smc (x i , x j )    =    5/8, s jc (x i , x j )    =    2/5, and s rc (x i , x j )    =    2/8. 

 How to measure distances between values when categorical data are not binary? 
The  simplest  way  to  ﬁ nd  similarity  between  two  categorical  attributes  is  to  assign  a 
similarity  of  1  if  the  values  are  identical  and  a  similarity  of  0  if  the  values  are  not 
identical. For two multivariate categorical data points, the similarity between them will 
be directly proportional to the number of attributes in which they match. This simple 
measure is also known as the  overlap measure  in the literature. One obvious drawback 
of the overlap measure is that it does not distinguish between the different values taken 
by an attribute. All matches, as well as mismatches, are treated as equal. 

 This observation has motivated researchers to come up with data - driven similarity 
measures  for  categorical  attributes.  Such  measures  take  into  account  the  frequency 

   
   
     
     
    
SIMILARITY  MEASURES 

257

distribution of different attribute values in a given data set to deﬁ ne similarity between 
two  categorical  attribute  values.  Intuitively,  the  use  of  additional  information  would 
lead to a better performance. There are two main characteristics of categorical data that 
are included in new measures of similarity (distance):

   1.      number of values taken by each attribute, n k  (one attribute might take several 
hundred possible values, while another attribute might take very few values); 
and  

  2.      distribution f k (x), which refers to the distribution of frequency of values taken 

by an attribute in the given data set.    

 Almost all similarity measures assign a similarity value between two d - dimensional 

samples X and Y belonging to the data set D as follows:

   S X Y
(

,

)

=

d

∑

=
1

k

w S X Y
(
k
k

,

k

k

)

where  S k  ( X k  ,  Y k  ) is the per - attribute similarity between two values for the categorical 
attribute A k . The quantity  w k   denotes the weight assigned to the attribute A k . To under-
stand how different measures calculate the per - attribute similarity,  S k  ( X k  ;  Y k  ), consider 
a categorical attribute A, which takes one of the values{a, b, c, d}. The per - attribute 
similarity computation is equivalent to constructing the (symmetric) matrix shown in 
Table  9.3 .   

 Essentially,  in  determining  the  similarity  between  two  values,  any  categorical 
measure is ﬁ lling the entries of this matrix. For example, the overlap measure sets the 
diagonal entries to 1 and the off - diagonal entries to 0, that is, the similarity is 1 if the 
values match and 0 if the values mismatch. Additionally, measures may use the follow-
ing information in computing a similarity value (all the measures in this paper use only 
this information):

   1.      f(a), f(b), f(c), and f(d), the frequencies of the values in the data set;  
  2.      N, the size of the data set; and  
  3.      n, the number of values taken by the attribute (4 in the case above).    

  TAB LE 9.3.     Similarity Matrix for a Single 
Categorical Attribute 

   a  

   b  

   c  

   d  

  a  
  b  
  c  
  d  

  S(a,a)  

  S(a,b)  
  S(b,b)  

  S(a,c)  
  S(b,c)  
  S(c,c)  

  S(a,d)  
  S(b,d)  
  S(c,d)  
  S(d,d)  

     
    
    
    
    
    
    
 
258 

CLUSTER  ANALYSIS

  TA BLE 9.4.     Goodall3 Similarity Measure for Categorical 
Attributes 

    S k (X k , Y k )  

   w k , k    =    1,    . . .    , d  

    1

2− p Xk
(

k

)     

  if X k     =    Y k   

  1/d  

  0  

  otherwise  

   Measure  

  Goodall3  

x2

B

A

C

x1

     Figure 9.3.      A and B are more similar than B and C using the MND measure.  

 We will present, as an illustrative example, only one additional measure of similar-
ity for categorical data,  Goodall3 , because it shows good performances on average for 
a variety of experiments with different data sets. That does not mean that some other 
measures such as Eskin, Lin, Smirnov, or Burnaby will not be more appropriate for a 
speciﬁ c data set. The  Goodall3 measure , given in Table  9.4 , assigns a high similarity 
if the matching values are infrequent regardless of the frequencies of the other values.

The range of  S k  ( X k  ;  Y k  ) for matches in the  Goodall3  measure is    0 1
,




−

2
N N
(

−

)
1




, with 

the minimum value being attained if  X k   is the only value for attribute A k  and maximum 
value is attained if  X k   occurs only twice.   

 There  are  some  advanced  distance  measures  applicable  to  categorical  data,  and 
also to numerical data, that take into account the effect of the surrounding or neighbor-
ing points in the n - dimensional spaces of samples. These surrounding points are called 
contexts. The similarity between two points, x i  and x j , with the given context, is mea-
sured using the  mutual neighbor distance  (MND), which is deﬁ ned as

(
   MND x x

,

i

=

)

j

(
NN x x

,

i

+

)

j

(
NN x x

,

j

)

i

where NN(x i , x j ) is the neighbor number of x j  with respect to x i . If x i  is the closest point 
to x j,  then NN(x i , x j ) is equal to 1, if it is the second closest point, NN(x i , x j ) is equal 
to  2,  and  so  on.  Figures   9.3   and   9.4   give  an  example  of  the  computation  and  basic 
characteristics of the MND measure.   

 Points in Figures  9.3  and  9.4 , denoted by A, B, C, D, E, and F, are 2 - D samples 
with features x 1  and x 2 . In Figure  9.3 , the nearest neighbor of A is B using Euclidian 
distance, and B ’ s nearest neighbor is A. So,

)
   NN A B NN B A 1 MND A B

( ,

)

(

)

(

,

,

= ⇒

=

= 2   

 
AGGLOMERATIVE  HIERARCHICAL  CLUSTERING 

259

2x

B

D A
E

F

C

x

1

     Figure 9.4.      After changes in the context, B and C are more similar than A and B using the 
MND measure.  

 If we compute the distance between points B and C, the results will be

( ,
   NN B C

)

=

1
,

= ⇒
NN C B 2 MND B C

( ,

( ,

)

=

)

3   

 Figure  9.4  was obtained from Figure  9.3  by adding three new points D, E, and F 
(samples in the data set). Now, because the context has changed, the distances between 
the same points A, B, and C have also changed:

)
   NN A B
(

,

( ,
   NN B C

)

=

=

1
,

( ,
NN B A

)

= ⇒
4

)
MND A B
(

,

=

5  

1
,

)
NN C B
( ,

= ⇒
2

MND B C

( ,

)

=

3   

 The MND between A and B has increased by introducing additional points close 
to A, even though A and B have not moved. B and C points become more similar than 
points A and B. The MND measure is not a metric because it does not satisfy the triangle 
inequality.  Despite  this,  MND  has  been  successfully  applied  in  several  real - world 
clustering tasks. 

 In general, based on a distance measure between samples, it is possible to deﬁ ne 
a distance measure between clusters (set of samples). These measures are an essential 
part  in  estimating  the  quality  of  a  clustering  process,  and  therefore  they  are  part  of 
clustering algorithms. The widely used measures for distance between clusters C i  and 
C j  are 

  1.      D min  (C i , C j )    =    min |p i     −    p j |, where p i     ∈    C i  and p j     ∈    C j ;  
  2.      D mean  (C i , C j )    =    |m i     −    m j  |, where m i  and m j  are centriods of C i  and C j ;  
  3.      D avg  (C i , C j )    =    1/(n i  n j )  Σ   Σ  |p i     −    p j |, where p i     ∈    C i  and p j     ∈    C j , and n i  and n j  are 

the numbers of samples in clusters C i  and C j ; and  
  4.      D max  (C i , C j )    =    max |p i     −    p j |, where p i     ∈    C i  and p j     ∈    C j .     

   9.3  

  AGGLOMERATIVE HIERARCHICAL CLUSTERING 

 In hierarchical - cluster analysis, we do not specify the number of clusters as a part of 
the input. Namely, the input to a system is (X, s), where X is a set of samples, and s 

260 

CLUSTER  ANALYSIS

is  a  measure  of  similarity. An  output  from  a  system  is  a  hierarchy  of  clusters.  Most 
procedures for hierarchical clustering are not based on the concept of optimization, and 
the goal is to ﬁ nd some approximate, suboptimal solutions, using iterations for improve-
ment  of  partitions  until  convergence. Algorithms  of  hierarchical  cluster  analysis  are 
divided into the two categories, divisible algorithms and agglomerative algorithms. A 
 divisible algorithm  starts from the entire set of samples X and divides it into a partition 
of  subsets,  then  divides  each  subset  into  smaller  sets,  and  so  on.  Thus,  a  divisible 
algorithm  generates  a  sequence  of  partitions  that  is  ordered  from  a  coarser  one  to  a 
ﬁ ner one. An  agglomerative algorithm  ﬁ rst regards each object as an initial cluster. The 
clusters are merged into a coarser partition, and the merging process proceeds until the 
trivial partition is obtained: All objects are in one large cluster. This process of cluster-
ing is a bottom - up process, where partitions are from a ﬁ ner one to a coarser one. In 
general, agglomerative algorithms are more frequently used in real - world applications 
than  divisible  methods,  and  therefore  we  will  explain  the  agglomerative  approach  in 
greater detail. 

 Most agglomerative hierarchical clustering algorithms are variants of the  single -
 link  or  complete - link  algorithms. These two basic algorithms differ only in the way they 
characterize  the  similarity  between  a  pair  of  clusters.  In  the  single - link  method,  the 
distance  between  two  clusters  is  the   minimum   of  the  distances  between  all  pairs  of 
samples drawn from the two clusters (one element from the ﬁ rst cluster, the other from 
the second). In the complete - link algorithm, the distance between two clusters is the 
 maximum  of all distances between all pairs drawn from the two clusters. A graphical 
illustration of these two distance measures is given in Figure  9.5 .   

 In either case, two clusters are merged to form a larger cluster based on minimum -
 distance criteria. Although the single - link algorithm is computationally simpler, from 
a practical viewpoint it has been observed that the complete - link algorithm produces 
more useful hierarchies in most applications. 

 As explained earlier, the only difference between the single - link and complete - link 
approaches is in the distance computation. For both, the basic steps of the agglomera-
tive clustering algorithm are the same. These steps are as follows:

   1.      Place each sample in its own cluster. Construct the list of intercluster distances 
for all distinct unordered pairs of samples, and sort this list in ascending order.  

Cluster 2 

Cluster 2 

Cluster 1 

Cluster 1 

(a)

(b)

     Figure 9.5.      Distances for a single - link and a complete - link clustering algorithm. (a) Single -
 link distance; (b) complete - link distance.  

AGGLOMERATIVE  HIERARCHICAL  CLUSTERING 

261

3 

2 

1 

0

 0

  1

 2

3

4

5 

     Figure 9.6.      Five two - dimensional samples for clustering.  

  2.      Step  through  the  sorted  list  of  distances,  forming  for  each  distinct  threshold 
value d k  a graph of the samples where pairs of samples closer than d k  are con-
nected into a new cluster by a graph edge. If all the samples are members of a 
connected graph, stop. Otherwise, repeat this step.  

  3.      The output of the algorithm is a nested hierarchy of graphs, which can be cut 
at  the  desired  dissimilarity  level  forming  a  partition  (clusters)  identiﬁ ed  by 
simple connected components in the corresponding subgraph.    

 Let us consider ﬁ ve points {x 1 , x 2 , x 3 , x 4 , x 5 } with the following coordinates as a 

2 - D sample for clustering:

=

   x
1

( ,
0 2

),

x

2

=

( ,
0 0

),

x

3

=

( . ,
1 5 0

),

x

4

=

( ,
5 0

),

and x

5

=

( ,
5 2

).   

 For this example, we selected 2 - D points because it is easier to graphically repre-
sent these points and to trace all the steps in the clustering algorithm. The points are 
represented graphically in Figure  9.6 .   

 The distances between these points using the Euclidian measure are

(
   d x
1

,

x =
)
2

2
,

d x x
1

(

,

=

)

3

2 5
. ,

d x x
1

(

,

=

)

4

5 39
.
,

d x x
1

(

,

)

5

=  
5

   d x x
2

(

,

=

)

3

1 5
. ,

d x x
2

(

,

)

4

=

5
,

d x x
2

(

,

=

)

5

5 29
.

   d x x
3

(

,

=

)

4

3 5
. ,

5

(

d x x
,
3
2=   

)

5

   d x x
4

(

,

=

)

4 03
.

 The distances between points as clusters in the ﬁ rst iteration are the same for both 
single - link and complete - link clustering. Further computation for these two algorithms 
is  different.  Using  agglomerative  single - link  clustering,  the  following  steps  are  per-
formed to create a cluster and to represent the cluster structure as a dendrogram. 

 First  x 2   and  x 3   samples  are  merged  and  a  cluster  {x 2 ,  x 3 }  is  generated  with  a 
minimum distance equal to 1.5. Second, x 4  and x 5  are merged into a new cluster {x 4 , x 5 } 
with a higher merging level of 2.0. At the same time, the minimum single - link distance 
between clusters {x 2 , x 3 } and {x 1 } is also 2.0. So, these two clusters merge at the same 
level of similarity as x 4  and x 5 . Finally, the two clusters {x 1 , x 2 , x 3 } and {x 4 , x 5 } are 

 
 
262 

CLUSTER  ANALYSIS

__________1.5__________2.0________2.2__________________3.5____

x2 

x3 

x1 

x4 

x5 

     Figure 9.7.      Dendrogram by single - link method for the data set in Figure  9.6 .  

__________1.5_________2.0____ 2.2_____2.5_______________5.4___

x2 

x3 

x1 

x4 

x5 

     Figure 9.8.      Dendrogram by complete - link method for the data set in Figure  9.6 .  

merged at the highest level with a minimum single - link distance of 3.5. The resulting 
dendrogram is shown in Figure  9.7 .   

 The cluster hierarchy created by using an agglomerative complete - link clustering 
algorithm is different compared with the single - link solution. First, x 2  and x 3  are merged 
and a cluster {x 2 , x 3 } is generated with the minimum distance equal to 1.5. Also, in the 
second  step,  x 4   and  x 5   are  merged  into  a  new  cluster  {x 4 ,  x 5 }  with  a  higher  merging 
level of 2.0. Minimal single - link distance is between clusters {x 2 , x 3 }, and {x 1 } is now 
2.5, so these two clusters merge after the previous two steps. Finally, the two clusters 
{x 1 , x 2 , x 3 } and {x 4 , x 5 } are merged at the highest level with a minimal complete - link 
distance of 5.4. The resulting dendrogram is shown in Figure  9.8 .   

 Selecting, for example, a threshold measure of similarity s    =    2.2, we can recognize 
from the dendograms in Figures  9.7  and  9.8  that the ﬁ nal clusters for single - link and 
complete - link  algorithms  are  not  the  same. A  single - link  algorithm  creates  only  two 
clusters: {x 1 , x 2 , x 3 } and {x 4 , x 5 }, while a complete - link algorithm creates three clusters: 
{x 1 }, {x 2 , x 3 }, and {x 4 , x 5 }. 

 Unlike traditional agglomerative methods,  Chameleon  is a clustering algorithm that 
tries to improve the clustering quality by using a more elaborate criterion when merging 
two clusters. Two clusters will be merged if the interconnectivity and closeness of the 
merged clusters is very similar to the interconnectivity and closeness of the two indi-
vidual clusters before merging. 

PARTITIONAL  CLUSTERING 

263

 To form the initial subclusters, Chameleon ﬁ rst creates a graph G    =    (V, E), where 
each node v    ∈    V represents a data sample, and a weighted edge e(v i , v j ) exists between 
two  nodes  v i   and  v j   if  v j   is  one  of  the  k - nearest  neighbors  of  v i . The  weight  of  each 
edge in G represents the closeness between two samples, that is, an edge will weigh 
more if the two data samples are closer to each other.  Chameleon  then uses a graph -
 partition algorithm to recursively partition G into many small, unconnected subgraphs 
by doing a min - cut on G at each level of recursion. Here, a min - cut on a graph G refers 
to a partitioning of G into two parts of close, equal size such that the total weight of 
the edges being cut is minimized. Each subgraph is then treated as an initial subcluster, 
and the algorithm is repeated until a certain criterion is reached. 

 In  the  second  phase,  the  algorithm  goes  bottom - up.   Chameleon   determines  the 
similarity between each pair of elementary clusters C i  and C j  according to their relative 
interconnectivity  RI (C i , C j ) and their relative closeness  RC (C i , C j ). Given that the inter-
connectivity of a cluster is deﬁ ned as the total weight of edges that are removed when 
a min - cut is performed, the relative interconnectivity  RI (C i , C j ) is deﬁ ned as the ratio 
between the interconnectivity of the merged cluster C i  and C j  to the average intercon-
nectivity of C i  and C j . Similarly, the relative closeness  RC (C i , C j ) is deﬁ ned as the ratio 
between the closeness of the merged cluster of C i  and C j  to the average internal close-
ness of C i  and C j . Here the closeness of a cluster refers to the average weight of the 
edges that are removed when a min - cut is performed on the cluster. 

 The  similarity  function  is  then  computed  as  a  product:   RC (C i ,  C j )    *     RI (C i ,  C j )  α   
where  α  is a parameter between 0 and 1. A value of 1 for  α  will give equal weight to 
both measures while decreasing  α  will place more emphasis on  RI (C i , C j ). Chameleon 
can automatically adapt to the internal characteristics of the clusters and it is effective 
in discovering arbitrarily shaped clusters of varying density. However, the algorithm is 
not effective for high - dimensional data having O(n 2 ) time complexity for n samples.  

   9.4  

  PARTITIONAL CLUSTERING 

 Every partitional - clustering algorithm obtains a single partition of the data instead of 
the clustering structure, such as a dendrogram, produced by a hierarchical technique. 
Partitional  methods  have  the  advantage  in  applications  involving  large  data  sets  for 
which the construction of a dendrogram is computationally very complex. The parti-
tional  techniques  usually  produce  clusters  by  optimizing  a  criterion  function  deﬁ ned 
either  locally  (on  a  subset  of  samples)  or  globally  (deﬁ ned  over  all  of  the  samples). 
Thus, we say that a clustering criterion can be either global or local. A global criterion, 
such as the Euclidean square - error measure, represents each cluster by a prototype or 
centroid and assigns the samples to clusters according to the most similar prototypes. 
A local criterion, such as the minimal MND, forms clusters by utilizing the local struc-
ture or context in the data. Therefore, identifying high - density regions in the data space 
is a basic criterion for forming clusters. 

 The  most  commonly  used  partitional - clustering  strategy  is  based  on  the  square -
 error criterion. The general objective is to obtain the partition that, for a ﬁ xed number 
of clusters, minimizes the total square - error. Suppose that the given set of N samples 

264 

CLUSTER  ANALYSIS

in an n - dimensional space has somehow been partitioned into K clusters {C 1 , C 2 ,    . . .    , 
C k }. Each C k  has n k  samples and each sample is in exactly one cluster, so that  Σ n k     =    N, 
where k    =    1,    . . .    , K. The mean vector M k  of cluster C k  is deﬁ ned as the  centroid  of 
the cluster or

   M

k

=

nk

∑( /
1
)
n

k

x

ik

where x ik  is the i th  sample belonging to cluster C k . The square - error for cluster C k  is the 
sum  of  the  squared  Euclidean  distances  between  each  sample  in  C k   and  its  centroid. 
This error is also called the  within - cluster variation :

=
1

i

   e

2
k

=

nk

∑

=
1

i

−
(x M

ik

k

2
)   

 The square - error for the entire clustering space containing K clusters is the sum of 

the within - cluster variations:

   E

2
k

=

K

∑   
e

2
k

=
1

k

 The objective of a square - error clustering method is to ﬁ nd a partition containing 

K clusters that minimize   E k

2 for a given K. 

 The  K - means partitional - clustering algorithm  is the simplest and most commonly 
used algorithm employing a square - error criterion. It starts with a random, initial parti-
tion  and  keeps  reassigning  the  samples  to  clusters,  based  on  the  similarity  between 
samples  and  clusters,  until  a  convergence  criterion  is  met. Typically,  this  criterion  is 
met when there is no reassignment of any sample from one cluster to another that will 
cause a decrease of the total squared error. K - means algorithm is popular because it is 
easy  to  implement,  and  its  time  and  space  complexity  is  relatively  small.  A  major 
problem with this algorithm is that it is sensitive to the selection of the initial partition 
and may converge to a local minimum of the criterion function if the initial partition 
is not properly chosen. 

 The simple K - means partitional - clustering algorithm is computationally efﬁ cient 
and  gives  surprisingly  good  results  if  the  clusters  are  compact,  hyperspherical  in 
shape, and well separated in the feature space. The basic steps of the K - means algo-
rithm  are 

  1.      select an initial partition with K clusters containing randomly chosen samples, 

and compute the centroids of the clusters;  

  2.      generate a new partition by assigning each sample to the closest cluster center;  
  3.      compute new cluster centers as the centroids of the clusters; and  
  4.      repeat steps 2 and 3 until an optimum value of the criterion function is found 

(or until the cluster membership stabilizes).    

 
PARTITIONAL  CLUSTERING 

265

 Let us analyze the steps of the K - means algorithm on the simple data set given in 
Figure  9.6 . Suppose that the required number of clusters is two, and initially, clusters 
are formed from a random distribution of samples: C 1     =    {x 1 , x 2 , x 4 } and C 2     =    {x 3 , x 5 }. 
The centriods for these two clusters are

   M1

=

{(

+ +

, (
0 0 5 3 2 0 0 3

) /

+ +

=
) / } { .

,
1 66 0 66

. } 

   M2

=

{( .

, (
1 5 5 2 0 2 2

) /

=
) / } { .

,
3 25 1 00

. }   

+

+

 Within - cluster variations, after initial random distribution of samples, are

2
e1

=

=

[(

−

.
0 1 66

)

2

+

−

.
2 0 66

(

2
) ]

+

[(

−

.
0 1 66

)

2

+

−

.
0 0 66

(

2
) ]

+

[(

−

.
5 1 66

2

) ++

−

0 0 66
.

(

2
) ]

19 36
.

2
   e2

=

−
)
1 5 3 25

[( .

.

2

+

−
0 1

2
) ]

(

+

[(

−

)
5 3 25
.

2

+

−
2 1

2
) ]

(

=

.
8 12

 And the total square - error is

2

   E

=

2
e
1

+

e

2
2

=

.
19 36 8 12 27 48

.

.

=

+

 When we reassign all samples, depending on a minimum distance from centroids 

M 1  and M 2 , the new redistribution of samples inside clusters will be

   d M x
1
1

(

,

=

)

( .
1 66

2

+

.
1 34

/

2 1 2
)

=

.
2 14

(
 and d M x
1

,

2

⇒ ∈  

C
1

x
1

   d M x
1

(

,

)

2

   d M x
1

(

,

)

3

   d M x
1

(

,

   d M x
1

(

,

)

4

)

5

=

=

=

=

1 79
.

.
0 83

3 41
.

3 60
.

(
and d M x

,

2

)

2

(
and d M x

,

2

)

3

(
and d M x

,

2

(
and d M x

,

2

)

4

)

5

=

=

=

=

3 40
.

.
2 01

2 01
.

2 01
.

=

2

)

x

C
1

.
3 40
⇒ ∈  
⇒ ∈  
⇒ ∈  
⇒ ∈   

C
1

C

C

x

x

x

2

4

3

2

5

 New clusters C 1     =    {x 1 , x 2 , x 3 } and C 2     =    {x 4 , x 5 } have new centroids

   M1

0 5 0 67

. }  

= { . ,
= { . ,

   M2

5 0 1 0

. }   

 The corresponding within - cluster variations and the total square - error are

2
   e1

2
   e2

4 17

= .
= .

2 00

   E2

= .

6 17

 We can see that after the ﬁ rst iteration, the total square - error is signiﬁ cantly reduced 
(from  the  value  27.48  to  6.17).  In  this  simple  example,  the  ﬁ rst  iteration  was  at  the 
same time the ﬁ nal one because if we analyze the distances between the new centroids 
and the samples, the latter will all be assigned to the same clusters. There is no reas-
signment and therefore the algorithm halts. 

   
 
  
  
 
 
  
266 

CLUSTER  ANALYSIS

 In summary, the K - means algorithm and its equivalent in an artiﬁ cial neural net-
works domain — the Kohonen net — have been applied for clustering on large data sets. 
The reasons behind the popularity of the K - means algorithm are as follows:

   1.      Its time complexity is O(n    ×    k    ×    l), where n is the number of samples, k is the 
number of clusters, and l is the number of iterations taken by the algorithm to 
converge. Typically, k and l are ﬁ xed in advance and so the algorithm has linear 
time complexity in the size of the data set.  

  2.      Its space complexity is O(k    +    n), and if it is possible to store all the data in the 
primary memory, access time to all elements is very fast and the algorithm is 
very efﬁ cient.  

  3.      It is an order - independent algorithm. For a given initial distribution of clusters, 
it generates the same partition of the data at the end of the partitioning process 
irrespective of the order in which the samples are presented to the algorithm.    

 A  big  frustration  in  using  iterative  partitional - clustering  programs  is  the  lack  of 
guidelines available for choosing K - number of clusters apart from the ambiguity about 
the best direction for initial partition, updating the partition, adjusting the number of 
clusters, and the stopping criterion. The K - means algorithm is very sensitive to noise 
and outlier data points, because a small number of such data can substantially inﬂ uence 
the mean value. Unlike the K - means, the  K - mediods  method, instead of taking the mean 
value of the samples, uses the most centrally located object (mediods) in a cluster to 
be the cluster representative. Because of this, the K - mediods method is less sensitive 
to  noise  and  outliers.   Fuzzy  c - means ,  proposed  by  Dunn  and  later  improved,  is  an 
extension of K - means algorithm where each data point can be a member of multiple 
clusters with a membership value expressed through fuzzy sets. Despite its drawbacks, 
k - means remains the most widely used partitional clustering algorithm in practice. The 
algorithm is simple, easily understandable and reasonably scalable, and can be easily 
modiﬁ ed to deal with streaming data.  

   9.5  

  INCREMENTAL CLUSTERING 

 There are more and more applications where it is necessary to cluster a large collection 
of data. The deﬁ nition of  “ large ”  has varied with changes in technology. In the 1960s, 
 “ large ”   meant  several - thousand  samples  for  clustering.  Now,  there  are  applications 
where millions of samples of high dimensionality have to be clustered. The algorithms 
discussed above work on large data sets, where it is possible to accommodate the entire 
data set in the main memory. However, there are applications where the entire data set 
cannot  be  stored  in  the  main  memory  because  of  its  size.  There  are  currently  three 
possible approaches to solve this problem:

   1.      The data set can be stored in a secondary memory and subsets of this data are 
clustered independently, followed by a merging step to yield a clustering of the 
entire set. We call this approach the divide - and - conquer approach.  

INCREMENTAL  CLUSTERING 

267

  2.      An incremental - clustering algorithm can be employed. Here, data are stored in 
the secondary memory and data items are transferred to the main memory one 
at a time for clustering. Only the cluster representations are stored permanently 
in the main memory to alleviate space limitations.  

  3.      A  parallel  implementation  of  a  clustering  algorithm  may  be  used  where  the 
advantages  of  parallel  computers  increase  the  efﬁ ciency  of  the  divide - and -
 conquer approach.    

 An incremental - clustering approach is most popular, and we will explain its basic 
principles. The following are the global steps of the incremental - clustering algorithm.

   1.      Assign the ﬁ rst data item to the ﬁ rst cluster.  
  2.      Consider the next data item. Either assign this item to one of the existing clusters 
or assign it to a new cluster. This assignment is done based on some criterion, 
for  example,  the  distance  between  the  new  item  and  the  existing  cluster  cen-
troids.  In  that  case,  after  every  addition  of  a  new  item  to  an  existing  cluster, 
recompute a new value for the centroid.  

  3.      Repeat step 2 until all the data samples are clustered.    

 The  space  requirements  of  the  incremental  algorithm  are  very  small,  necessary 
only for the centroids of the clusters. Typically, these algorithms are non - iterative and 
therefore  their  time  requirements  are  also  small.  But,  even  if  we  introduce  iterations 
into the incremental - clustering algorithm, computational complexity and corresponding 
time requirements do not increase signiﬁ cantly. On the other hand, there is one obvious 
weakness  of  incremental  algorithms  that  we  have  to  be  aware  of.  Most  incremental 
algorithms  do  not  satisfy  one  of  the  most  important  characteristics  of  a  clustering 
process: order - independence. An algorithm is order - independent if it generates the same 
partition for any order in which the data set is presented. Incremental algorithms are 
very  sensitive  to  the  order  of  samples,  and  for  different  orders  they  generate  totally 
different partitions. 

 Let us analyze the incremental - clustering algorithm with the sample set given in 
Figure  9.6 . Suppose that the order of samples is x 1 , x 2 , x 3 , x 4 , x 5  and the threshold level 
of similarity between clusters is  δ     =    3.

   1.      The ﬁ rst sample x 1  will become the ﬁ rst cluster C 1     =    {x 1 }. The coordinates of 

x 1  will be the coordinates of the centroid M 1     =    {0, 2}.  

  2.      Start analysis of the other samples. 

   (a)      Second sample x 2  is compared with M 1 , and the distance d is determined 

    d x M
,
1
2

(

)

=

2

(

0

+

2

/

2 1 2
)

=

<   
2 0 3
.

 Therefore, x 2  belongs to the cluster C 1 . The new centroid will be

   M1

= { , }    
0 1

268 

CLUSTER  ANALYSIS

  (b)      The  third  sample  x 3   is  compared  with  the  centroid  M 1   (still  the  only 

centroid):

    x

3

   d x M(
,
1
3
∈ ⇒ =

C
1

C
1

=

)

2
1 5
( .

+

2
1

)

1

2

=

<   
1 8 3

.

{ ,
x x x
2
1

,

3

}

⇒ =
M
1

{ . ,
0 5 0 66

. }    

  (c)      The fourth sample x 4  is compared with the centroid M 1 : 

    d x M(
,
1
4

)

=

2
( .
4 5

+

.
0 66

/

2 1 2
)

=

>   
.
4 55 3

 Because  the  distance  of  the  sample  from  the  given  centroid  M 1   is  larger 
than the threshold value  δ , this sample will create its own cluster C 2     =    {x 4 } 
with the corresponding centroid M 2     =    {5, 0}.  

  (d)      The ﬁ fth sample x 5  is compared with both cluster centroids: 

    d x M(
,
1
5

)

=

2
4 5
( .

+

1 44
.

2

)

1

2

    d x M(
,
5

2

)

=

2

(

0

+

2

2 1 2
) /

>   
4 72 3

=

.
= <   
2 3

 The  sample  is  closer  to  the  centroid  M 2 ,  and  its  distance  is  less  than  the 
threshold value  δ . Therefore, sample x 5  is added to the second cluster C 2 : 

    C

2

=

x x
{ ,
4

5

}

⇒ =
M

2

{ , }      
5 1

  3.      All  samples  are  analyzed  and  a  ﬁ nal  clustering  solution  of  two  clusters  is 

obtained: 

=

    C
1

{ ,
x x x and C
3
1

}

,

2

=

2

{ ,
x x
4

5

}      

 The reader may check that the result of the incremental - clustering process will not 
be the same if the order of the samples is different. Usually, this algorithm is not itera-
tive (although it could be) and the clusters generated after all the samples have been 
analyzed  in  one  iteration  are  the  ﬁ nal  clusters.  If  the  iterative  approach  is  used,  the 
centroids of the clusters computed in the previous iteration are used as a basis for the 
partitioning of samples in the next iteration. 

 For most partitional - clustering algorithms, including the iterative approach, a sum-
marized representation of the cluster is given through its clustering feature (CF) vector. 
This vector of parameters is given for every cluster as a triple, consisting of the number 
of points (samples) of the cluster, the centroid of the cluster, and the radius of the cluster. 
The cluster ’ s radius is deﬁ ned as the square - root of the average mean - squared distance 
from the centroid to the points in the cluster (averaged within - cluster variation). When 
a new point is added or removed from a cluster, the new CF can be computed from the 
old CF. It is very important that we do not need the set of points in the cluster to compute 
a new CF. 

 
INCREMENTAL  CLUSTERING 

269

 If  samples  are  with  categorical  data,  then  we  do  not  have  a  method  to  calculate 
centroids as representatives of the clusters. In that case, an additional algorithm called 
 K - nearest neighbor  may be used to estimate distances (or similarities) between samples 
and existing clusters. The basic steps of the algorithm are 

  1.      to  compute  the  distances  between  the  new  sample  and  all  previous  samples, 

already classiﬁ ed into clusters;  

  2.      to sort the distances in increasing order and select K samples with the smallest 

distance values; and  

  3.      to  apply  the  voting  principle. A  new  sample  will  be  added  (classiﬁ ed)  to  the 

largest cluster out of K selected samples.    

 For example, given six 6 - D categorical samples

   X

   X

   X

   X

   X

   X

1 = { ,
2 = { ,
3 = { ,
4 = { ,
5 = { ,
6 = { ,

A B A B C B
,

, }  

,

,

,
A A A B A B

, }  

,

,

,
B B A B A B

, }  

,

,

,
B C A B B A

, }  

,

,

B A B A C A
,

, }  

,

,

,
A C B A B B

, }   

,

,

 they are gathered into two clusters C 1     =    {X 1 , X 2 , X 3 } and C 2     =    {X 4 , X 5 , X 6 }. How does 
one classify the new sample Y    =    {A, C, A, B, C, A}? 

 To apply the K - nearest neighbor algorithm, it is necessary, as the ﬁ rst step, to ﬁ nd 
all distances between the new sample and the other samples already clustered. Using 
the SMC measure, we can ﬁ nd similarities instead of distances between samples. 

   Similarities with Elements in C 1   

   Similarities with Elements in C 2   

  SMC(Y, X 1 )    =    4/6    =    0.66  
  SMC(Y, X 2 )    =    3/6    =    0.50  
  SMC(Y, X 3 )    =    2/6    =    0.33  

  SMC(Y, X 4 )    =    4/6    =    0.66  
  SMC(Y, X 5 )    =    2/6    =    0.33  
  SMC(Y, X 6 )    =    2/6    =    0.33  

 Using  the  1 - nearest  neighbor  rule  (K    =    1),  the  new  sample  cannot  be  classiﬁ ed 
because there are two samples (X 1  and X 4 ) with the same, highest similarity (smallest 
distances), and one of them is in the class C 1  and the other in the class C 2 . On the other 
hand, using the 3 - nearest neighbor rule (K    =    3) and selecting the three largest similari-
ties in the set, we can see that two samples (X 1  and X 2 ) belong to class C 1 , and only 
one  sample  to  class  C 2 . Therefore,  using  a  simple  voting  system  we  can  classify  the 
new sample Y into the C 1  class.  

     
270 

CLUSTER  ANALYSIS

   9.6  

  DBSCAN ALGORITHM 

 Density - based  approach  in  clustering  assumes  that  clusters  are  regarded  as  dense 
regions of objects in the data space that are separated by regions of low object density 
(noise). These regions may have an arbitrary shape. Crucial concepts of this approach 
are  density  and  connectivity  both  measured  in  terms  of  local  distribution  of  nearest 
neighbors. The algorithm DBSCAN targeting low - dimensional data is the major rep-
resentative  in  this  category  of  density - based  clustering  algorithms.  The  main  reason 
why  DBSCAN  recognizes  the  clusters  is  that  within  each  cluster  we  have  a  typical 
density of points that is considerably higher than outside of the cluster. Furthermore, 
the  points ’   density  within  the  areas  of  noise  is  lower  than  the  density  in  any  of  the 
clusters. 

 DBSCAN  is  based  on  two  main  concepts:   density  reachability   and   density  con-
nectability .  These  both  concepts  depend  on  two  input  parameters  of  the  DBSCAN 
clustering: the size of epsilon neighborhood ( ε ) and the minimum points in a cluster 
(m). The  key  idea  of  the  DBSCAN  algorithm  is  that,  for  each  point  of  a  cluster,  the 
neighborhood of a given radius  ε  has to contain at least a minimum number of points 
m, that is, the density in the neighborhood has to exceed some predeﬁ ned threshold. 
For example, in Figure  9.9  point p has only two points in the neighborhood  ε , while 
point q has eight. Obviously, the density around q is higher then around p.   

  Density reachability  deﬁ nes whether two close points belong to the same cluster. 
Point p 1  is density - reachable from p 2  if two conditions are satisﬁ ed: (1) the points are 
close enough to each other: distance (p 1 ,p 2 )    <     ε , and (2) there are enough of points in 
 ε   neighborhood  of  p 2 :  distance(r,p 2 )    >    m,  where  r  are  some  database  points.  In  the 
example represented in Figure  9.9 , point p is reachable from point q.  Density connectiv-
ity   is  the  next  building  step  of  DBSCAN.  Points  p 0   and  p n   are   density  connected ,  if 
there is a sequence of  density - reachable  points (p 0 , p 1 , p 2 ,    . . .    ) from p 0  to p n  such that 
p i + 1  is  density - reachable  from p i . These ideas are translated into DBSCAN  cluster  as 
a set of all density connected points. 

 The clustering process is based on the classiﬁ cation of the points in the dataset as 

 core points ,  border points , and  noise points  (examples are given in Fig.  9.10 ):

    (cid:127)       A point is a  core point  if it has more than a speciﬁ ed number of points (m) within 

neighborhood  ε . These are points that are at the interior of a cluster    

p

q

     Figure 9.9.      Neighborhood ( ε ) for points p and q.  

271

Outlier

DBSCAN  ALGORITHM 

2

1.5

1
0.5
0
−0.5
−1
−1.5

Noise Point

Eps = 1

Border Point

Core Point

−2

−1

MinPts = 4

1

2

0
(a)

Border

Core

(b)

     Figure 9.10.      Examples of core, border, and noise points. (a)  ε  and m determine the type of 
the point; (b) core points build dense regions.  

   (cid:127)       A   border  point   has  fewer  than  m  points  within  its  neighborhood   ε ,  but  it  is  in 

the neighbor of a core point.  

   (cid:127)       A  noise point  is any point that is not a core point or a border point.    

 Ideally, we would have to know the appropriate parameters  ε  and m of each cluster. 
But there is no easy way to get this information in advance for all clusters of the data-
base. Therefore, DBSCAN uses global values for  ε  and m, that is, the same values for 
all clusters. Also, numerous experiments indicate that DBSCAN clusters for m    >    4 do 
not  signiﬁ cantly  differ  from  the  case  m    =    4,  while  the  algorithm  needs  considerably 
more computations. Therefore, in practice we may eliminate the parameter m by setting 
it to four for low - dimensional databases. The main steps of DBSCAN algorithm are as 
follows:

    (cid:127)       Arbitrarily select a point  p .  
   (cid:127)       Retrieve all points density - reachable from  p  with respect to  ε  and m.  
   (cid:127)       If  p  is a core point, a new cluster is formed or existing cluster is extended.  
   (cid:127)       If  p  is a border point, no points are density - reachable from  p , and DBSCAN visits 

the next point of the database.  

   (cid:127)       Continue the process with other points in the database until all of the points have 

been processed.  

   (cid:127)       Since global values for  ε  and m are used, DBSCAN may merge two clusters into 
one cluster, if two clusters of different density are  “ close ”  to each other. The are 
close if the distance between clusters is lower than  ε .    

 Examples of clusters obtained by DBSCAN algorithm are illustrated in Figure  9.11 . 
Obviously,  DBSCAN  ﬁ nds  all  clusters  properly,  independent  of  the  size,  shape,  and 
location of clusters to each other.   

 The main advantages of the DBSCAN clustering algorithm are as follows:

   1.      DBSCAN  does  not  require  the  number  of  clusters  a  priori,  as  opposed  to  K 

means and some other popular clustering algorithms.  

272 

CLUSTER  ANALYSIS

     Figure 9.11.      DBSCAN builds clusters of different shapes.  

  2.      DBSCAN can ﬁ nd arbitrarily shaped clusters.  
  3.      DBSCAN has a notion of noise and eliminate outliers from clusters.  
  4.      DBSCAN requires just two parameters and is mostly insensitive to the ordering 

of the points in the database    

 DBSCAN  also  has  some  disadvantages. The  complexity  of  the  algorithm  is  still 
very  high,  although  with  some  indexing  structures  it  reaches  O  (n    ×    log  n).  Finding 
neighbors is an operation based on distance, generally the Euclidean distance, and the 
algorithm may ﬁ nd the curse of dimensionality problem for high - dimensional data sets. 
Therefore, most applications of the algorithm are for low - dimensional real - world data.  

   9.7  

  BIRCH ALGORITHM 

 BIRCH  is  an  efﬁ cient  clustering  technique  for  data  in  Euclidean  vector  spaces.  The 
algorithm can efﬁ ciently cluster data with a single pass, and also it can deal effectively 
with outliers. BIRCH is based on the notion of a  CF  and a  CF tree . 

 CF is a small representation of an underlying cluster that consists of one or many 
samples. BIRCH builds on the idea that samples that are close enough should always 
be  considered  as  a  group.  CFs  provide  this  level  of  abstraction  with  corresponding 
summarization of samples in a cluster. The idea is that a cluster of data samples can be 
represented by a triple of numbers (N, LS, SS), where N is the number of samples in 
the cluster, LS is the linear sum of the data points (vectors representing samples), and 
SS is the sum of squares of the data points. More formally, the component of vectors 
LS and SS are computed for every attribute X of data samples in a cluster:

   LS X
(

) =

   SS X
(

) =

i

1

N

=∑
Xi
=∑ 2
Xi

N

i

1

 In Figure  9.12  ﬁ ve 2 - D samples are representing the cluster, and their CF summary 
is given with components: N    =    5, LS    =    (16, 30), and SS    =    (54, 190). These are common 
statistical quantities, and a number of different cluster characteristics and intercluster 

 
  
BIRCH  ALGORITHM 

273

CF = ( 5. (16.30).(54.190))

10
9
8
7
6
5
4
3
2
1
0

0 1 2 3 4 5 6 7 8 9 10

(3.4)

(2.6)

(4.5)

(4.7)

(3.8)

     Figure 9.12.      CF representation and visualization for a 2 - D cluster.  

distance measures can be derived from them. For example, we can compute the centroid 
for  the  cluster  based  on  its  CF  representation,  without  revisiting  original  samples. 
Coordinates of the centroid are obtained by dividing the components of the LS vector 
by N. In our example the centroid will have the coordinates (3.2, 6.0). The reader may 
check  on  the  graphical  interpretation  of  the  data  (Fig.   9.12 )  that  the  position  of  the 
centroid is correct. The obtained summaries are then used instead of the original data 
for further clustering or manipulations with clusters. For example, if CF 1     =    (N 1 , LS 1 , 
SS 1 ) and CF 2     =    (N 2 , LS 2 , SS 2 ) are the CF entries of two disjoint clusters, then the CF 
entry of the cluster formed by merging the two clusters is  

   CF CF CF
2

1

=

+

=

(

+

N N LS LS SS
1
1

,

,

2

1

2

+

+

SS
2

)   

 This simple equation shows us how simple the procedure is for merging clusters 
based on their simpliﬁ ed CF descriptions. That allows efﬁ cient incremental merging of 
clusters even for the streaming data. 

 BIRCH  uses  a  hierarchical  data  structure  called  a  CF  tree  for  partitioning  the 
incoming data points in an incremental and dynamic way. A CF tree is a height - balanced 
tree usually stored in a central memory. This allows fast lookups even when large data 
sets  have  been  read.  It  is  based  on  two  parameters  for  nodes.  CF  nodes  can  have  at 
maximum  B  children for non - leaf nodes, and a maximum of  L  entries for leaf nodes. 
Also, T is the threshold for the maximum diameter of an entry in the cluster. The CF 
tree size is a function of T. The bigger T is, the smaller the tree will be. 

 A CF tree (Fig  9.13 ) is built as the data sample is scanned. At every level of the 
tree a new data sample is inserted to the closest node. Upon reaching a leaf, the sample 
is  inserted  to  the  closest  CF  entry,  as  long  as  it  is  not  overcrowded  (diameter  of  the 
cluster D    >    T after the insert). Otherwise, a new CF entry is constructed and the sample 
is inserted. Finally, all CF statistics are updated for all nodes from the root to the leaf 
to represent the changes made to the tree. Since the maximum number of children per 
node (branching factor) is limited, one or several splits can happen. Building CF tree 

274 

CLUSTER  ANALYSIS

Root node
1

CF

2

CF

B

CF

CF

B

CF

Non-leaf node
1

2

CF

Leaf node
CF1

Leaf node
CF1

Leaf node
CF1

CF2

CFL

CF2

CFL

CF2

CFL

     Figure 9.13.      CF tree structure.  

is only one, but the most important, phase in the BIRCH algorithm. In general, BIRCH 
employs four different phases during the clustering process:

   1.      Phase 1:  Scan all data and build an initial in - memory CF tree    

 It linearly scans all samples and inserts them in the CF tree as described earlier.  

  2.      Phase 2:  Condense the tree to a desirable size by building a smaller CF tree  

 This can involve removing outliers and further merging of clusters.  

  3.      Phase 3:  Global clustering  

 Employ a global clustering algorithm using the CF tree ’ s leaves as input. CF 
features allow for effective clustering because the CF tree is very densely com-
pressed in the central memory at this point. The fact that a CF tree is balanced 
allows the log - efﬁ cient search.  

  4.      Phase 4:  Cluster reﬁ ning  

 This is optional, and it requires more passes over the data to reﬁ ne the results. 
All clusters are now stored in memory. If desired the actual data points can be 
associated with the generated clusters by reading all points from disk again.    

 BIRCH performs faster than most of the existing algorithms on large data sets. The 
algorithm  can  typically  ﬁ nd  a  good  clustering  with  a  single  scan  of  the  data,  and 
improve the quality further with a few additional scans (phases 3 and 4). Basic algo-
rithm condenses metric data in the ﬁ rst pass using spherical summaries, and this part 
can be an incremental implementation. Additional passes cluster CFs to detect nons-
pherical clusters, and the algorithm approximates density function. There are several 
extensions of the algorithm that try to include nonmetric data, and that make applicabil-
ity of the approach much wider.  

REVIEW  QUESTIONS  AND  PROBLEMS 

275

   9.8  

  CLUSTERING VALIDATION 

 How  is  the  output  of  a  clustering  algorithm  evaluated? What  characterizes  a   “ good ”  
clustering result and a  “ poor ”  one? All clustering algorithms will, when presented with 
data, produce clusters regardless of whether the data contain clusters or not. Therefore, 
the ﬁ rst step in evaluation is actually an assessment of the data domain rather than the 
clustering algorithm itself. Data that we do not expect to form clusters should not be 
processed by any clustering algorithm. If the data do contain clusters, some clustering 
algorithms  may  obtain  a   “ better ”   solution  than  others.  Cluster  validity  is  the  second 
step, when we expect to have our data clusters. A clustering structure is valid if it cannot 
reasonably have occurred by chance or as an artifact of a clustering algorithm. Applying 
some of the available cluster methodologies, we assess the outputs. This analysis uses 
a speciﬁ c criterion of optimality that usually contains knowledge about the application 
domain and therefore is subjective. There are three types of validation studies for clus-
tering algorithms. An  external  assessment of validity compares the discovered structure 
with an a priori structure. An  internal  examination of validity tries to determine if the 
discovered  structure  is  intrinsically  appropriate  for  the  data.  Both  assessments  are 
subjective and domain - dependent. A  relative  test, as a third approach, compares the two 
structures  obtained  either  from  different  cluster  methodologies  or  by  using  the  same 
methodology  but  with  different  clustering  parameters,  such  as  the  order  of  input 
samples. This test measures their relative merit but we still need to resolve the question 
of selecting the structures for comparison. 

 Theory and practical applications both show that all approaches in the validation 
of  clustering  results  have  a  subjective  component.  Hence,  little  in  the  way  of   “ gold 
standards ”  exists in clustering evaluation. Recent studies in cluster analysis suggest that 
a user of a clustering algorithm should always keep the following issues in mind:

   1.      Every clustering algorithm will ﬁ nd clusters in a given data set whether they 
exist or not; the data should, therefore, be subjected to tests for clustering ten-
dency before applying a clustering algorithm, followed by a validation of the 
clusters generated by the algorithm.  

  2.      There is no best clustering algorithm; therefore, a user is advised to try several 

algorithms on a given data set.    

 It is important to remember that cluster analysis is an exploratory tool; the outputs 
of clustering algorithms only suggest or sometimes conﬁ rm hypotheses, but never prove 
any hypothesis about natural organization of data.   

 9.9  

 REVIEW QUESTIONS AND PROBLEMS 

       1.     Why is the validation of a clustering process highly subjective?   

    2.     What increases the complexity of clustering algorithms?   

276 

CLUSTER  ANALYSIS

    3.        (a)      Using MND distance, distribute the input samples given as 2 - D points A(2, 2), B(4, 4), 

and C(7, 7) into two clusters.  

  (b)      What will be the distribution of samples in the clusters if samples D(1, 1), E(2, 0), and 

F(0, 0) are added?      

    4.     Given 5 - D numeric samples A    =    (1, 0, 2, 5, 3) and B    =    (2, 1, 0, 3,  − 1), ﬁ nd 

  (a)      the Eucledian distance between points;  
  (b)      the city - block distance;  
  (c)      the Minkowski distance for p    =    3; and  
  (d)      the cosine - correlation distance.      

    5.     Given 6 - D categorical samples C    =    (A, B, A, B, A, A) and D    =    (B, B, A, B, B, A), 

ﬁ nd 
  (a)      an SMC of the similarity between samples;  
  (b)      Jaccard ’ s coefﬁ cient; and  
  (c)      Rao ’ s coefﬁ cient      

    6.     Given a set of 5 - D categorical samples 

 A    =    (1, 0, 1, 1, 0) 
 B    =    (1, 1, 0, 1, 0) 
 C    =    (0, 0, 1, 1, 0) 
 D    =    (0, 1, 0, 1, 0) 
 E    =    (1, 0, 1, 0, 1) 
 F    =    (0, 1, 1, 0, 0) 
  (a)      Apply agglomerative hierarchical clustering using 

   (i)      single - link similarity measure based on Rao ’ s coefﬁ cient; and  
  (ii)      complete - link similarity measure based on SMC.    

  (b)      Plot the dendrograms for the solutions to parts (i) and (ii) of (a).      

    7.     Given  the  samples  X1    =    {1,  0},  X2    =    {0,  1},  X3    =    {2,  1},  and  X4    =    {3,  3}, 
suppose that the samples are randomly clustered into two clusters C1    =    {X1, X3} 
and C2    =    {X2, X4}.
   (a)      Apply  one  iteration  of  the  K - means  partitional - clustering  algorithm,  and  ﬁ nd  a  new 
distribution of samples in clusters. What are the new centroids? How can you prove that 
the new distribution of samples is better than the initial one?  

  (b)      What is the change in the total square - error?  
  (c)      Apply  the  second  iteration  of  the  K - means  algorithm  and  discuss  the  changes  in 

clusters.      

    8.     For the samples in Problem 7, apply iterative clustering with the threshold value 
for cluster radius T    =    2. What is the number of clusters and samples distribution 
after the ﬁ rst iteration?   

    9.     Suppose that the samples in Problem 6 are distributed into two clusters: 

 C1    =    {A, B, E} and C2    =    {C, D, F}. 

 Using  K - nearest  neighbor  algorithm,  ﬁ nd  the  classiﬁ cation  for  the  following 
samples:

REVIEW  QUESTIONS  AND  PROBLEMS 

277

   (a)      Y    =    {1 ,1 ,0 ,1 ,1} using K    =    1  
  (b)      Y    =    {1 ,1 ,0 ,1 ,1} using K    =    3  
  (c)      Z    =    {0, 1, 0, 0, 0} using K    =    1  
  (d)      Z    =    {0, 1, 0, 0, 0} using K    =    5.      

    10.     Implement the hierarchical agglomerative algorithm for samples with categorical 

values using the SMC measure of similarity.   

    11.     Implement the partitional K - means clustering algorithm. Input samples are given 

in the form of a ﬂ at ﬁ le.   

    12.     Implement the incremental - clustering algorithm with iterations. Input samples are 

given in the form of a ﬂ at ﬁ le.   

    13.     Given the similarity matrix between ﬁ ve samples:

   (a)      Use the similarity matrix in the table to perform  complete link  hierarchical clustering. 
Show your results by drawing a dendrogram. The dendrogram should clearly show the 
order in which the points are merged.  

  (b)      How many clusters exist if the threshold similarity value is 0.5. Give the elements of 

each cluster.  

  (c)      If  DBSCAN  algorithm  is  applied  with  threshold  similarity  of  0.6,  and  MinPts    ≥    2 
(required density), what are  core ,  border ,and  noise  points in the set of points  p i   given 
in the table. Explain.           

   p1  

   p2  

   p3  

   p4  

   p5  

  p1  
  p2  
  p3  
  p4  
  p5  

  1.00  
  0.10  
  0.41  
  0.55  
  0.35  

  0.10  
  1.00  
  0.64  
  0.47  
  0.98  

  0.41  
  0.64  
  1.00  
  0.44  
  0.85  

  0.55  
  0.47  
  0.44  
  1.00  
  0.76  

  0.35  
  0.98  
  0.85  
  0.76  
  1.00  

    14.     Given the points x1    =    {1, 0}, x2    =    {0,1}, x3    =    {2, 1}, and x4    =    {3, 3}, suppose 
that  these  points  are  randomly  clustered  into  two  clusters:  C1    =    {x1,  x3}  and 
C2    =    {x2,  x4}. Apply  one  iteration  of   K - means  partitional  clustering  algorithm  
and  ﬁ nd  new  distribution  of  elements  in  clusters.  What  is  the  change  in   total 
square - error ?   

    15.     Answer  True/False  to  the  following  statements.  Discuss  your  answer  if 

necessary.
   (a)      Running K - means with different initial seeds is likely to produce different results.  
  (b)      Initial cluster centers have to be data points.  
  (c)      Clustering stops when cluster centers are moved to the mean of clusters.  
  (d)      K - means  can  be  less  sensitive  to  outliers  if  standard  deviation  is  used  instead  of  the 

average.  

  (e)      K - means can be less sensitive to outliers if median is used instead of the average.      

    16.     Identify the clusters in the Figure below using the center - , contiguity - , and density -
 based  clustering. Assume  center - based  means   K - means,   contiguity - based  means 
single  link  hierarchical  and  density - based  means   DBSCAN .  Also  indicate  the 

     
278 

CLUSTER  ANALYSIS

number  of  clusters  for  each  case,  and  give  a  brief  indication  of  your  reasoning. 
Note that darkness or the number of dots indicates density. 

(a)

(b)

(c)

(d)

    17.     Derive  the  mathematical  relationship  between  cosine  similarity  and  Euclidean 

distance when each data object has an L2 (Euclidean) length of 1.   

    18.     Given a similarity measure with values in the interval [0, 1], describe two ways to 
transform this similarity value into a  dissimilarity  value in the interval [0,  ∞ ].   

    19.     Distances between samples (A, B, C, D, and E) are given in a graphical form: 

 Determine single - link and complete - link dendograms for the set of the samples. 

A

1

B

3     2       3        

E

3                4       2      2
5

C

3       1
D

    20.     There is a set S consisting of six points in the plane shown as below, a    =    (0, 0), 
b    =    (8, 0), c    =    (16, 0), d    =    (0, 6), e    =    (8, 6), f    =    (16, 6). Now we run the k - means 
algorithm on those points with k    =    3. The algorithm uses the Euclidean distance 
metric (i.e., the straight line distance between two points) to assign each point to 
its nearest centroid. Also we deﬁ ne the following:
    (cid:127)        3 - starting  conﬁ guration   is  a  subset  of  three  starting  points  from  S  that  form  the  initial 

centroids, for example, {a, b, c}.  

   (cid:127)        3 - partition  is a partition of S into k nonempty subsets, for example, {a, b, e}, {c, d}, {f} 

is a 3 - partition. 

   (a)      How many 3 - starting conﬁ gurations are there?  
  (b)      Fill in the last two columns of the following table.

  3 - partition  

  An example of a 3 - starting conﬁ guration 
that can arrive at the 3 - partition after 0 
or more iterations of k - means  

  Number of unique 3 - starting 
conﬁ gurations  

  {a,b} {d,e} {c,f}  
  {a} {d} {b, c, e, f}  
  {a, b, d} {c} {e, f}  
  {a, b} {d} {c, e, f}  

       
       
    
    
    
    
    
    
    
    
             
REFERENCES  FOR  FURTHER  STUDY 

279

  9.10  

 REFERENCES FOR FURTHER STUDY 

    Filippone ,  M.  ,   F.   Camastra  ,   F.   Masulli  ,   S.   Rovetta  ,  A Survey of Kernel and Spectral Methods for 

Clustering ,  Pattern Recognition , Vol.  41 ,  2008 , pp.  176  –  190 .  
  Clustering algorithms are a useful tool to explore data structures and have been employed in 
many disciplines. The focus of this paper is the partitioning clustering problem with a special 
interest in two recent approaches: kernel and spectral methods. The aim of this paper is to 
present a survey of kernel and spectral clustering methods, two approaches that are able to 
produce nonlinear separating hypersurfaces between clusters. The presented kernel clustering 
methods are the kernel version of many classical clustering algorithms, for example,  K  - means, 
SOM, and neural gas. Spectral clustering arises from concepts in spectral graph theory and 
the clustering problem is conﬁ gured as a graph - cut problem where an appropriate objective 
function has to be optimized.  

    Han ,  J.  ,   M.   Kamber  ,  Data Mining: Concepts and Techniques ,  2nd edition ,  Morgan Kaufmann , 

 San Francisco, CA ,  2006 .  
  This book gives a sound understanding of data - mining principles. The primary orientation of 
the  book  is  for  database  practitioners  and  professionals  with  emphasis  on  OLAP  and  data 
warehousing. In - depth analysis of association rules and clustering algorithms is the additional 
strength of the book. All algorithms are presented in easily understood pseudo - code and they 
are suitable for use in real - world, large - scale data - mining projects including advanced applica-
tions such as Web mining and text mining.  

    Hand ,  D.  ,   H.   Mannila  ,   P.   Smith  ,  Principles of Data Mining ,  MIT Press ,  Cambridge, MA ,  2001 .  
  The book consists of three sections. The ﬁ rst, foundations, provides a tutorial overview of the 
principles underlying data - mining algorithms and their applications. The second section, data -
 mining  algorithms,  shows  how  algorithms  are  constructed  to  solve  speciﬁ c  problems  in  a 
principled  manner.  The  third  section  shows  how  all  of  the  preceding  analyses  ﬁ t  together 
when applied to real - world data - mining problems.  

    Jain ,  A. K.  ,   M. N.   Murty  ,   P. J.   Flynn  ,  Data Clustering: A Review ,  ACM Computing Surveys , Vol. 

 31 , No.  3 , September  1999 , pp.  264  –  323 .  
  Although there are several excellent books on clustering algorithms, this review paper will 
give the reader enough details about the state - of - the - art techniques in data clustering, with an 
emphasis on large data sets problems. The paper presents the taxonomy of clustering tech-
niques and identiﬁ es crosscutting themes, recent advances, and some important applications. 
For  readers  interested  in  practical  implementation  of  some  clustering  methods,  the  paper 
offers useful advice and a large spectrum of references.  

    Miyamoto ,   S.  ,   Fuzzy  Sets  in  Information  Retrieval  and  Cluster  Analysis ,   Cluver  Academic 

Publishers ,  Dodrecht, Germany ,  1990 .  
  This  book  offers  an  in - depth  presentation  and  analysis  of  some  clustering  algorithms  and 
reviews  the  possibilities  of  combining  these  techniques  with  fuzzy  representation  of  data. 
Information retrieval, which, with the development of advanced Web - mining techniques, is 
becoming more important in the data - mining community, is also explained in the book.   

 
  10 

ASSOCIATION RULES     

  Chapter Objectives 

     (cid:127)       Explain the local modeling character of association - rule techniques.  
   (cid:127)       Analyze the basic characteristics of large transactional databases.  
   (cid:127)       Describe  the  Apriori  algorithm  and  explain  all  its  phases  through  illustrative 

examples.  

   (cid:127)       Compare the frequent pattern (FP) growth method with the Apriori algorithm.  
   (cid:127)       Outline the solution for association - rule generation from frequent itemsets.  
   (cid:127)       Explain the discovery of multidimensional associations.  
   (cid:127)       Introduce the extension of FP growth methodology for classiﬁ cation problems.     

    When we talk about machine - learning methods applied to data mining, we classify 
them as either parametric or nonparametric methods. In  parametric methods  used for 
density estimation, classiﬁ cation, or regression, we assume that a ﬁ nal model is valid 
over the entire input space. In regression, for example, when we derive a linear model, 
we apply it for all future inputs. In classiﬁ cation, we assume that all samples (training, 
but also new, testing) are drawn from the same density distribution. Models in these 

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

280

 
MARKET-BASKET  ANALYSIS 

281

Linear Classification 
Model 

Local Models

(a)

(b) 

     Figure 10.1.      Parametric versus nonparametric methods. (a) Parametric methods build global 
models; (b) nonparametric methods result in local modelling.  

cases are global models valid for the entire n - dimensional space of samples. The advan-
tage  of  a  parametric  method  is  that  it  reduces  the  problem  of  modeling  with  only  a 
small number of parameters. Its main disadvantage is that initial assumptions do not 
hold in many real - world problems, which causes a large error. In  nonparametric estima-
tion , all we assume is that similar inputs have similar outputs. Methods do not assume 
any a priori density or parametric form. There is no single global model. Local models 
are estimated as they occur, affected only by nearby training samples (Fig.  10.1 ). 

 The discovery of association rules is one of the major techniques of data mining, 
and  it  is  perhaps  the  most  common  form  of  local - pattern  discovery  in  unsupervised 
learning systems. It is a form of data mining that most closely resembles the process 
that  most  people  think  about  when  they  try  to  understand  the  data - mining  process, 
namely,  “ mining ”  for gold through a vast database. The gold in this case would be a 
rule that is interesting, that tells you something about your database that you did not 
already know and probably were not able to explicitly articulate. These methodologies 
retrieve all possible interesting patterns in the database. This is a strength in the sense 
that it leaves  “ no stone unturned. ”  But it can be viewed also as a weakness because the 
user can easily become overwhelmed with a large amount of new information, and an 
analysis of their usability is difﬁ cult and time - consuming. 

 Besides the standard methodologies such as the Apriori technique for association -
 rule mining, we will explain some extensions such as  FP tree  and Classiﬁ cation Based 
on Multiple Association Rules (CMAR) algorithms. All these methodologies show how 
important and applicable the problem of market - basket analysis is and the correspond-
ing methodologies for discovery of association rules in data.  

   10.1  

  MARKET - BASKET ANALYSIS 

 A market basket is a collection of items purchased by a customer in a single transaction, 
which is a well - deﬁ ned business activity. For example, a customer ’ s visits to a grocery 
store or an online purchase from a virtual store on the Web are typical customer trans-
actions.  Retailers  accumulate  huge  collections  of  transactions  by  recording  business 
activities over time. One common analysis run against a transactions database is to ﬁ nd 

282 

ASSOCIATION  RULES

sets of items, or  itemsets , that appear together in many transactions. A business can use 
knowledge of these patterns to improve the placement of these items in the store or the 
layout  of  mail - order  catalog  pages  and  Web  pages. An  itemset  containing   i   items  is 
called an  i - itemset . The percentage of transactions that contain an itemset is called the 
itemset ’ s   support .  For  an  itemset  to  be  interesting,  its  support  must  be  higher  than  a 
user - speciﬁ ed minimum. Such itemsets are said to be frequent. 

 Why is ﬁ nding frequent itemsets a nontrivial problem? First, the number of cus-
tomer transactions can be very large and usually will not ﬁ t in a central memory of a 
computer. Second, the potential number of frequent itemsets is exponential to the number 
of different items, although the actual number of frequent itemsets can be much smaller. 
Therefore,  we  want  algorithms  that  are  scalable  (their  complexity  should  increase 
linearly, not exponentially, with the number of transactions) and that examine as few 
infrequent itemsets as possible. Before we explain some of the more efﬁ cient algorithms, 
let us try to describe the problem more formally and develop its mathematical model. 
 From a database of sales transactions, we want to discover the important associa-
tions among items such that the presence of some items in a transaction will imply the 
presence of other items in the same transaction. Let I    =    {i 1 , i 2 ,    . . .    , i m } be a set of liter-
als, called items. Let DB be a set of transactions, where each transaction T is a set of 
items such that T    ⊆    I. Note that the quantities of the items bought in a transaction are 
not considered, meaning that each item is a binary variable indicating whether an item 
was bought or not. Each transaction is associated with an identiﬁ er called a transaction 
identiﬁ er or TID. An example of the model for such a transaction database is given in 
Table  10.1 . 

 Let X be a set of items. A transaction T is said to contain X if and only if X    ⊆    T. 
An association rule implies the form X    ⇒    Y, where X    ⊆    I, Y    ⊆    I, and X  ∩ Y    =     Ø . The 
rule X    ⇒    Y holds in the transaction set DB with  conﬁ dence c  if  c % of the transactions 
in DB that contain X also contain Y. The rule X    ⇒    Y has  support s  in the transaction 
set DB if  s % of the transactions in DB contain X    ∪    Y. Conﬁ dence denotes the strength 
of implication and support indicates the frequency of the patterns occurring in the rule. 
It  is  often  desirable  to  pay  attention  to  only  those  rules  that  may  have  a  reasonably 
large  support.  Such  rules  with  high  conﬁ dence  and  strong  support  are  referred  to  as 
 strong  rules .  The  task  of  mining  association  rules  is  essentially  to  discover  strong 
association rules in large databases. The problem of mining association rules may be 
decomposed into two phases:

  TAB LE 10.1.     A Model of A Simple 
Transaction Database 

   Database DB:  

   TID  

  001  
  002  
  003  
  004  

   Items  

  A C D  
  B C E  
  A B C E  
  B E  

ALGORITHM  APRIORI 

283

   1.      Discover  the  large  itemsets,  that  is,  the  sets  of  items  that  have  transaction 

support  s  above a predetermined minimum threshold.  

  2.      Use  the  large  itemsets  to  generate  the  association  rules  for  the  database  that 

have conﬁ dence  c  above a predetermined minimum threshold.    

 The  overall  performance  of  mining  association  rules  is  determined  primarily  by 
the ﬁ rst step. After the large itemsets are identiﬁ ed, the corresponding association rules 
can be derived in a straightforward manner. Efﬁ cient counting of large itemsets is thus 
the focus of most mining algorithms, and many efﬁ cient solutions have been designed 
to address previous criteria. The  Apriori  algorithm provided one early solution to the 
problem,  and  it  will  be  explained  in  greater  detail  in  this  chapter.  Other  subsequent 
algorithms built upon the  Apriori  algorithm represent reﬁ nements of a basic solution 
and they are explained in a wide spectrum of articles including texts recommended in 
Section 10.10.  

   10.2  

  ALGORITHM  APRIORI  

 The algorithm  Apriori  computes the frequent itemsets in the database through several 
iterations. Iteration  i  computes all frequent  i  - itemsets (itemsets with  i  elements). Each 
iteration has two steps:  candidate generation  and  candidate counting and selection . 

 In the ﬁ rst phase of the ﬁ rst iteration, the generated set of candidate itemsets con-
tains all 1 - itemsets (i.e., all items in the database). In the counting phase, the algorithm 
counts  their  support  by  searching  again  through  the  whole  database.  Finally,  only 
1 - itemsets (items) with s above required threshold will be selected as frequent. Thus, 
after the ﬁ rst iteration, all frequent 1 - itemsets will be known. 

 What are the itemsets generated in the second iteration? In other words, how does 
one generate 2 - itemset candidates? Basically, all pairs of items are candidates. Based 
on knowledge about infrequent itemsets obtained from previous iterations, the  Apriori  
algorithm reduces the set of candidate itemsets by pruning —  a priori  — those candidate 
itemsets  that  cannot  be  frequent.  The  pruning  is  based  on  the  observation  that  if  an 
itemset is frequent all its subsets could be frequent as well. Therefore, before entering 
the candidate - counting step, the algorithm discards every candidate itemset that has an 
infrequent subset. 

 Consider the database in Table  10.1 . Assume that the minimum support s    =    50%, 
so an itemset is frequent if it is contained in at least 50% of the transactions — in our 
example,  in  two  out  of  every  four  transactions  in  the  database.  In  each  iteration,  the 
 Apriori   algorithm  constructs  a  candidate  set  of  large  itemsets,  counts  the  number  of 
occurrences of each candidate, and then determines large itemsets based on the prede-
termined minimum support s    =    50%. 

 In the ﬁ rst step of the ﬁ rst iteration, all single items are candidates.  Apriori  simply 
scans  all  the  transactions  in  a  database  DB  and  generates  a  list  of  candidates.  In  the 
next step, the algorithm counts the occurrences of each candidate and based on thresh-
old s selects frequent itemsets. All these steps are given in Figure  10.2 . Five 1 - itemsets 
are  generated  in  C 1   and,  of  these,  only  four  are  selected  as  large  in  L 1   because  their 
support is greater than or equal to two, or s    ≥    50%. 

284 

ASSOCIATION  RULES

1-itemsets C1

1-itemsets Count

s[%]

Large 1-itemsets 

L1

Count

s[%] 

{A}
{C}
{D}
{B}
{E}

(a)

{A}
{C}
{D}
{B}
{E}

2
3
1
3
3

(b1)

50
75
25
75
75

{A}
{C}

{B}
{E}

(b2)

2
3

3
3

50 
75 

75 
75 

     Figure 10.2.      First iteration of the  Apriori  algorithm for a database DB. (a) Generate phase; 
(b1) count phase; (b2) select phase.  

2-itemsets C2

2-itemsets

Count

s[%]

Large 2-itemsets 

L2

Count

s[%] 

{A, B}
{A, C}
{A, E}
{B, C}
{B, E}
{C, E}

(a)

{A, B}
{A, C}
{A, E}
{B, C}
{B, E}
{C, E}

1
2
1
2
3
2

(b1)

25
50
25
50
75
50

{A, C}

{B, C}
{B, E}
{C, E}

2

2
3
2

50 

50 
75 
50 

(b2)

     Figure 10.3.      Second iteration of the  Apriori  algorithm for a database DB. (a) Generate phase; 
(b1) count phase; (b2) select phase  

 To discover the set of large 2 - itemsets, because any subset of a large itemset could 
also have minimum support, the  Apriori  algorithm uses L 1  * L 1  to generate the candi-
dates. The operation  *  is deﬁ ned in general as

   L

k

∗

L

k

∈
= ∪
X Y where X Y L   X Y k
{

∩ = −
|

,

,

|

k

}1   

 For k    =    1 the operation represents a simple concatenation. Therefore, C 2  consists 
of 2 - itemsets generated by the operation|L 1     ·    (|L 1 | − 1)/2 as candidates in the second itera-
tion. In our example, this number is 4    ·    3/2    =    6. Scanning the database DB with this list, 
the  algorithm  counts  the  support  for  every  candidate  and  in  the  end  selects  a  large 
2 - itemsets  L 2   for  which  s    ≥    50%. All  these  steps  and  the  corresponding  results  of  the 
second iteration are given in Figure  10.3 . 

 The set of candidate itemset C 3  is generated from L 2  using the previously deﬁ ned 
operation  L 2  * L 2 .  Practically,  from  L 2 ,  two  large  2 - itemsets  with  the  same  ﬁ rst  item, 
such as {B, C} and {B, E}, are identiﬁ ed ﬁ rst. Then,  Apriori  tests whether the 2 - itemset 
{C, E}, which consists of the second items in the sets {B, C} and {B, E}, constitutes 
a large 2 - itemset or not. Because {C, E} is a large itemset by itself, we know that all 
the subsets of {B, C, E} are large, and then {B, C, E} becomes a candidate 3 - itemset. 
There is no other candidate 3 - itemset from L 2  in our database DB.  Apriori  then scans 
all the transactions and discovers the large 3 - itemsets L 3 , as shown in Figure  10.4 . 

FROM  FREQUENT  ITEMSETS  TO  ASSOCIATION  RULES 

285

3-itemsets C3

3-itemsets

Count

s[%]

Large 3-itemsets 

L3

Count

s[%]

{B, C, E}

{B, C, E}

2

50

{B, C, E}

2

50 

(a)

(b1)

(b2)

     Figure 10.4.      Third iteration of the  Apriori  algorithm for a database DB. (a) Generate phase; 
(b1) count phase; (b2) select phase  

 In our example, because there is no candidate 4 - itemset to be constituted from L 3 , 

 Apriori  ends the iterative process. 

  Apriori  counts not only the support of all frequent itemsets, but also the support 
of those infrequent candidate itemsets that could not be eliminated during the pruning 
phase. The set of all candidate itemsets that are infrequent but whose support is counted 
by  Apriori  is called the  negative border . Thus, an itemset is in the negative border if 
it is infrequent, but all its subsets are frequent. In our example, analyzing Figures  10.2  
and   10.3 ,  we  can  see  that  the  negative  border  consists  of  itemsets  {D},  {A,  B},  and 
{A,  E}.  The  negative  border  is  especially  important  for  some  improvements  in  the 
 Apriori  algorithm such as increased efﬁ ciency in the generation of large itemsets.  

   10.3  

  FROM FREQUENT ITEMSETS TO ASSOCIATION RULES 

 The  second  phase  in  discovering  association  rules  based  on  all  frequent  i - itemsets, 
which have been found in the ﬁ rst phase using the  Apriori  or some other similar algo-
rithm, is relatively simple and straightforward. For a rule that implies {x 1 ,x 2 , x 3 }    →    x 4 , 
it is necessary that both itemset {x 1 , x 2 , x 3 , x 4 } and {x 1 , x 2 , x 3 } are frequent. Then, the 
conﬁ dence   c   of  the  rule  is  computed  as  the  quotient  of  supports  for  the  itemsets 
 c     =     s (x 1 ,x 2 ,x 3 ,x 4 )/ s (x 1 ,x 2 ,x 3 ). Strong association rules are rules with a conﬁ dence value 
 c  above a given threshold. 

 For our example of database DB in Table  10.1 , if we want to check whether the 
association rule {B, C}    →    E is a strong rule, ﬁ rst we select the corresponding supports 
from tables L 2  and L 3 :

( ,
   s B C

)

=

2
, ( ,
s B C E

,

)

=

2  

and using these supports we compute the conﬁ dence of the rule:

({ , }
   c B C

→ =
E

)

( ,
s B C E s B C

) / ( ,

,

=

)

2 2 1

/

=

(

or 

100

%)

 Whatever  the  selected  threshold  for  strong  association  rules  is  (e.g.,  c T     =    0.8  or 
80%),  this  rule  will  pass  because  its  conﬁ dence  is  maximal,  that  is,  if  a  transaction 
contains items B and C, it will also contain item E. Other rules are also possible for 
our database DB, such as A    →    C because c(A    →    C)    =    s(A, C)/s(A)    =    1, and both item-
sets  {A}  and  {A,  C}  are  frequent  based  on  the   Apriori   algorithm. Therefore,  in  this 
phase, it is necessary only to systematically analyze all possible association rules that 

  
286 

ASSOCIATION  RULES

could  be  generated  from  the  frequent  itemsets,  and  select  as  strong  association  rules 
those that have a conﬁ dence value above a given threshold. 

 Notice that not all the discovered strong association rules (i.e., passing the required 
support  s  and required conﬁ dence  c ) are interesting enough to be presented and used. 
For example, consider the following case of mining the survey results in a school of 
5000  students.  A  retailer  of  breakfast  cereal  surveys  the  activities  that  the  students 
engage in every morning. The data show that 60% of the students (i.e., 3000 students) 
play  basketball;  75%  of  the  students  (i.e.,  3750  students)  eat  cereal;  and  40%  of 
them  (i.e.,  2000  students)  play  basketball  and  also  eat  cereal.  Suppose  that  a  data -
 mining program for discovering association rules is run on the following settings: the 
minimal  support  is  2000  (s    =    0.4)  and  the  minimal  conﬁ dence  is  60%  (c    =    0.6). The 
following  association  rule  will  be  produced:   “ (play  basketball)    →    (eat  cereal), ”   since 
this  rule  contains  the  minimal  student  support  and  the  corresponding  conﬁ dence 
c    =    2000/3000    =    0.66 is larger than the threshold value. However, the above association 
rule is misleading since the overall percentage of students eating cereal is 75%, larger 
than 66%. That is, playing basketball and eating cereal are in fact negatively associated. 
Being involved in one itemset decreases the likelihood of being involved in the other. 
Without fully understanding this aspect, one could make wrong business or scientiﬁ c 
decisions from the association rules derived. 

 To ﬁ lter out such misleading associations, one may deﬁ ne that an association rule 
A    →    B is  interesting  if its conﬁ dence exceeds a certain measure. The simple argument 
we used in the example above suggests that the right heuristic to measure association 
should be

>   
   s A B s A s B d
)
(

) / (

−

)

(

,

 or alternatively:

>  
   s A B s A s B k
(
(

−

)

(

)

)

⋅

,

where d or k are suitable constants. The expressions above essentially represent tests 
of statistical independence. Clearly, the factor of statistical dependence among analyzed 
itemsets has to be taken into consideration to determine the usefulness of association 
rules. In our simple example with students this test fails for the discovered association 
rule

−
   s A B s A s B
)

)

)

(

(

(

,

⋅

=

0 4 0 6 0 75
.

.

.

−

⋅

= −

<
0 05 0  
.

and, therefore, despite high values for parameters s and c, the rule is not interesting. In 
this case, it is even misleading.  

   10.4  

  IMPROVING THE EFFICIENCY OF THE  APRIORI  ALGORITHM 

 Since the amount of the processed data in mining frequent itemsets tends to be huge, 
it  is  important  to  devise  efﬁ cient  algorithms  to  mine  such  data.  Our  basic   Apriori  

IMPROVING  THE  EFFICIENCY  OF  THE  APRIORI  ALGORITHM 

287

algorithm scans the database several times, depending on the size of the largest frequent 
itemset.  Since Apriori  algorithm  was  ﬁ rst  introduced  and  as  experience  has  accumu-
lated, there have been many attempts to devise more efﬁ cient algorithms of frequent 
itemset mining including approaches such as hash - based technique, partitioning, sam-
pling, and using vertical data format. Several reﬁ nements have been proposed that focus 
on reducing the number of database scans, the number of candidate itemsets counted 
in each scan, or both. 

  Partition  -  based Apriori  is an algorithm that requires only two scans of the transac-
tion database. The database is divided into disjoint partitions, each small enough to ﬁ t 
into available memory. In a ﬁ rst scan, the algorithm reads each partition and computes 
locally frequent itemsets on each partition. In the second scan, the algorithm counts the 
support of all locally frequent itemsets toward the complete database. If an itemset is 
frequent with respect to the complete database, it must be frequent in at least one parti-
tion. That is the heuristics used in the algorithm. Therefore, the second scan through 
the database counts itemset ’ s frequency only for a union of all locally frequent itemsets. 
This second scan directly determines all frequent itemsets in the database as a subset 
of a previously deﬁ ned union. 

 In some applications, the transaction database has to be mined frequently to capture 
customer behavior. In such applications, the efﬁ ciency of data mining could be a more 
important factor than the complete accuracy of the results. In addition, in some applica-
tions the problem domain may be vaguely deﬁ ned. Missing some marginal cases that 
have conﬁ dence and support levels at the borderline may have little effect on the quality 
of the solution to the original problem. Allowing imprecise results can in fact signiﬁ -
cantly improve the efﬁ ciency of the applied mining algorithm. 

 As  the  database  size  increases,   sampling   appears  to  be  an  attractive  approach  to 
data mining. A sampling - based algorithm typically requires two scans of the database. 
The algorithm ﬁ rst takes a sample from the database and generates a set of candidate 
itemsets that are highly likely to be frequent in the complete database. In a subsequent 
scan  over  the  database,  the  algorithm  counts  these  itemsets ’   exact  support  and  the 
support of their negative border. If no itemset in the negative border is frequent, then 
the  algorithm  has  discovered  all  frequent  itemsets.  Otherwise,  some  superset  of  an 
itemset  in  the  negative  border  could  be  frequent,  but  its  support  has  not  yet  been 
counted.  The  sampling  algorithm  generates  and  counts  all  such  potentially  frequent 
itemsets in subsequent database scans. 

 Because it is costly to ﬁ nd frequent itemsets in large databases,  incremental updat-
ing  techniques should be developed to maintain the discovered frequent itemsets (and 
corresponding  association  rules)  so  as  to  avoid  mining  the  whole  updated  database 
again. Updates on the database may not only invalidate some existing frequent itemsets 
but also turn some new itemsets into frequent ones. Therefore, the problem of maintain-
ing  previously  discovered  frequent  itemsets  in  large  and  dynamic  databases  is  non-
trivial. The idea is to reuse the information of the old frequent itemsets and to integrate 
the support information of the new frequent itemsets in order to substantially reduce 
the pool of candidates to be reexamined. 

 In many applications, interesting associations among data items often occur at a 
relatively high  concept level . For example, one possible hierarchy of food components 

288 

ASSOCIATION  RULES

F (food) 

M (milk)

B (bread)

… 

M1

 (fat-free) M (2%) M
3 

2

(chocolate)

…

B (white)

1

B  (wheat)

2

…

     Figure 10.5.      An example of concept hierarchy for mining multiple - level frequent itemsets.  

is presented in Figure  10.5 , where M (milk) and B (bread), as concepts in the hierarchy, 
may have several elementary sub - concepts. The lowest level elements in the hierarchy 
(M 1 , M 2 ,    . . .    , B 1 , B 2 ,    . . . ) are types of milk and bread deﬁ ned with their bar - codes in 
the store. The purchase patterns in a transaction database may not show any substantial 
regularities at the elementary data level, such as at the bar - code level (M 1 , M 2 , M 3 , B 1 , 
B 2 ,    . . .    ),  but  may  show  some  interesting  regularities  at  some  high  concept  level(s), 
such as milk M and bread B. 

 Consider the class hierarchy in Figure  10.5 . It could be difﬁ cult to ﬁ nd high support 
for purchase patterns at the primitive - concept level, such as chocolate milk and wheat 
bread.  However,  it  would  be  easy  to  ﬁ nd  in  many  databases  that  more  than  80%  of 
customers  who  purchase  milk  may  also  purchase  bread. Therefore,  it  is  important  to 
mine frequent itemsets at a generalized abstraction level or at multiple - concept levels; 
these requirements are supported by the  Apriori  generalized - data structure. 

 One  extension  of  the   Apriori   algorithm  considers  an   is - a   hierarchy  on  database 
items, where information about multiple abstraction levels already exists in the database 
organization. An  is - a  hierarchy deﬁ nes which items are a specialization or generaliza-
tion of other items. The extended problem is to compute frequent itemsets that include 
items from different hierarchy levels. The presence of a hierarchy modiﬁ es the notation 
of when an item is contained in a transaction. In addition to the items listed explicitly, 
the transaction contains their ancestors in the taxonomy. This allows the detection of 
relationships involving higher hierarchy levels, since an itemset ’ s support can increase 
if an item is replaced by one of its ancestors.  

   10.5  

  FP GROWTH METHOD 

 Let us deﬁ ne one of the most important problems with scalability of the  Apriori  algo-
rithm.  To  generate  one  FP  of  length  100,  such  as  {a 1 ,  a 2 ,    . . .    ,  a 100 },  the  number  of 
candidates that has to be generated will be at least

100

∑ =
100
(
)i

=
1

i

100
2

− ≈

1 10

30

and  it  will  require  hundreds  of  database  scans.  The  complexity  of  the  computation 
increases  exponentially.  That  is  only  one  of  the  many  factors  that  inﬂ uence  the 
development  of  several  new  algorithms  for  association - rule  mining. 

   
 
FP  GROWTH  METHOD 

289

  TAB LE 10.2.     The Transactional Database T 

   TID  

  01  
  02  
  03  
  04  
  05  

   Itemset  

  f, a, c, d, g, i, m, p  
  a, b, c, f, l, m, o  
  b, f, h, j, o  
  b, c, k, s, p  
  a, f, c, e, l, p, m, n  

  FP growth method  is an efﬁ cient way of mining frequent itemsets in large data-
bases. The algorithm mines frequent itemsets without the time - consuming candidate -
 generation process that is essential for  Apriori . When the database is large, FP growth 
ﬁ rst performs a database projection of the frequent items; it then switches to mining 
the main memory by constructing a compact data structure called the FP tree. For an 
explanation of the algorithm, we will use the transactional database in Table  10.2  and 
the minimum support threshold of 3. 

 First, a scan of the database T derives a list L of frequent items occurring three or 

more than three times in the database. These are the items (with their supports):

   L

= {( , ), ( , ), ( , ), ( , ), (
4

4

b

3

3

a

c

f

m

3
, ), ( , )}.
p

3

 The items are listed in descending order of frequency. This ordering is important 

since each path of the FP tree will follow this order. 

 Second, the root of the tree, labeled ROOT, is created. The database T is scanned 
a  second  time.  The  scan  of  the  ﬁ rst  transaction  leads  to  the  construction  of  the  ﬁ rst 
branch of the FP tree: {(f,1), (c,1), (a,1), (m,1), (p,1)}. Only those items that are in the 
list  of  frequent  items  L  are  selected.  The  indices  for  nodes  in  the  branch  (all  are  1) 
represent the cumulative number of samples at this node in the tree, and of course, after 
the ﬁ rst sample, all are 1. The order of the nodes is not as in the sample but as in the 
list of frequent items L. For the second transaction, because it shares items f, c, and a 
it shares the preﬁ x {f, c, a} with the previous branch and extends to the new branch 
{(f, 2), (c, 2), (a, 2), (m, 1), (p, 1)}, increasing the indices for the common preﬁ x by 
one. The new intermediate version of the FP tree, after two samples from the database, 
is given in Figure  10.6 a. The remaining transactions can be inserted similarly, and the 
ﬁ nal FP tree is given in Figure  10.6 b. 

 To facilitate tree traversal, an  item header table  is built, in which each item in list 
L  connects  nodes  in  the  FP  tree  with  its  values  through  node  links. All  f  nodes  are 
connected in one list, all c nodes in the other, and so on. For simplicity of representa-
tion only the list for b nodes is given in Figure  10.6 b. Using the compact - tree structure, 
the FP growth algorithm mines the complete set of frequent itemsets. 

 According to the list L of frequent items, the complete set of frequent itemsets can 
be  divided  into  subsets  (six  for  our  example)  without  overlap:  (1)  frequent  itemsets 
having  item  p  (the  end  of  list  L);  (2)  the  itemsets  having  item  m  but  not  p;  (3)  the 
frequent itemsets with b and without both m and p;    . . .    ; and (6) the large itemsets only 

  
290 

ASSOCIATION  RULES

ROOT

f, 2

c, 2

a, 2

m, 1

    b, 1

p, 1

m, 1

(a)

f, 4

ROOT

b, 1

c, 3

a, 3

m, 2

b, 1

p, 2 m, 1

(b)

Header

         :    

b

c, 1 

b, 1 

p, 1 

     Figure 10.6.      FP tree for the database T in Table  10.2 . (a) FP tree after two samples; (b) ﬁ nal 
FT tree.  

with  f.  This  classiﬁ cation  is  valid  for  our  example,  but  the  same  principles  can  be 
applied to other databases and other L lists. 

 Based on node - link connection, we collect all the transactions that p participates 
in by starting from the header table of p and following p ’ s node links. In our example, 
two paths will be selected in the FP tree: {(f,4), (c,3), (a,3), (m,2), (p,2)} and {(c,1), 
(b,1), (p,1)}, where samples with a frequent item p are {(f,2), (c,2), (a,2), (m,2), (p,2)}, 
and {(c,1), (b,1), (p,1)}. The given threshold value (3) satisﬁ es only the frequent item-
sets   {(c,3),  (p,3)},   or  the  simpliﬁ ed   {c,  p} .  All  other  itemsets  with  p  are  below  the 
threshold value. 

 The next subsets of frequent itemsets are those with m and without p. The FP tree 
recognizes the paths {(f,4), (c,3), (a,3), (m,2)}, and {(f,4), (c,3), (a,3), (b,1), (m,1)}, or 
the  corresponding  accumulated  samples  {(f,2),  (c,2),  (a,2),  (m,2)},  and  {(f,1),  (c,1), 
(a,1), (b,1), (m,1)}. Analyzing the samples we discover the frequent itemset  {(f,3), (c,3), 
(a,3), (m,3)}  or, simpliﬁ ed,  {f, c, a, m} . 

 Repeating the same process for subsets (3) to (6) in our example, additional fre-
quent  itemsets  could  be  mined.  These  are  itemsets   {f,  c,  a}   and   {f,  c} ,  but  they  are 
already subsets of the frequent itemset  {f, c, a, m} . Therefore, the ﬁ nal solution in the 
FP growth method is the set of frequent itemsets, which is, in our example,  {{c, p}, {f, 
c, a, m}}.  

 Experiments have shown that the FP growth algorithm is faster than the  Apriori  
algorithm by about one order of magnitude. Several optimization techniques are added 
to the FP growth algorithm, and there exists its versions for mining sequences and pat-
terns under constraints.  

   10.6  

  ASSOCIATIVE - CLASSIFICATION METHOD 

 CMAR is a classiﬁ cation method adopted from the FP growth method for generation 
of frequent itemsets. The main reason we included CMAR methodology in this chapter 
is its FP growth roots, but there is the possibility of comparing CMAR accuracy and 
efﬁ ciency with the C4.5 methodology. 

ASSOCIATIVE-CLASSIFICATION  METHOD 

291

 Suppose data samples are given with n attributes (A 1 , A 2 ,    . . .    , A n ). Attributes can 
be categorical or continuous. For a continuous attribute, we assume that its values are 
discretized  into  intervals  in  the  preprocessing  phase. A  training  data  set T  is  a  set  of 
samples  such  that  for  each  sample  there  exists  a  class  label  associated  with  it.  Let 
C    =    {c 1 , c 2 ,    . . .    , c m } be a ﬁ nite set of  class labels . 

 In general, a pattern P    =    {a 1 , a 2 ,    . . .    , a k } is a set of attribute values for different 
attributes (1    ≤    k    ≤    n). A sample is said to match the pattern P if it has all the attribute 
values  given  in  the  pattern.  For  rule  R:  P    →    c,  the  number  of  data  samples  matching 
pattern P and having class label c is called the  support  of rule R, denoted  sup(R) . The 
ratio of the number of samples matching pattern P and having class label c versus the 
total number of samples matching pattern P is called the  conﬁ dence  of R, denoted as 
 conf(R) . The association - classiﬁ cation method (CMAR) consists of two phases:

   1.      rule generation or training, and  
  2.      classiﬁ cation or testing.    

 In the ﬁ rst, rule generation phase, CMAR computes the complete set of rules in 
the form R: P    →    c, such that sup(R) and conf(R) pass the given thresholds. For a given 
support threshold and conﬁ dence threshold, the associative - classiﬁ cation method ﬁ nds 
the complete set of class - association rules (CAR) passing the thresholds. In the testing 
phase, when a new (unclassiﬁ ed) sample comes, the classiﬁ er, represented by a set of 
association  rules,  selects  the  rule  that  matches  the  sample  and  has  the  highest  conﬁ -
dence, and uses it to predict the classiﬁ cation of the new sample. 

 We  will  illustrate  the  basic  steps  of  the  algorithm  through  one  simple  example. 
Suppose that for a given training data set T, as shown in Table  10.3 , the support thresh-
old is 2 and the conﬁ dence threshold is 70%. 

 First, CMAR scans the training data set and ﬁ nds the set of attribute values occur-
ring beyond the threshold support (at least twice in our database). One simple approach 
is to sort each attribute and to ﬁ nd all frequent values. For our database T, this is a set 
F    =    {a 1 , b 2 , c 1 , d 3 }, and it is called a frequent itemset. All other attribute values fail the 
support threshold. Then, CMAR sorts attribute values in F, in support - descending order, 
that is, F - list    =    (a 1 , b 2 , c 1 , d 3 ). 

 Now, CMAR scans the training data set again to construct an FP tree. The FP tree 
is a preﬁ x tree with respect to the F - list. For each sample in a training data set, attributes 

  TAB LE 10.3.     Training Database T for the 
CMAR Algorithm 

   ID  

  01  
  02  
  03  
  04  
  05  

   A  

  a 1   
  a 1   
  a 2   
  a 1   
  a 1   

   B  

  b 1   
  b 2   
  b 3   
  b 2   
  b 2   

   C  

  c 1   
  c 1   
  c 2   
  c 3   
  c 1   

   D  

  d 1   
  d 2   
  d 3   
  d 3   
  d 3   

   Class  

  A  
  B  
  A  
  C  
  C  

292 

ASSOCIATION  RULES

ROOT

a1 

d3 
A = 1

ROOT

a1

 b2

            d3

C = 1

c1 
A = 1

c1 
B = 1

d3
C = 1 

1 
c
A = 1

b2
C = 1 

c1
B = 1, C = 1

(a)

(b)

     Figure 10.7.      FP tree for the database in Table  10.3 . (a) nonmerged FT tree; (b) FT tree after 
merging d 3  nodes.  

values  appearing  in  the  F - list  are  extracted  and  sorted  according  to  the  order  in  the 
F - list. For example, for the ﬁ rst sample in database T, (a 1 , c 1 ) are extracted and inserted 
in  the  tree  as  the  left - most  branch  in  the  tree. The  class  label  of  the  sample  and  the 
corresponding counter are attached to the last node in the path. 

 Samples  in  the  training  data  set  share  preﬁ xes.  For  example,  the  second  sample 
carries attribute values (a 1 , b 2 , c 1 ) in the F - list and shares a common preﬁ x a 1  with the 
ﬁ rst  sample. An  additional  branch  from  the  node  a 1   will  be  inserted  in  the  tree  with 
new nodes b 2  and c 1 . A new class label B with the count equal to 1 is also inserted at 
the end of the new path. The ﬁ nal FP tree for the database T is given in Figure  10.7 a. 
 After analyzing all the samples and constructing an FP tree, the set of CAR can 
be generated by dividing all rules into subsets without overlap. In our example it will 
be four subsets: (1) the rules having d 3  value; (2) the rules having c 1  but no d 3 ; (3) the 
rules  having  b 2   but  neither  d 3   nor  c 1 ;  and  (4)  the  rules  having  only  a 1 .  CMAR  ﬁ nds 
these subsets one by one. 

 To ﬁ nd the subset of rules having d 3 , CMAR traverses nodes having the attribute 
value d 3  and looks  “ upward ”  the FP tree to collect d 3  - projected samples. In our example, 
there are three samples represented in the FP tree, and they are (a 1 , b 2 , c 1 , d 3 ):C, (a 1 , b 2 , 
d 3 ):C, and (d 3 ):A. The problem of ﬁ nding all FPs in the training set can be reduced to 
mining FPs in the d 3  - projected database. In our example, in the d 3  - projected database, 
since the pattern (a 1 , b 2 , d 3 ) occurs twice its support is equal to the required threshold 
value 2. Also, the rule based on this FP, (a 1 , b 2 , d 3 )    →    C has a conﬁ dence of 100% (above 
the threshold value), and that is the only rule generated in the given projection of the 
database. 

 After a search for rules having d 3  value, all the nodes of d 3  and their corresponding 
class labels are merged into their parent nodes at the FP tree. The FP tree is shrunk as 

 
 
 
 
 
 
 
 
MULTIDIMENSIONAL  ASSOCIATION–RULES  MINING 

293

shown in Figure  10.7 b. The remaining set of rules can be mined similarly by repeating 
the previous procedures for a c 1  - projected database, then for the b 2  - projected database, 
and ﬁ nally for the a 1  - projected database. In this analysis, (a 1 , c 1 ) is an FP with support 
3, but all rules are with conﬁ dence less than the threshold value. The same conclusions 
can be drawn for pattern (a 1 , b 2 ) and for (a 1 ). Therefore, the only association rule gener-
ated through the training process with the database T is (a 1 , b 2 , d 3 )    →    C with support 
equal to 2 and 100% conﬁ dence. 

 When a set of rules is selected for classiﬁ cation, CMAR is ready to classify new 
samples. For the new sample, CMAR collects the subset of rules matching the sample 
from the total set of rules. Trivially, if all the rules have the same class, CMAR simply 
assigns that label to the new sample. If the rules are not consistent in the class label, 
CMAR divides the rules into groups according to the class label and yields the label 
of the  “ strongest ”  group. To compare the strength of groups, it is necessary to measure 
the  “ combined effect ”  of each group. Intuitively, if the rules in a group are highly posi-
tively correlated and have good support, the group should have a strong effect. CMAR 
uses the strongest rule in the group as its representative, that is, the rule with highest 
 χ  2   test  value  (adopted  for  this  algorithm  for  a  simpliﬁ ed  computation).  Preliminary 
experiments  have  shown  that  CMAR  outperforms  the  C4.5  algorithm  in  terms  of 
average accuracy, efﬁ ciency, and scalability.  

   10.7  

  MULTIDIMENSIONAL ASSOCIATION – RULES MINING 

 A multidimensional transactional database DB has the schema

   (

ID A A
1

,

,

2 …
,

,

A items
)

,

n

where ID is a unique identiﬁ cation of each transaction, A i  are structured attributes in 
the  database,  and  items  are  sets  of  items  connected  with  the  given  transaction.  The 
information in each tuple t    =    (id, a 1 , a 2 ,    . . .    , a n , items - t) can be partitioned into two: 
dimensional part (a 1 , a 2 ,    . . .    , a n ) and itemset part (items - t). It is commonsense to divide 
the  mining  process  into  two  steps:  ﬁ rst  mine  patterns  about  dimensional  information 
and then ﬁ nd frequent itemsets from the projected sub - database, or vice versa. Without 
any preferences in the methodology we will illustrate the ﬁ rst approach using the mul-
tidimensional database DB in Table  10.4 . 

  TAB LE 10.4.     Multidimensional - Transactional 
Database DB 

   ID  

  01  
  02  
  03  
  04  

   A 1   

   A 2   

  a  
  b  
  a  
  c  

  1  
  2  
  2  
  3  

   A 3   

  m  
  n  
  m  
  p  

   Items  

  x, y, z  
  z, w  
  x, z, w  
  x, w  

 
294 

ASSOCIATION  RULES

 One can ﬁ rst ﬁ nd the frequent multidimensional - value combinations and then ﬁ nd 
the corresponding frequent itemsets of a database. Suppose that the threshold value for 
our  database  DB  in Table   10.4   is  set  to  2. Then,  the  combination  of  attribute  values 
that occurs two or more than two times is frequent, and it is called a multidimensional 
pattern or MD pattern. For mining MD patterns, a modiﬁ ed Bottom Up Computation 
(BUC) algorithm can be used (it is an efﬁ cient  “ iceberg cube ”  computing algorithm). 
The basic steps of the BUC algorithm are as follows:

   1.      First, sort all tuples in the database in alphabetical order of values in the ﬁ rst 
dimension (A 1 ), because the values for A 1  are categorical. The only MD pattern 
found  for  this  dimension  is  (a,   * ,   * )  because  only  the  value   a   occurs  two 
times;  the  other  values  b  and  c  occur  only  once  and  they  are  not  part  of  the 
MD  patterns.  Value   *   for  the  other  two  dimensions  shows  that  they  are  not 
relevant  in  this  ﬁ rst  step,  and  they  could  have  any  combination  of  allowed 
values. 
 Select tuples in a database with found M pattern (or patterns). In our database, 
these  are  the  samples  with  ID  values  01  and  03.  Sort  the  reduced  database 
again with respect to the second dimension (A 2 ), where the values are 1 and 2. 
Since  no  pattern  occurs  twice,  there  are  no  MD  patterns  for  exact A 1   and A 2  
values.  Therefore,  one  can  ignore  the  second  dimension  A 2   (this  dimension 
does not reduce the database further). All selected tuples are used in the next 
phase. 

 Selected  tuples  in  the  database  are  sorted  in  alphabetical  order  of  values 
for the third dimension (in our example A 3  with categorical values). A subgroup 
(a,   * ,  m)  is  contained  in  two  tuples  and  it  is  an  MD  pattern.  Since  there  are 
no  more  dimensions  in  our  example,  the  search  continues  with  the  second 
step.  

  2.      Repeat the processes in step 1; only start not with the ﬁ rst but with the second 
dimension (ﬁ rst dimension is not analyzed at all in this iteration). In the follow-
ing iterations, reduce the search process further for one additional dimension at 
the beginning. Continue with other dimensions.    

 In  our  example  in  the  second  iteration,  starting  with  attribute  A 2 ,  MD  pattern 
( * , 2,  *  )  will be found .  Including dimension A 3 , there are no additional MD patterns. 
The third and last iteration in our example starts with the A 3  dimension and the cor-
responding pattern is ( * ,  * , m). 

 In summary, the modiﬁ ed BUC algorithm deﬁ nes a set of MD patterns with the 
corresponding projections of a database. The processing tree for our example of data-
base DB is shown in Figure  10.8 . Similar trees will be generated for a larger number 
of dimensions. 

 When all MD patterns are found, the next step in the analysis of multidimensional -
 transactional database is the mining of frequent itemsets in the MD - projected database 
for each MD pattern. An alternative approach is based on ﬁ nding frequent itemsets ﬁ rst 
and then the corresponding MD patterns.   

REVIEW  QUESTIONS  AND  PROBLEMS 

295

ROOT 

(A1, *, *)

(*, A2, *)

(*, *, A3)

(A1, A2, *)

(A1, * , A3)

(*, A2, A3) 

(A1, A2, A3) 

     Figure 10.8.      A processing tree using the BUC algorithm for the database in Table  10.4 .  

 10.8  

 REVIEW QUESTIONS AND PROBLEMS 

       1.     What  is  the  essential  difference  between  association  rules  and  decision  rules 

(described in Chapter  6 )?   

    2.     What are the typical industries in which market - basket analysis plays an important 

role in the strategic decision - making processes?   

    3.     What are the common values for support and conﬁ dence parameters in the  Apriori  

algorithm? Explain using the retail industry as an example.   

    4.     Why  is  the  process  of  discovering  association  rules  relatively  simple  compared 

with generating large itemsets in transactional databases?   

    5.     Given a simple transactional database X:

   X:  

   TID  

  T01  
  T02  
  T03  
  T04  
  T05  
  T06  
  T07  
  T08  

   Items  

  A, B, C, D  
  A, C, D, F  
  C, D, E, G, A  
  A, D, F, B  
  B, C, G  
  D, F, G  
  A, B, G  
  C, D, F, G  

 Using the threshold values support    =    25% and conﬁ dence    =    60%, 
  (a)      ﬁ nd all large itemsets in database X;  
  (b)      ﬁ nd strong association rules for database X;  
  (c)      analyze misleading associations for the rule set obtained in (b).      

    
 
 
 
 
 
 
 
 
 
 
    
    
    
    
    
    
    
    
296 

ASSOCIATION  RULES

    6.     Given a transactional database Y:

   Y:  

   TID  

  T01  
  T02  
  T03  
  T04  
  T05  
  T06  

   Items  

  A1, B1, C2  
  A2, C1, D1  
  B2, C2, E2  
  B1, C1, E1  
  A3, C3, E2  
  C1, D2, E2  

 Using the threshold values for support s    =    30% and conﬁ dence c    =    60%, 
  (a)      ﬁ nd all large itemsets in database Y;  
  (b)      if itemsets are organized in a hierarchy so that A    =    {A1, A2, A3}, 
 B    =    {B1, B2}, C    =    {C1, C2, C3}, D    =    {D1, D2}, and E    =    {E1, E2}, ﬁ nd large itemsets that 

are deﬁ ned on the conceptual level including a hierarchy of items;  

  (c)      ﬁ nd strong association rules for large itemsets in (b).      

    7.     Implement  the   Apriori   algorithm  and  discover  large  itemsets  in  transactional 

database.   

    8.     Search the Web to ﬁ nd the basic characteristics of publicly available or commercial 
software tools for association - rule discovery. Document the results of your search.   

    9.     Given a simple transactional database, ﬁ nd FP tree for this database if 

  (a)      support threshold is 5;  
  (b)      support threshold is 3.    

   TID  

  1  
  2  
  3  
  4  
  5  
  6  
  7  
  8  

    10.     Given a simple transaction database:

   TID  

  1  
  2  
  3  
  4  

   Items  

  a b c d  
  a c d f  
  c d e g a  
  a d f b  
  b c g  
  d f g  
  a b g  
  c d f g  

   Items  

  X Z V  
  X Y U  
  Y Z V  
  Z V W  

    
    
    
    
    
    
    
       
    
REVIEW  QUESTIONS  AND  PROBLEMS 

297

 Using  two  iterations  of  the   Apriori   algorithm  ﬁ nd  large  2 - itemsets  if  required 
support is s    ≥    50%. Show all steps of the algorithm.   

    11.     Given  a  frequent  itemset A,B,C,D,  and  E,  how  many  possible  association  rules 

exist?   

    12.     What are the frequent itemsets with a minimum support of 3 for the given set of 

transactions?      

   TID  

  101  
  102  
  103  
  104  
  105  
  106  
  107  
  108  
  109  
  110  

   Items  

  A,B,C,D,E  
  A,C,D  
  D,E  
  B,C,E  
  A,B,D,E  
  A,B  
  B,D,E  
  A,B,D  
  A,D  
  D,E  

    13.     The  conviction  is a measure for an analysis of a quality of association rules. The 

formula for conviction CV in terms of probabilities is given as:
)
   CV A B

′
−
P A P B
]) /
]
( [

′
P A B
)
,

→ =

(

[

(

 or in terms of support and conﬁ dence of an association rule:

)
   CV A B

→ =

(

1
(
[
-sup B

1
-conf A B
[
]) /(

])

→

 What are basic characteristics of the  conviction  measure? Explain the meaning of 
some characteristic values.   

    14.     Consider the dataset given in the table below.

   Customer ID  

   Transaction Id  

   Items  

  418  
  345  
  323  
  418  
  567  
  567  
  323  
  635  
  345  
  635  

  234145  
  543789  
  965157  
  489651  
  748965  
  325687  
  147895  
  617851  
  824697  
  102458  

  {X, Z}  
  {U, V, W, X, Y, Z}  
  {U, W, Y}  
  {V, X, Z}  
  {U, Y}  
  {W, X, Y}  
  {X, Y, Z}  
  {U, Z}  
  {V, Y}  
  {V, W, X}  

  
  
298 

ASSOCIATION  RULES

      (a)      Compute the support for item sets {Y}, {X, Z} and {X, Y, Z} by treating each transac-

tion ID as a market basket.  

  (b)      Use the results from part (a) to compute the conﬁ dence for rules XZ    →    Y and Y    →    XZ.  
  (c)      Repeat part (a) by treating each customer ID as a market basket. Each item should be 
treated as a binary variable (1 if an item appears in at least one transaction bought by 
the customer, and 0 otherwise).  

  (d)      Use the results from part (c) to compute the conﬁ dence for rules XZ    →    Y and Y    →    XZ.  
  (e)      Find FP - tree for this database if support threshold is 5.      

    15.     A  collection  of  market - basket  data  has  100,000  frequent  items,  and  1,000,000 
infrequent items. Each pair of frequent items appears 100 times; each pair consist-
ing  of  one  frequent  and  one  infrequent  item  appears  10  times,  and  each  pair  of 
infrequent  items  appears  once.  Answer  each  of  the  following  questions.  Your 
answers  only  have  to  be  correct  to  within  1%,  and  for  convenience,  you  may 
optionally use scientiﬁ c notation, for example, 3.14    ×    10 8  instead of 314,000,000.
   (a)      What is the total number of pair occurrences? That is, what is the sum of the counts of 

all pairs?  

  (b)      We did not state the support threshold, but the given information lets us put bounds on 

the support threshold s. What are the tightest upper and lower bounds on s?        

  10.9  

 REFERENCES FOR FURTHER STUDY 

    Adamo ,  J.  ,  Data Mining for Association Rules and Sequential Patterns ,  Springer ,  Berlin ,  2001 .  
  This book presents a collection of algorithms for data mining on the lattice structure of the 
feature space. Given the computational complexity and time requirements of mining associa-
tion rules and sequential patterns, the design of efﬁ cient algorithms is critical. Most algorithms 
provided in the book are designed for both sequential and parallel execution, and they support 
sophisticated data mining of large - scale transactional databases.  

    Cheng    J.  ,    Y.    Ke  ,    W.    Ng  ,   A  Survey  on  Algorithms  for  Mining  Frequent  Itemsets  Over  Data 

Streams ,  Knowledge and Information Systems , Vol.  16 , No.  1 ,  2008 , pp. 1  –  27 .  
  The increasing prominence of data streams arising in a wide range of advanced applications 
such as fraud detection and trend learning has led to the study of online mining of frequent 
itemsets. Unlike mining static databases, mining data streams poses many new challenges. In 
addition to the one - scan nature, the unbounded memory requirement and the high data arrival 
rate of data streams, the combinatorial explosion of itemsets exacerbates the mining task. The 
high complexity of the frequent itemset mining problem hinders the application of the stream -
 mining  techniques.  We  recognize  that  a  critical  review  of  existing  techniques  is  needed  in 
order to design and develop efﬁ cient mining algorithms and data structures that are able to 
match the processing rate of the mining with the high arrival rate of data streams. Within a 
unifying  set  of  notations  and  terminologies,  we  describe  in  this  paper  the  efforts  and  main 
techniques for mining data streams and present a comprehensive survey of a number of the 
state - of - the - art algorithms on mining frequent itemsets over data streams.  

    Goethals   B.  ,  Frequent Set Mining , in  Data Mining and Knowledge Discovery Handbook ,   Maimon  

 L.  ,   Rokach   L.  , ed.,  Springer ,  New York ,  2005 , pp.  377  –  397 .  
  Frequent sets lie at the basis of many data - mining algorithms. As a result, hundreds of algo-
rithms have been proposed in order to solve the frequent set mining problem. In this chapter, 

REFERENCES  FOR  FURTHER  STUDY 

299

we  attempt  to  survey  the  most  successful  algorithms  and  techniques  that  try  to  solve  this 
problem  efﬁ ciently.  During  the  ﬁ rst  10   years  after  the  proposal  of  the  frequent  set  mining 
problem, several hundreds of scientiﬁ c papers were written on the topic and it seems that this 
trend is keeping its pace.  

    Han ,  J.  ,   M.   Kamber  ,  Data Mining: Concepts and Techniques ,  2nd  edition,  Morgan Kaufmann , 

 San Francisco ,  2006 .  
 v This book gives a sound understanding of data - mining principles. The primary orientation 
of the book is for database practitioners and professionals with emphasis on OLAP and data 
warehousing. In - depth analysis of association rules and clustering algorithms is the additional 
strength of the book. All algorithms are presented in easily understood pseudo - code and they 
are suitable for use in real - world, large - scale data - mining projects including advanced applica-
tions such as Web mining and text mining.   

 
 
  11 

WEB MINING AND 
TEXT MINING     

  Chapter Objectives 

     (cid:127)       Explain the speciﬁ cs of Web mining.  
   (cid:127)       Introduce a classiﬁ cation of basic Web - mining subtasks.  
   (cid:127)       Illustrate the possibilities of Web mining using Hyperlink - Induced Topic Search 

(HITS), LOGSOM, and Path Traversal algorithms.  
   (cid:127)       Describe query - independent ranking of Web pages.  
   (cid:127)       Formalize  a  text - mining  framework  specifying  the  reﬁ ning  and  distillation 

phases.  

   (cid:127)       Outline latent semantic indexing.     

   11.1  

  WEB MINING 

 In  a  distributed  information  environment,  documents  or  objects  are  usually  linked 
together to facilitate interactive access. Examples for such information - providing envi-
ronments include the World Wide Web (WWW) and online services such as America 

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

300

 
WEB  MINING 

301

Online,  where  users,  when  seeking  information  of  interest,  travel  from  one  object  to 
another  via  facilities  such  as  hyperlinks  and  URL  addresses.  The  Web  is  an  ever -
 growing  body  of  hypertext  and  multimedia  documents. As  of  2008,  Google  had  dis-
covered  1  trillion  Web  pages.  The  Internet Archive,  which  makes  regular  copies  of 
many publicly available Web pages and media ﬁ les, was three petabytes in size as of 
March 2009. Several billions of pages are added each day to that number. As the infor-
mation offered in the Web grows daily, obtaining that information becomes more and 
more  tedious.  The  main  difﬁ culty  lies  in  the  semi - structured  or  unstructured  Web 
content that is not easy to regulate and where enforcing a structure or standards is dif-
ﬁ cult. A set of Web pages lacks a unifying structure and shows far more authoring styles 
and content variation than that seen in traditional print document collections. This level 
of complexity makes an  “ off - the - shelf ”  database - management and information - retrieval 
solution very complex and almost impossible to use. New methods and tools are neces-
sary. Web mining may be deﬁ ned as the use of data - mining techniques to automatically 
discover  and  extract  information  from  Web  documents  and  services.  It  refers  to  the 
overall process of discovery, not just to the application of standard data - mining tools. 
Some authors suggest decomposing Web - mining task into four subtasks:

   1.      Resource Finding .       This is the process of retrieving data, which is either online 
or  ofﬂ ine,  from  the  multimedia  sources  on  the  Web,  such  as  news  articles, 
forums, blogs, and the text content of HTML documents obtained by removing 
the HTML tags.  

  2.      Information Selection and Preprocessing .       This is the process by which different 
kinds  of  original  data  retrieved  in  the  previous  subtask  is  transformed. These 
transformations could be either a kind of preprocessing such as removing stop 
words and stemming or a preprocessing aimed at obtaining the desired repre-
sentation,  such  as  ﬁ nding  phrases  in  the  training  corpus  and  representing  the 
text in the ﬁ rst - order logic form.  

  3.      Generalization .       Generalization  is  the  process  of  automatically  discovering 
general  patterns  within  individual  Web  sites  as  well  as  across  multiple  sites. 
Different  general - purpose  machine - learning  techniques,  data - mining  tech-
niques, and speciﬁ c Web - oriented methods are used.  

  4.      Analysis .       This is a task in which validation and/or interpretation of the mined 

patterns is performed.    

 There are three factors affecting the way a user perceives and evaluates Web sites 
through the data - mining process: (1) Web - page content, (2) Web - page design, and (3) 
overall  site  design  including  structure.  The  ﬁ rst  factor  is  concerned  with  the  goods, 
services, or data offered by the site. The other factors are concerned with the way in 
which the site makes content accessible and understandable to its users. We distinguish 
between the design of individual pages and the overall site design, because a site is not 
a simply a collection of pages; it is a network of related pages. The users will not engage 
in exploring it unless they ﬁ nd its structure simple and intuitive. Clearly, understanding 
user - access  patterns  in  such  an  environment  will  not  only  help  improve  the  system 

302 

WEB  MINING  AND  TEXT  MINING 

design (e.g., providing efﬁ cient access between highly correlated objects, better author-
ing design for WWW pages), it will also lead to better marketing decisions. Commercial 
results will be improved by putting advertisements in proper places, better customer/
user  classiﬁ cation,  and  understanding  user  requirements  better  through  behavioral 
analysis. 

 No  longer  are  companies  interested  in  Web  sites  that  simply  direct  trafﬁ c  and 
process  orders.  Now  they  want  to  maximize  their  proﬁ ts.  They  want  to  understand 
customer preferences and customize sales pitches to individual users. By evaluating a 
user ’ s  purchasing  and  browsing  patterns,  e - vendors  want  to  serve  up  (in  real  time) 
customized menus of attractive offers e - buyers cannot resist. Gathering and aggregating 
customer information into e - business intelligence is an important task for any company 
with  Web - based  activities.  e - Businesses  expect  big  proﬁ ts  from  improved  decision 
making, and therefore e - vendors line up for data - mining solutions. 

 Borrowing from marketing theory, we measure the efﬁ ciency of a Web page by its 
contribution to the success of the site. For an online shop, it is the ratio of visitors that 
purchased a product after visiting this page to the total number of visitors that accessed 
the page. For a promotional site, the efﬁ ciency of the page can be measured as the ratio 
of visitors that clicked on an advertisement after visiting the page. The pages with low 
efﬁ ciency  should  be  redesigned  to  better  serve  the  purposes  of  the  site.  Navigation -
 pattern discovery should help in restructuring a site by inserting links and redesigning 
pages, and ultimately accommodating user needs and expectations. 

 To deal with problems of Web - page quality, Web - site structure, and their use, two 
families  of  Web  tools  emerge.  The  ﬁ rst  includes  tools  that  accompany  the  users  in 
their  navigation,  learn  from  their  behavior,  make  suggestions  as  they  browse,  and, 
occasionally, customize the user proﬁ le. These tools are usually connected to or built 
into parts of different search engines. The second family of tools analyzes the activities 
of  users  ofﬂ ine.  Their  goal  is  to  provide  insights  into  the  semantics  of  a  Web  site ’ s 
structure by discovering how this structure is actually utilized. In other words, knowl-
edge of the navigational behavior of users is used to predict future trends. New data -
 mining  techniques  are  behind  these  tools,  where  Web - log  ﬁ les  are  analyzed  and 
information is uncovered. In the next four sections, we will illustrate Web mining with 
four techniques that are representative of a large spectrum of Web - mining methodolo-
gies developed recently.  

   11.2  

  WEB CONTENT, STRUCTURE, AND USAGE MINING 

 One  possible  categorization  of  Web  mining  is  based  on  which  part  of  the  Web  one 
mines. There are three main areas of Web mining: Web - content mining, Web - structure 
mining,  and  Web - usage  mining.  Each  area  is  classiﬁ ed  by  the  type  of  data  used  in 
the  mining  process.  Web - content  mining  uses  Web - page  content  as  the  data  source 
for the mining process. This could include text, images, videos, or any other type of 
content on Web pages. Web - structure mining focuses on the link structure of Web pages. 
Web - usage mining does not use data from the Web itself but takes as input data recorded 
from the interaction of users using the Internet. 

WEB  CONTENT,  STRUCTURE,  AND  USAGE  MINING 

303

 The most common use of Web - content mining is in the process of searching. There 
are many different solutions that take as input Web - page text or images with the intent 
of helping users ﬁ nd information that is of interest to them. For example, crawlers are 
currently  used  by  search  engines  to  extract  Web  content  into  the  indices  that  allow 
immediate  feedback  from  searches. The  same  crawlers  can  be  altered  in  such  a  way 
that rather than seeking to download all reachable content on the Internet, they can be 
focused on a particular topic or area of interest. 

 To create a focused crawler, a classiﬁ er is usually trained on a number of docu-
ments selected by the user to inform the crawler as to the type of content to search for. 
The crawler will then identify pages of interest as it ﬁ nds them and follow any links 
on that page. If those links lead to pages that are classiﬁ ed as not being of interest to 
the user, then the links on that page will not be used further by the crawler. 

 Web - content  mining  can  also  be  seen  directly  in  the  search  process.  All  major 
search  engines  currently  use  a  list - like  structure  to  display  search  results. The  list  is 
ordered by a ranking algorithm behind the scenes. An alternative view of search results 
that has been attempted is to provide the users with clusters of Web pages as results 
rather than individual Web pages. Often a hierarchical clustering that will give multiple 
topic levels is performed. 

 As an example consider the Web site Clusty.com, which provides a clustered view 
of search results. If one keyword were to enter [jaguar] as a search onto this Web site, 
one sees both a listing of topics and a list of search results side - by - side, as shown in 
Figure  11.1 . This speciﬁ c query is ambiguous, and the topics returned show that ambi-
guity. Some of the topics returned include: cars, Onca, Panthery (animal kingdom), and 

     Figure 11.1.      Example query from Clusty.com.  

304 

WEB  MINING  AND  TEXT  MINING 

Jacksonville (American football team). Each of these topics can be expanded to show 
all of the documents returned for this query in a given topic.   

 Web - structure mining considers the relationships between Web pages. Most Web 
pages include one or more hyperlinks. These hyperlinks are assumed in structure mining 
to  provide  an  endorsement  by  the  linking  page  of  the  page  linked.  This  assumption 
underlies PageRank and HITS, which will be explained later in this section. 

 Web - structure  mining  is  mainly  used  in  the  information  retrieval  (IR)  process. 
PageRank may have directly contributed to the early success of Google. Certainly the 
analysis of the structure of the Internet and the interlinking of pages currently contrib-
utes to the ranking of documents in most major search engines. 

 Web - structure mining is also used to aid in Web - content mining processes. Often, 
classiﬁ cation tasks will consider features from the content of the Web page and may 
consider  the  structure  of  the Web  pages.  One  of  the  more  common  features  in Web -
 mining tasks taken from structure mining is the use of anchor text. Anchor text refers 
to the text displayed to users on an HTML hyperlink. Oftentimes the anchor text pro-
vides summary keywords not found on the original Web page. The anchor text is often 
as brief as search - engine queries. Additionally, if links are endorsements of Web pages, 
then the anchor text offers keyword - speciﬁ c endorsements. 

 Web - usage mining refers to the mining of information about the interaction of users 
with  Web  sites.  This  information  may  come  from  server  logs,  logs  recorded  by  the 
client ’ s browser, registration form information, and so on. Many usage questions exist, 
such  as  the  following:  How  does  the  link  structure  of  the  Web  site  differ  from  how 
users may prefer to traverse the page? Where are the inefﬁ ciencies in the e - commerce 
process of a Web site? What segments exist in our customer base? 

 There are some key terms in Web - usage mining that require deﬁ ning. A  “ visitor ”  
to a Web site may refer to a person or program that retrieves a Web page from a server. 
A  “ session ”  refers to all page views that took place during a single visit to a Web site. 
Sessions  are  often  deﬁ ned  by  comparing  page  views  and  determining  the  maximum 
allowable time between page views before a new session is deﬁ ned. Thirty minutes is 
a standard setting. 

 Web - usage  mining  data  often  requires  a  number  of  preprocessing  steps  before 
meaningful  data  mining  can  be  performed.  For  example,  server  logs  often  include  a 
number of computer visitors that could be search - engine crawlers, or any other com-
puter program that may visit Web sites. Sometimes these  “ robots ”  identify themselves 
to the server passing a parameter called  “ user agent ”  to the server that uniquely identi-
ﬁ es  them  as  robots.  Some  Web  page  requests  do  not  make  it  to  the  Web  server  for 
recording, but instead a request may be ﬁ lled by a cache used to reduce latency. 

 Servers record information on a granularity level that is often not useful for mining. 
For a single Web - page view, a server may record the browsers ’  request for the HTML 
page, a number of requests for images included on that page, the Cascading Style Sheets 
(CSS) of a page, and perhaps some JavaScript libraries used by that Web page. Often 
there  will  need  to  be  a  process  to  combine  all  of  these  requests  into  a  single  record. 
Some logging solutions sidestep this issue by using JavaScript embedded into the Web 
page to make a single request per page view to a logging server. However, this approach 

HITS  AND  LOGSOM  ALGORITHMS 

305

has the distinct disadvantage of not recording data for users that have disabled JavaScript 
in their browser. 

 Web - usage mining takes advantage of many of the data - mining approaches avail-
able. Classiﬁ cation may be used to identify characteristics unique to users that make 
large  purchases.  Clustering  may  be  used  to  segment  the  Web - user  population.  For 
example, one may identify three types of behavior occurring on a university class Web 
site.  These  three  behavior  patterns  could  be  described  as  users  cramming  for  a  test, 
users working on projects, and users consistently downloading lecture notes from home 
for study. Association mining may identify two or more pages often viewed together 
during the same session, but that are not directly linked on a Web site. Sequence analysis 
may  offer  opportunities  to  predict  user  navigation  patterns  and  therefore  allow  for 
within site, targeted advertisements. More on Web - usage mining will be shown through 
the LOGSOM algorithm and through the section on  “ Mining path traversal patterns. ”   

   11.3  

  HITS AND LOGSOM ALGORITHMS 

 To date, index - based search engines for the Web have been the primary tool with which 
users search for information. Experienced Web surfers can make effective use of such 
engines  for  tasks  that  can  be  solved  by  searching  with  tightly  constrained  keywords 
and  phrases.  These  search  engines  are,  however,  unsuited  for  a  wide  range  of  less 
precise tasks. How does one select a subset of documents with the most value from the 
millions that a search engine has prepared for us? To distill a large Web - search topic 
to a size that makes sense to a human user, we need a means of identifying the topic ’ s 
most authoritative Web pages. The notion of authority adds a crucial dimension to the 
concept of relevance: We wish to locate not only a set of relevant pages, but also those 
that are of the highest quality. 

 It  is  important  that  the Web  consists  not  only  of  pages,  but  also  hyperlinks  that 
connect one page to another. This hyperlink structure contains an enormous amount of 
information that can help to automatically infer notions of authority. Speciﬁ cally, the 
creation of a hyperlink by the author of a Web page represents an implicit endorsement 
of  the  page  being  pointed  to.  By  mining  the  collective  judgment  contained  in  the 
set  of  such  endorsements,  we  can  gain  a  richer  understanding  of  the  relevance  and 
quality of the Web ’ s contents. It is necessary for this process to uncover two important 
types of pages:  authorities , which provide the best source of information about a given 
topic and  hubs , which provide a collection of links to authorities. 

 Hub  pages  appear  in  a  variety  of  forms,  ranging  from  professionally  assembled 
resource lists on commercial sites to lists of recommended links on individual home 
pages.  These  pages  need  not  themselves  be  prominent,  and  working  with  hyperlink 
information  in  hubs  can  cause  much  difﬁ culty. Although  many  links  represent  some 
kind of endorsement, some of the links are created for reasons that have nothing to do 
with  conferring  authority.  Typical  examples  are  navigation  and  paid  advertisement 
hyperlinks. A hub ’ s distinguishing feature is that they are potent conferrers of authority 
on a focused topic. We can deﬁ ne a  good hub  if it is a page that points to many good 

306 

WEB  MINING  AND  TEXT  MINING 

authorities. At the same time, a good authority page is a page pointed to by many good 
hubs. This mutually reinforcing relationship between hubs and authorities serves as the 
central idea applied in the  HITS algorithm  that searches for good hubs and authorities. 
The two main steps of the HITS algorithm are 

  1.       the sampling component , which constructs a focused collection of Web pages 

likely to be rich in relevant information, and  

  2.       the weight - propagation component , which determines the estimates of hubs and 
authorities by an iterative procedure and obtains the subset of the most relevant 
and authoritative Web pages.    

 In the sampling phase, we view the Web as a directed graph of pages. The HITS 
algorithm  starts  by  constructing  the  subgraph  in  which  we  will  search  for  hubs  and 
authorities. Our goal is a subgraph rich in relevant, authoritative pages. To construct 
such a subgraph, we ﬁ rst use query terms to collect a root set of pages from an index -
 based  search  engine.  Since  many  of  these  pages  are  relevant  to  the  search  topic,  we 
expect that at least some of them are authorities or that they have links to most of the 
prominent authorities. We therefore expand the root set into a base set by including all 
the pages that the root - set pages link to, up to a designated cutoff size. This base set V 
typically contains from 1000 to 5000 pages with corresponding links, and it is a ﬁ nal 
result of the ﬁ rst phase of HITS. 

 In  the  weight - propagation  phase,  we  extract  good  hubs  and  authorities  from  the 
base set V by giving a concrete numeric interpretation to all of them. We associate a 
nonnegative authority weight  a  p  and a nonnegative hub weight  h  p  with each page p    ∈    V. 
We are interested only in the relative values of these weights; therefore, normalization 
is applied so that their total sum remains bounded. Since we do not impose any prior 
estimates, we set all  a  and  h  values to a uniform constant initially. The ﬁ nal weights 
are unaffected by this initialization. 

 We now update the authority and hub weights as follows. If a page is pointed to 
by many good hubs, we would like to increase its authority weight. Thus, we update 
the value of a p  for the page p to be the sum of h q  over all pages q that link to p:

=

   a

p

∑

∀

h , q such that q

q

→

p

where the notation q → p indicates that page q links to page p. In a strictly dual fashion, 
if a page points to many good authorities, we increase its hub weight
∑

a , q such that p
q

→

∀

   h

=

q

p

 There  is  a  more  compact  way  to  write  these  updates.  Let  us  number  the  pages 
{1,2,    . . .    ,  n},  and  deﬁ ne  their  adjacency  matrix A  to  be  n    ×    n  matrix  whose  (i,  j) th  
element is equal to 1 if page i links to page j, and 0 otherwise. All pages at the begin-
ning of the computation are both hubs and authorities, and, therefore, we can represent 
them as vectors

 
  
HITS  AND  LOGSOM  ALGORITHMS 

307

   a = { ,

a a ,
1

2 …

, a  and
}

n

   h = { ,

h h
1

2 …
,

,

hn

}

 Our update rules for authorities and hubs can be written as

   a

   h

= AT
h
= A   
a

 or, substituting one into another relation,

=

   a

T

A

h

=

T
A A

a

=

(

T
A A

)

a

=

   h

A

a

=

A A

T

h

=

(

A A

T

)

h

 These  are  relations  for  iterative  computation  of  vectors   a   and   h .  Linear  algebra 
tells  us  that  this  sequence  of  iterations,  when  normalized,  converges  to  the  principal 
eigenvector of A T A. This says that the hub and authority weights we compute are truly 
an intrinsic feature of the linked pages collected, not an artifact of our choice of initial 
weights.  Intuitively,  the  pages  with  large  weights  represent  a  very  dense  pattern  of 
linkage, from pages of large hub weights to pages of large authority weights. Finally, 
HITS produces a short list consisting of the pages with the largest hub weights and the 
pages with the largest authority weights for the given search topic. Several extensions 
and improvements of the HITS algorithm are available in the literature. Here we will 
illustrate the basic steps of the algorithm using a simple example. 

 Suppose  that  a  search  engine  has  selected  six  relevant  documents  based  on  our 
query, and we want to select the most important authority and hub in the available set. 
The selected documents are linked into a directed subgraph, and the structure is given 
in Figure  11.2 a, while corresponding adjacency matrix A and initial weight vectors  a  
and  h  are given in Figure  11.2 b.   

 The ﬁ rst iteration of the HITS algorithm will give the changes in the a and h vectors:

1 

2 

6 

3 

A  =

0 0 0 1 1 1  
0 0 0 1 1 0  
0 0 0 0 1 0 
0 0 0 0 0 0  
0 0 0 0 0 0 
0 0 1 0 0 0 

5 

4 

a = {0.1, 0.1, 0.1, 0.1, 0.1, 0.1} 
h = {0.1, 0.1, 0.1, 0.1, 0.1, 0.1} 

(a)

(b)

     Figure 11.2.      Initialization of the HITS algorithm. (a) Subgraph of the linked pages; (b) adja-
cency matrix A and weight vectors for the given graph.  

 
  
 
 
  
308 

WEB  MINING  AND  TEXT  MINING 

a =










= [

0 0 0 0 0 0

0 0 0 0 0 0

0 0 0 0 0 1

1 1 0 0 0 0

1 1 1 0 0 0

1 0 0 0 0 0











⋅











0 00 0 1 1 1

0 0 0 1 1 0

0 0 0 0 1 0

0 0 0 0 0 0

0 0 0 0 0 0

0 0 1 0 0 0

h =

]

.

0 0 0 1 1 0

0 0 0 1 1 1

0 0 0 0 1 1

0 0 0 1 0 5 0 6 0 3
.
.









= [

]
.
.
.
0 6 0 5 0 3 0 0 0 1

0 0 1 0 0 0

0 0 0 0 0 0

0 0 0 0 0 0

.




















.

⋅

0 00 0 0 0 0

0 0 0 0 0 0

0 0 0 0 0 1

1 1 0 0 0 0

1 1 1 0 0 0

1 0 0 0 0 0





















⋅

⋅












0 1
.

00 1
.


0 1
.

0 1
.


0 1
.


.
0 1












0 1
.

.
00 1


.
0 1

.
0 1


.
0 1


.
0 1

 Even  this  single  iteration  of  the  HITS  algorithm  shows  that,  in  the  given  set  of 
documents,  document - 5  has  the  most  authority  and  document - 1  is  the  best  hub. 
Additional iterations will correct the weight factors for both vectors, but the obtained 
ranking of authorities and hubs will stay unchanged for this example. 

 The continuous growth in the size and use of the Internet creates difﬁ culties in the 
search for information. Resource discovery is frustrating and inefﬁ cient when simple 
keyword searches can convey hundreds of thousands of documents as results. Many of 
them are irrelevant pages, some of them may have been moved, and some abandoned. 
While  the  ﬁ rst Web - mining  algorithm  HITS  is  primarily  based  on  static  information 
describing the Web - site structure, the second one, LOGSOM, uses dynamic information 
about a user ’ s behavior. LOGSOM is a sophisticated method that organizes the layout 
of  the  information  in  a  user - interpretable  graphic  form.  The  LOGSOM  system  uses 
self - organizing maps (SOM) to organize Web pages into a two - dimensional (2 - D) table, 
according to users ’  navigation patterns. The system organizes Web pages according to 
the interest of Web users by keeping track of their navigation paths. 

 The SOM technique is used as the most appropriate technique for the problem of 
Web - page  organization  because  of  its  strength  not  only  in  grouping  data  points  into 
clusters,  but  also  in  graphically  representing  the  relationship  among  clusters.  The 
system starts with a Web - log ﬁ le indicating the date, time, and address of the requested 
Web pages as well as the IP address of the user ’ s machine. The data are grouped into 
meaningful  transactions  or  sessions,  where  a  transaction  is  deﬁ ned  by  a  set  of  user -
 requested Web pages. We assume that there is a ﬁ nite set of unique URLs:

   U url url

= {

,

1

2 …
,

, urln

}

and a ﬁ nite set of m user transactions:

   T

= { ,
t

1

2 …
,

t

, t m

}

   
 
   
  
 
  
HITS  AND  LOGSOM  ALGORITHMS 

309

  TA BLE 11.1.     Transactions Described by a Set of URLs 

   URL 1   

   URL 2   

    . . .   

   URL n   

  t 1   
  t 2   
   . . .   
  t m   

  0  
  1  

  0  

  1  
  1  

  0  

  1  
  0  

  0  

  TABL E 11.2.     Representing URLs as Vectors 
of Transaction Group Activity 

   Transaction Groups  

   1  

  15  
  2  

  0  

   2  

  0  
  1  

  1  

  URL 1   
  URL 2   
   . . .   

  URL n   

    . . .   

   k  

  2  
  10  

  2  

 Transactions are represented as a vector with binary values u i :

   t

= { ,

u u
1

2 …
,

, un

}

where

=

u

i


1



0

∈

t

if url

i
otherwise

 Preprocessed log ﬁ les can be represented as a binary matrix. One example is given 

in Table  11.1 .   

 Since the dimensions of a table (n    ×    m) for real - world applications would be very 
large, especially as input data to SOM, a reduction is necessary. By using the K - means 
clustering  algorithm,  it  is  possible  to  cluster  transactions  into  prespeciﬁ ed  number  k 
(k    <<    m) of transaction groups. An example of a transformed table with a new, reduced 
data  set  is  represented  in  Table   11.2 ,  where  the  elements  in  the  rows  represent  the 
total  number  of  times  a  group  accessed  a  particular  URL  (the  form  of  the  table  and 
values are only one illustration, and they are not directly connected with the values in 
Table  11.1 ).   

 The new, reduced table is the input for SOM processing. Details about the applica-
tion of SOM as a clustering technique and the settings of their parameters are given in 
the previous chapter. We will explain only the ﬁ nal results and their interpretation in 
terms of Web - page analysis. Each URL will be mapped onto a SOM based on its simi-
larity with other URLs in terms of user usage or, more precisely, according to users ’  
navigation patterns (transaction group  “ weights ”  in Table  11.2 ). Suppose that the SOM 
is a 2 - D map with p    ×    p nodes, where p    ×    p    ≥    n, then a typical result of SOM processing 
is given in Table  11.3 . The dimensions and values in the table are not the results of any 

 
   
      
     
    
    
    
    
    
    
    
     
    
    
    
    
    
    
    
310 

WEB  MINING  AND  TEXT  MINING 

  TAB LE 11.3.     A Typical SOM Generated by 
the Description of URLs 

   3  

  1  
  10  

   1  

  2  
  3  

   2  

  1  

  54  

    . . .   

   . . .   

   . . .   

   p  

  15  

  11  

  1  
  2  
   . . .   
  p  

computation with values in Tables  11.1  and  11.2 , but a typical illustration of the SOM ’ s 
ﬁ nal presentation.   

 The  SOM  organizes  Web  pages  into  similar  classes  based  on  users ’   navigation 
patterns.  The  blank  nodes  in  the  table  show  that  there  are  no  corresponding  URLs, 
while the numbered nodes indicate the number of URLs contained within each node 
(or within each class). The distance on the map indicates the similarity of the Web pages 
measured by the user - navigation patterns. For example, the number 54 in the last row 
shows that 54 Web pages are grouped in the same class because they have been accessed 
by similar types of people, as indicated by their transaction patterns. Similarity here is 
measured not by similarity of content but by similarity of usage. Therefore, the orga-
nization of the Web documents in this graphical representation is based solely on the 
users ’  navigation behavior. 

 What are the possible applications of the LOGSOM methodology? The ability to 
identify which Web pages are being accessed by a company ’ s potential customers gives 
the company information to make improved decisions. If one Web page within a node 
successfully refers clients to the desired information or desired page, the other pages 
in the same node are likely to be successful as well. Instead of subjectively deciding 
where  to  place  an  Internet  advertisement,  the  company  can  now  decide  objectively, 
supported directly by the user - navigation patterns.  

   11.4  

  MINING PATH – TRAVERSAL PATTERNS 

 Before improving a company ’ s Web site, we need a way of evaluating its current usage. 
Ideally, we would like to evaluate a site based on the data automatically recorded on 
it.  Each  site  is  electronically  administered  by  a Web  server,  which  logs  all  activities 
that take place in it in a ﬁ le called a Web - server log. All traces left by the Web users 
are stored in this log. Therefore, from these log ﬁ les we can extract information that 
indirectly reﬂ ects the site ’ s quality by applying data - mining techniques. We can mine 
data to optimize the performance of a Web server, to discover which products are being 
purchased together, or to identify whether the site is being used as expected. The con-
crete speciﬁ cation of the problem guides us through different data - mining techniques 
applied to the same Web - server log. 

 While  the  LOGSOM  methodology  is  concentrated  on  similarity  of  Web  pages, 
other techniques emphasize the similarity of a user ’ s paths through the Web. Capturing 

     
    
    
    
    
    
    
    
    
    
    
MINING  PATH–TRAVERSAL  PATTERNS 

311

user - access patterns in a Web environment is referred to as  mining path – traversal pat-
terns .  It  represents  an  additional  class  of  data - mining  techniques,  which  is  showing 
great promise. Note that because users travel along information paths to search for the 
desired  information,  some  objects  or  documents  are  visited  because  of  their  location 
rather than their content. This feature of the traversal pattern unavoidably increases the 
difﬁ culty of extracting meaningful information from a sequence of traversal data, and 
explains the reason why current Web - usage analyses are mainly able to provide statisti-
cal  information  for  traveling  points,  but  not  for  traveling  paths.  However,  as  these 
information - providing services become increasingly popular, there is a growing demand 
for capturing user - traveling behavior to improve the quality of such services. 

 We ﬁ rst focus on the theory behind the navigational patterns of users in the Web. 
It is necessary to formalize known facts about navigation: that not all pages across a 
path are of equal importance, and that users tend to revisit pages previously accessed. 
To achieve a data - mining task, we deﬁ ne a navigation pattern in the Web as a general-
ized notion of a sequence, the materialization of which is the directed - acyclic graph. A 
sequence is an ordered list of items, in our case Web pages, ordered by time of access. 
The  log  ﬁ le  L  is  a  multiset  of  recorded  sequences.  It  is  not  a  simple  set,  because  a 
sequence may appear more than once. 

 When we want to observe sequence  s  as a concatenation of the consecutive sub-

sequences  x  and  y , we use the notation:

x y=

   s

 The function  length ( s ) returns the number of elements in the sequence  s . The func-
tion   preﬁ x ( s ,  i)  returns  the  subsequence  composed  of  the  ﬁ rst  i  elements  of   s .  If 
 s  ’     =     preﬁ x ( s ,i), we say that  s  ’  is a preﬁ x of  s  and is denoted as  s  ’     ≤     s . Analysis of log 
ﬁ les shows that Web users tend to move backwards and revisit pages with a high fre-
quency.  Therefore,  a  log  ﬁ le  may  contain  duplicates.  Such  revisits  may  be  part  of  a 
guided tour or may indicate disorientation. In the ﬁ rst case, their existence is precious 
as information and should be retained. To model cycles in a sequence, we label each 
element of the sequence with its occurrence number within the sequence, thus distin-
guishing between the ﬁ rst, second, third, and so on occurrence of the same page. 

 Moreover, some sequences may have common preﬁ xes. If we merge all common 
preﬁ xes together, we transform parts of the log ﬁ le into a tree structure, each node of 
which  is  annotated  with  the  number  of  sequences  having  the  same  preﬁ x  up  to  and 
including this node. The tree contains the same information as the initial log ﬁ le. Hence, 
when  we  look  for  frequent  sequences,  we  can  scan  the  tree  instead  of  the  original 
log multiset. On the tree, a preﬁ x shared among  k  sequences appears and gets tested 
only once. 

 Sequence  mining  can  be  explained  as  follows:  Given  a  collection  of  sequences 
ordered in time, where each sequence contains a set of Web pages, the goal is to dis-
cover sequences of maximal length that appear more frequently than a given percentage 
threshold over the whole collection. A frequent sequence is maximal if all sequences 
containing it have a lower frequency. This deﬁ nition of the sequence - mining problem 
implies  that  the  items  constituting  a  frequent  sequence  need  not  necessarily  occur 

  
312 

WEB  MINING  AND  TEXT  MINING 

adjacent to each other. They just appear in the same order. This property is desirable 
when we study the behavior of Web users because we want to record their intents, not 
their errors and disorientations. 

 Many of these sequences, even those with the highest frequencies, could be of a 
trivial nature. In general, only the designer of the site can say what is trivial and what 
is  not.  The  designer  has  to  read  all  patterns  discovered  by  the  mining  process  and 
discard unimportant ones. It would be much more efﬁ cient to automatically test data -
 mining results against the expectations of the designer. However, we can hardly expect 
a site designer to write down all combinations of Web pages that are considered typical; 
expectations are formed in the human mind in much more abstract terms. Extraction 
of  informative  and  useful  maximal  sequences  continues  to  be  a  challenge  for 
researchers. 

 Although there are several techniques proposed in the literature, we will explain 
one of the proposed solutions for mining traversal patterns that consists of two steps:

   (a)      In a ﬁ rst step, an algorithm is developed to convert the original sequence of 
log data into a set of  traversal subsequences . Each traversal subsequence rep-
resents a maximum forward reference from the starting point of a user access. 
It  should  be  noted  that  this  step  of  conversion  would  ﬁ lter  out  the  effect  of 
backward references, which are mainly made for ease of traveling. The new 
reduced set of user - deﬁ ned forward paths enables us to concentrate on mining 
meaningful user - access sequences.  

  (b)      The second step consists of a separate algorithm for determining the frequent -
 traversal patterns, termed  large reference sequences . A large reference sequence 
is a sequence that appears a sufﬁ cient number of times in the log database. In 
the ﬁ nal phase, the algorithm forms the  maximal references  obtained from large 
reference sequences. A maximal large sequence is a large reference sequence 
that is not contained in any other maximal reference sequence.    

 For example, suppose the traversal log of a given user contains the following path 

(to keep it simple, Web pages are represented by letters):

   Path A B C D C B E G H G W A O U O V

}   

= {

 The  path  is  transformed  into  the  tree  structure  shown  in  Figure   11.3 . The  set  of 
maximum forward references (MFR) found in step (a) after elimination of backward 
references is  

   MFR ABCD ABEGH ABEGW AOU AOV

,

,

,

,

}.   

= {

 When  MFR  have  been  obtained  for  all  users,  the  problem  of  ﬁ nding  frequent -
 traversal patterns is mapped into one of ﬁ nding frequently occurring consecutive sub-
sequences  among  all  MFR.  In  our  example,  if  the  threshold  value  is  0.4  (or  40%), 
large - reference sequences (LRS) with lengths 2, 3, and 4 are

   LRS AB BE EG AO ABE BEG ABEG

,

,

,

,

,

,

}   

= {

PAGERANK  ALGORITHM 

313

⇓

A

B

G

E

W 

D

C

H

O

U

V

⇒

     Figure 11.3.      An example of traversal patterns.  

 Finally, with LRS determined,  maximal reference sequences  (MRS) can be obtained 

through the process of selection. The resulting set for our example is

   MRS ABEG AO

,

}.   

= {

 In  general,  these  sequences,  obtained  from  large  log  ﬁ les,  correspond  to  a  fre-

quently accessed pattern in an information - providing service. 

 The  problem  of  ﬁ nding  LRS  is  very  similar  to  that  of  ﬁ nding  frequent  itemsets 
(occurring in a sufﬁ cient number of transactions) in association - rule mining. However, 
they are different from each other in that a reference sequence in the mining - traversal 
patterns has to be references in a given order, whereas a large itemset in mining asso-
ciation rules is just a combination of items in a transaction. The corresponding algo-
rithms are different because they perform operations on different data structures: lists 
in the ﬁ rst case, sets in the second. As the popularity of Internet applications explodes, 
it is expected that one of the most important data - mining issues for years to come will 
be the problem of effectively discovering knowledge on the Web.  

   11.5  

  PAGERANK ALGORITHM 

 PageRank was originally published by Sergey Brin and Larry Page, the co - creators of 
Google. It likely contributed to the early success of Google. PageRank provides a global 
ranking of nodes in a graph. For search engines it provides a query - independent, author-
ity ranking of all Web pages. PageRank has similar goals of ﬁ nding authoritative Web 
pages to that of the HITS algorithm. The main assumption behind the PageRank algo-
rithm is that every link from page  a  to page  b  is a vote by page  a  for page  b . Not all 
votes are equal. Votes are weighted by the PageRank score of the originating node. 

 PageRank is based on the random surfer model. If a surfer were to randomly select 
a starting Web page, and at each time step the surfer were to randomly select a link on 
the current Web page, then PageRank could be seen as the probability that this random 
surfer is on any given page. Some Web pages do not contain any hyperlinks. In this 
model it is assumed that the random surfer selects a random Web page when exiting 

314 

WEB  MINING  AND  TEXT  MINING 

B

A

C

     Figure 11.4.      First example used to demonstrate PageRank.  

pages  with  no  hyperlinks. Additionally,  there  is  some  chance  that  the  random  surfer 
will stop following links and restart the process. 

 Computationally the PageRank ( Pr ) of page u can be computed as follows:

u
   Pr( )

=

−

1

d

N

+

d





∑

∈
v In u
( )

v
Pr( )
Out v
( ) |

|





≤ ≤d

 Here   d   is  a  dampening  factor    0

  usually  set  to  0.85.   N   refers  to  the  total 
1
number of nodes in the graph. The function  In ( u ) returns the set of nodes with edges 
pointing into node u. | Out ( v )| returns the number of nodes with edges pointing from  v  
to that node. For example, if the Web - page connections are those given in Figure  11.4 , 
and the current node under consideration were node B, then the following values would 
hold  through  all  iterations:  N    =    3,  In(B)    =    {A,C}, 
|Out(A)|    =    |{B,C}|    =    2,  and 
|Out(C)|    =    |{B}|    =    1.  The  values  for  Pr(A)  and  Pr(C)  would  vary  depending  on  the 
calculations from the previous iterations. The result is a recursive deﬁ nition of PageRank. 
To  calculate  the  PageRank  of  a  given  node,  one  must  calculate  the  PageRank  of  all 
nodes with edges pointing into that given node.   

 Often PageRank is calculated using an iterative approach where all nodes are given 
an  initial  value  for  Pr  of  1/N.  Then  during  a  single  iteration  we  calculate  what  the 
PageRank of each node would be according to the current values of all nodes linking 
to that node. This process is repeated until the change between iterations is below some 
predetermined  threshold  or  the  maximum  number  of  iterations  is  achieved.  Let  us 
consider an example graph with three nodes as follows: 

 Initially the Pr values are as follows:

(
   Pr A

)

=

1

/

N

=

0 333  
.

   Pr(

   Pr(

 The ﬁ rst iteration is as follows:

)

B = 0 333  
.
C = 0 333   
.

)

   Pr(

A

)

= −
1 0 85 3 0 85
(
) /

+

.

.

(Pr(

B

1
) / )

=

0 15 3 0 85 0 333
.
)
.

( .

/

+

=

0 333  
.

Pr(

B
)

.

.

=

(Pr(

= −
+
(
1 0 85 3 0 85
) /
A
) /
0 15 3 0 85 0 333 2 ++
+
.
.
+

( .

=

/

/

(Pr(

A

) /

2

)

+

2

1
) / )

Pr(
C
=

)
0 333
.

.
0 475

   Pr(

C

)

= −
1 0 85 3 0 85
(
) /

.

.

0 15 3 0 85 0 333 2
.
.

( .

/

/

+

=

)

0 192   
.

  
   
 
PAGERANK  ALGORITHM 

315

1

6

5

(a)

2

4

3

Node Page Rank 
1 
2 
3 
4 
5 
6 

0.095 
0.095 
0.198 
0.162 
0.330 
0.121 

(b)

     Figure 11.5.      An example graph and scoring for PageRank also used with HITS. (a) Subgraph 
of linked pages; (b) calculated PageRank for given graph.  

 The second iteration then shows the passing of these values through the graph:

   Pr(

A

)

= −
1 0 85 3 0 85
(
) /

+

.

.

(Pr(

B

1
) / )

=

0 15 3 0 85 0 475
.
)
.

( .

/

+

=

0 454  
.

Pr(

B
)

.

.

=

(Pr(

= −
+
(
1 0 85 3 0 85
) /
A
) /
0 15 3 0 85 0 454 2 ++
+
.
.
+

( .

=

/

/

(Pr(

A

) /

2

)

+

2

1
) / )

Pr(
C
=

.
0 192

)

.
0 406

   Pr(

C

)

= −
1 0 85 3 0 85
(
) /

.

.

0 15 3 0 85 0 454 2
.
.

( .

/

/

+

=

)

0 243   
.

 If  we  carry  this  same  procedure  out  to  100  iterations,  we  achieve  the  following 

results:

   Pr(

   Pr(

   Pr(

)

A = 0 388  
.
B = 0 397  
.
C = 0 215   
.

)

)

 Additional iterations produce the same results. From this we can see a stable order-
ing emerge. B has the largest PageRank value having two in - links, more than any other. 
However, page A is not far behind, since page B has only a single link to page A without 
dividing its PageRank value among a number of outbound links. 

 Next we consider the example used for the HITS algorithm, which is applied on 
the graph in Figure  11.5 a. The PageRank of this graph with a dampening factor of 0.85 
is given in Figure  11.5 b after running 100 iterations. A reader may, for practice, check 
the results after the ﬁ rst iteration, or implement the PageRank algorithm and check ﬁ nal 
results in Figure  11.5 b.   

 From  the  values  given  in  Figure   11.5 b  we  can  see  that  node  5  has  the  highest 
PageRank by far and also has the highest in - degree or edges pointing in to it. Surprising 
perhaps is that node 3 has the next highest score, having a score higher than node 4, 
which has more in - edges. The reason is that node 6 has only one out - edge pointing to 
node 3, while the edges pointing to node 4 are each one of multiple out - edges. Lastly, 
as expected, the lowest ranked edges are those with no in - edges, nodes 1 and 2. 

 One of the main contributions of Google ’ s founders is implementation and experi-
mental evaluation of the PageRank algorithm. They included a database of web sites 

   
 
316 

WEB  MINING  AND  TEXT  MINING 

with 161 million links, and the algorithm converge in 45 iterations. Repeated experi-
ments with 322 million links converged in 52 iterations. These experiments were evi-
dence  that  PageRank  converges  in   log(n)   time  where   n   is  number  of  links,  and  it  is 
applicable for a growing Web. Of course, the initial version of the PageRank algorithm, 
explained in a simpliﬁ ed form in this text, had numerous modiﬁ cations to evolve into 
the current commercial version implemented in the Google search engine.  

   11.6  

  TEXT MINING 

 Enormous amounts of knowledge reside today in text documents that are stored either 
within organizations or are freely available. Text databases are rapidly growing because 
of the increasing amounts of information available in electronic form, such as electronic 
publications,  digital  libraries,  e - mail,  and  the  World  Wide  Web.  Data  stored  in  most 
text  databases  are  semi - structured,  and  special  data - mining  techniques,  called  text 
mining, have been developed for discovering new information from large collections 
of textual data. 

 In general, there are two key technologies that make online text mining possible. 
One  is   Internet  search   capabilities  and  the  other  is  the   text  analysis   methodology. 
 Internet search  has been around for a few years. With the explosion of Web sites in the 
past  decade,  numerous  search  engines  designed  to  help  users  ﬁ nd  content  appeared 
practically  overnight.  Yahoo,  Alta  Vista,  and  Excite  are  three  of  the  earliest,  while 
Google and Bing are the most popular in recent years. Search engines operate by index-
ing the content in a particular Web site and allowing users to search these indices. With 
the  new  generation  of  Internet - search  tools,  users  can  gain  relevant  information  by 
processing a smaller amount of links, pages, and indices. 

  Text analysis , as a ﬁ eld, has been around longer than Internet search. It has been 
a  part  of  the  efforts  to  make  computers  understand  natural  languages,  and  it  is  com-
monly  thought  of  as  a  problem  for  artiﬁ cial  intelligence.  Text  analysis  can  be  used 
anywhere  where  there  is  a  large  amount  of  text  that  needs  to  be  analyzed. Although 
automatic processing of documents using different techniques does not allow the depth 
of analysis that a human can bring to the task, it can be used to extract key points in 
the  text,  categorize  documents,  and  generate  summaries  in  a  situation  when  a  large 
number of documents makes manual analysis impossible. 

 To understand the details of text documents you can either search for keywords, 
or you can try to categorize the semantic content of the document itself. When identify-
ing keywords in text documents, you are looking at deﬁ ning speciﬁ c details or elements 
within  documents  that  can  be  used  to  show  connections  or  relationships  with  other 
documents.  In  the  IR  domain,  documents  have  been  traditionally  represented  in  the 
vector  space  model.  Documents  are  tokenized  using  simple  syntactic  rules  (such  as 
white - space delimiters in English), and tokens are transformed to canonical form (e.g., 
 “ reading ”  to  “ read, ”   “ is, ”   “ was, ”  and  “ are ”  to  “ be ” ). Each canonical token represents 
an axis in a Euclidean space. Documents are vectors in this n - dimensional space. If a 
token  t  called term occurs  n  times in document  d , then the  t th coordinate of  d  is simply 
 n.  One may choose to normalize the length of the document to 1, using the L 1 , L 2 , or 
L  ∞   norms: 

     
TEXT  MINING 

317

1 = ∑
d
||

    ||

t

n d t
( , ),

= ∑
||

    ||

d

2

2
n d t
( , ) ,

t

    ||

d

∞ =

n d t
|| max ( , )
t

 where n( d , t ) is the number of occurrences of a term t in a document d. These represen-
tations do not capture the fact that some terms, also called keywords (like  “ algorithm ” ), 
are more important than others (like  “ the ”  and  “ is ” ) in determining document content. 
If t occurs in n t  out of N documents, n t /N gives a sense of rarity, and hence, the impor-
tance  of  the  term.  The  inverse  document  frequency,  IDF    =    1    +    log  (n t /N),  is  used  to 
stretch the axes of the vector space differentially. Thus the  t th coordinate of document 
d may be represented with the value (n(d,t)/||d 1  ||)    ×    IDF(t) in the weighted vector space 
model. In spite of being extremely crude and not capturing any aspect of language or 
semantics,  this  model  often  performs  well  for  its  intended  purpose. Also,  in  spite  of 
minor  variations,  all  these  models  of  text  regard  documents  as  multisets  of  terms, 
without  paying  attention  to  ordering  between  terms.  Therefore,  they  are  collectively 
called  bag - of - words  models. Very  often,  the  outputs  from  these  keyword  approaches 
can  be  expressed  as  relational  data  sets  that  may  then  be  analyzed  using  one  of  the 
standard data - mining techniques. 

 Hypertext documents, usually represented as basic components on the Web, are a 
special type of text - based document that have hyperlinks in addition to text. They are 
modeled with varying levels of details, depending on the application. In the simplest 
model, hypertext can be regarded as directed graph (D, L) where D is the set of nodes 
representing documents or Web pages, and L is the set of links. Crude models may not 
need to include the text models at the node level, when the emphasis is on document 
links. More reﬁ ned models will characterize some sort of joint distribution between the 
term distributions of a node with those in a certain neighborhood of the document in 
the graph. 

 Content - based analysis and partition of documents is a more complicated problem. 
Some progress has been made along these lines, and new text - mining techniques have 
been deﬁ ned, but no standards or common theoretical background has been established 
in the domain. Generally, you can think of text categorization as comparing a document 
to  other  documents  or  to  some  predeﬁ ned  set  of  terms  or  deﬁ nitions.  The  results  of 
these  comparisons  can  be  presented  visually  within  a  semantic  landscape  in  which 
similar documents are placed together in the semantic space and dissimilar documents 
are  placed  further  apart.  For  example,  indirect  evidence  often  lets  us  build  semantic 
connections between documents that may not even share the same terms. For example, 
 “ car ”  and  “ auto ”  terms co - occurring in a set of documents may lead us to believe that 
these terms are related. This may help us to relate documents with these terms as similar. 
Depending  on  the  particular  algorithm  used  to  generate  the  landscape,  the  resulting 
topographic map can depict the strengths of similarities among documents in terms of 
Euclidean  distance. This  idea  is  analogous  to  the  type  of  approach  used  to  construct 
Kohonen feature maps. Given the semantic landscape, you may then extrapolate con-
cepts represented by documents. 

 The automatic analysis of text information can be used for several different general 

purposes:

  
  
  
318 

WEB  MINING  AND  TEXT  MINING 

   1.      to  provide  an  overview  of  the  contents  of  a  large  document  collection  and 

organize them in the most efﬁ cient way;  

  2.      to identify hidden structures between documents or groups of documents;  
  3.      to increase the efﬁ ciency and effectiveness of a search process to ﬁ nd similar 

or related information; and  

  4.      to detect duplicate information or documents in an archive.    

 Text mining is an emerging set of functionalities that are primarily built on text -
 analysis  technology.  Text  is  the  most  common  vehicle  for  the  formal  exchange  of 
information.  The  motivation  for  trying  to  automatically  extract,  organize,  and  use 
information  from  it  is  compelling,  even  if  success  is  only  partial.  While  traditional 
commercial text - retrieval systems are based on inverted text indices composed of sta-
tistics such as word occurrence per document, text mining must provide values beyond 
the retrieval of text indices such as keywords. Text mining is about looking for semantic 
patterns in text, and it may be deﬁ ned as the process of analyzing text to extract inter-
esting, nontrivial information that is useful for particular purposes. 

 As the most natural form of storing information is text, text mining is believed to 
have  a  commercial  potential  even  higher  than  that  of  traditional  data  mining  with 
structured data. In fact, recent studies indicate that 80% of a company ’ s information is 
contained in text documents. Text mining, however, is also a much more complex task 
than traditional data mining as it involves dealing with unstructured text data that are 
inherently ambiguous. Text mining is a multidisciplinary ﬁ eld involving IR, text analy-
sis,  information  extraction,  natural  language  processing,  clustering,  categorization, 
visualization, machine learning, and other methodologies already included in the data -
 mining  “ menu ” ; even some additional speciﬁ c techniques developed lately and applied 
on  semi - structured  data  can  be  included  in  this  ﬁ eld.  Market  research,  business -
 intelligence  gathering,  e - mail  management,  claim  analysis,  e - procurement,  and  auto-
mated help desk are only a few of the possible applications where text mining can be 
deployed  successfully.  The  text - mining  process,  which  is  graphically  represented  in 
Figure  11.6 , consists of two phases:

    (cid:127)        text reﬁ ning , which transforms free - form text documents into a chosen intermedi-

ate form (IF), and    

   (cid:127)        knowledge distillation , which deduces patterns or knowledge from an IF.    

 An IF can be semi - structured, such as a conceptual - graph representation, or struc-
tured, such as a relational - data representation. IFs with varying degrees of complexity 
are suitable for different mining purposes. They can be classiﬁ ed as  document - based,  
wherein  each  entity  represents  a  document,  or   concept - based ,  wherein  each  entity 
represents an object or concept of interests in a speciﬁ c domain. Mining a document -
 based  IF  deduces  patterns  and  relationships  across  documents.  Document  clustering, 
visualization, and categorization are examples of mining from document - based IFs. 

 For a ﬁ ne - grained, domain - speciﬁ c, knowledge - discovery task, it is necessary to 
perform a semantic analysis and derive a sufﬁ ciently rich representation to capture the 

TEXT  MINING 

319

Document-based
intermediate form

Text
refining

Text

IF

Knowledge
distillation

Concept-based
intermediate form

     Figure 11.6.      A text - mining framework.  

Clustering
Categorization
Visualization

Predictive
modeling
Associative
discovery

relationship between objects or concepts described in the document. Mining a concept -
 based IF derives patterns and relationships across objects and concepts. These semantic -
 analysis  methods  are  computationally  expensive,  and  it  is  a  challenge  to  make  them 
more efﬁ cient and scalable for very large text corpora. Text - mining operations such as 
predictive modeling and association discovery fall in this category. A document - based 
IF can be transformed into a concept - based IF by realigning or extracting the relevant 
information according to the objects of interests in a speciﬁ c domain. It follows that a 
document - based  IF  is  usually  domain - independent  and  a  concept - based  is  a  domain -
 dependent representation. 

 Text - reﬁ ning  and  knowledge - distillation  functions  as  well  as  the  IF  adopted  are 
the basis for classifying different text - mining tools and their corresponding techniques. 
One  group  of  techniques,  and  some  recently  available  commercial  products,  focuses 
on  document  organization,  visualization,  and  navigation.  Another  group  focuses  on 
text - analysis functions, IR, categorization, and summarization. 

 An important and large subclass of these text - mining tools and techniques is based 
on document visualization. The general approach here is to organize documents based 
on their similarities and present the groups or clusters of the documents as 2 - D or 3 - D 
graphics.  IBM ’ s  Intelligent  Miner  and  SAS  Enterprise  Miner  are  probably  the  most 
comprehensive text - mining products today. They offer a set of text - analysis tools that 
include tools for feature - extraction, clustering, summarization, and categorization; they 
also incorporate a text search engine. More examples of text - mining tools are given in 
Appendix  A . 

 Domain knowledge, not used and analyzed by any currently available text - mining 
tool,  could  play  an  important  role  in  the  text - mining  process.  Speciﬁ cally,  domain 
knowledge  can  be  used  as  early  as  in  the  text - reﬁ ning  stage  to  improve  parsing 
efﬁ ciency and derive a more compact IF. Domain knowledge could also play a part in 
knowledge distillation to improve learning efﬁ ciency. All these ideas are still in their 
infancy, and we expect that the next generation of text - mining techniques and tools will 
improve the quality of information and knowledge discovery from text.  

320 

WEB  MINING  AND  TEXT  MINING 

   11.7  

  LATENT SEMANTIC ANALYSIS (LSA) 

  LSA  is a method that was originally developed to improve the accuracy and effective-
ness  of  IR  techniques  by  focusing  on  semantic  meaning  of  words  across  a  series  of 
usage contexts, as opposed to using simple string - matching operations. LSA is a way 
of partitioning free text using a statistical model of word usage that is similar to eigen-
vector decomposition and factor analysis. Rather than focusing on superﬁ cial features 
such  as  word  frequency,  this  approach  provides  a  quantitative  measure  of  semantic 
similarities among documents based on a word ’ s context. 

 Two major shortcomings to the use of term counts are synonyms and polysemes. 
Synonyms  refer  to  different  words  that  have  the  same  or  similar  meanings  but  are 
entirely different words. In the case of the vector approach, no match would be found 
between a query using the term  “ altruistic ”  and a document using the word  “ benevo-
lent ”  though the meanings are quite similar. On the other hand, polysemes are words 
that have multiple meanings. The term  “ bank ”  could mean a ﬁ nancial system, to rely 
upon, or a type of basketball shot. All of these lead to very different types of documents, 
which can be problematic for document comparisons. 

 LSA attempts to solve these problems, not with extensive dictionaries and natural 
language processing engines, but by using mathematical patterns within the data itself 
to uncover these relationships. We do this by reducing the number of dimensions used 
to represent a document using a mathematical matrix operation called singular value 
decomposition (SVD). 

 Let us take a look at an example data set. This very simple data set consists of ﬁ ve 
documents. We will show the dimension reduction steps of LSA on the ﬁ rst four docu-
ments (  d1 4… ), which will make up our training data. Then we will make distance com-
parisons to a ﬁ fth document (  dS) in our test set, using the nearest neighbor classiﬁ cation 
approach. The initial document set is:

    (cid:127)       d 1 : A bank will protect your money.  
   (cid:127)       d 2 : A guard will protect a bank.  
   (cid:127)       d 3 : Your bank shot is money.  
   (cid:127)       d 4 : A bank shot is lucky.  
   (cid:127)       d 5 : bank guard.    

 From the text data we derive a vector representation of our documents using only 
term  counts.  This  vector  representation  could  be  thought  of  as  a  matrix  with  rows 
representing  terms  and  columns  representing  documents. This  representation  may  be 
seen in Figure  11.7 .   

 The ﬁ rst step of LSA is to decompose the matrix representing our original data set 
of four documents, matrix A, using SVD as follows: A    =    USV T . The calculation of SVD 
is  beyond  the  scope  of  this  text,  but  there  are  several  computing  packages  that  will 
perform this operation for you (such as R or MATLAB packages). The matrices result-
ing from this decomposition can be seen in Figure  11.8 . The  U  and  V T   matrices provide 
a  vector  of  weights  for  terms  and  documents,  respectively.  Consider   V T  ,  this  matrix 

LATENT  SEMANTIC  ANALYSIS  (LSA) 

321

Terms 
a 
bank 
guard 
is 
lucky 
money 
protect 
shot 
will 
your 

A

d1  d2  d3  d4
1 
1 
1 
1 
0 
0 
1 
0 
1 
 =  0 
0 
1 
0 
1 
1 
0 
0 
1 
0 
1 

0 
1 
0 
1 
0 
1 
0 
1 
0 
1 

2 
1 
1 
0 
0 
0 
1 
0 
1 
0 

d5
0 
1 
1 
0 
  d5 = 0 
0 
0 
0 
0 
0 

     Figure 11.7.      Initial term counts.  

3.869
0.000
0.000
0.000

0.000
2.344
0.000
0.000

0.000
0.000
1.758
0.000

0.000
0.000
0.000
0.667

, S =

T
, V =

–0.560
0.095
–0.602
0.562

–0.628
0.575
0.241
–0.465

–0.354
–0.705
–0.288
–0.542

–0.408
–0.404
0.705
0.417

U =

–0.575
–0.504
–0.162
–0.197
–0.105
–0.236
–0.307
–0.197
–0.307
–0.236

0.359
–0.187
0.245
–0.473
–0.172
–0.260
0.286
–0.473
0.286
–0.260

0.333
0.032
0.137
0.237
0.401
–0.506
–0.205
0.237
–0.205
–0.506

0.072
–0.044
–0.698
–0.188
0.626
0.029
0.144
–0.188
0.144
0.029

     Figure 11.8.      Singular value decomposition of initial data.  

gives a new 4 - D representation to each document where each document is described 
with a corresponding column. Each of the new dimensions is derived from the original 
10 word count dimensions. For example, document 1 is now represented as follows: 
d 1     =     − 0.56x 1     +    0.095x 2     −    0.602x 3     +    0.562x 4 , where each x n  represents one of the new, 
derived dimensions. The  S  matrix is a diagonal matrix of eigenvalues for each principal 
component direction.   

 With this initial step, we have already reduced the number of dimensions represent-
ing  each  document  from  10  to  four. We  now  show  how  one  would  go  about  further 
reducing the number of dimensions. When the data set contains many documents, the 
previous  step  is  not  enough  to  reduce  the  number  of  dimensions  meaningfully.  To 
perform further reduction, we ﬁ rst observe that matrix  S  provides us with a diagonal 
matrix  of  eigenvalues  in  descending  order  as  follows:   λ  1 ,    . . .    ,   λ  4     =    {3.869,  2.344, 
1.758, 0.667}. We will be able to capture most of the variability of the data by retaining 
only the ﬁ rst k eigenvalues rather than all n terms (in our matrix S, n    =    4). If for example 
k    =    2, then we retain   (
 or 85% of the variability when we move 
from the four new dimensions per document to only two. The rank 2 approximations 
can be seen in Figure  11.9 . This rank 2 approximation is achieved by selecting the ﬁ rst 
k columns from  U , the upper left k    ×    k matrix from  S,  and the top k rows from  V T   as 
shown in Figure  11.9 .   

0 853
.

λ
2
1

4
=i
1

∑

λ

+

λ

=

2
2

)

2
i

 The rank k approximation to  V T   gives us our dimensionally reduced data set where 
each document is now described with only two dimensions.  V T   can be thought of as a 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
322 

WEB  MINING  AND  TEXT  MINING 

, S ≈ Sk =

3.869
0.000

0.000
2.344

,VT ≈ Vk  =T 

–0.560
0.095

–0.628
0.575

–0.354
–0.705

–0.408
–0.404

U ≈ Uk =

–0.575
–0.504
–0.162
–0.197
–0.105
–0.236
–0.307
–0.197
–0.307
–0.236

0.359
–0.187
0.245
–0.473
–0.172
–0.260
0.286
–0.473
0.286
–0.260

     Figure 11.9.      Rank 2 approximation of the singular value decomposition.  

'
T
V =

T
'

SUA

k

–1
k

0.258
0.000

0.000
0.427

=

–0.172 0.025

'TV =

0  1  1  0  0  0  0  0  0  0 

–0.575
–0.504
–0.162
–0.197
–0.105
–0.236
–0.307
–0.197
–0.307
–0.236

0.359
–0.187
0.245
–0.473
–0.172
–0.260
0.286
–0.473
0.286
–0.260

     Figure 11.10.      SVD calculations to produce a 2 - D approximation for d 5 .  

transformation of the original document matrix and can be used for any of a number 
of  text - mining  tasks,  such  as  classiﬁ cation  and  clustering.  Improved  results  may  be 
obtained using the newly derived dimensions, comparing against the data - mining tasks 
using the original word counts. 

k

T

−
k

V

T
A U S

 In most text - mining cases, all training documents (in our case 4) would have been 
included  in  matrix A  and  transformed  together.  Document  ﬁ ve  (d 5 )  was  intentionally 
left  out  of  these  calculations  to  demonstrate  a  technique  called   “ folding - in, ”   which 
allows for a small number of documents to be transformed into the new reduced space 
and  compared  with  a  training  document  database.  Matrices  from  our  previous  SVD 
calculations are used for this transformation. This is done using the following modiﬁ ed 
formula:    ′ = ′
1. This equation is a rearrangement of terms from the initial SVD 
equation replacing the original data set, matrix A, with the term counts for document 
ﬁ ve  (d 5 )  as  matrix A ’ . The  resulting  multiplication  can  be  seen  in  Figure   11.10 . The 
result is the document d 5  represented in the reduced 2 - D space, d 5     =    [ − 0.172, 0.025].   
 To visualize the transformed data, we have plotted our example documents, d 1..5 , 
in Figure  11.11 . We now perform the nearest neighbor classiﬁ cation algorithm. If the 
task is to disambiguate the term  “ bank, ”  and the possible classes are  “ ﬁ nancial institu-
tion ”  and  “ basketball shot, ”  then a review of the original text reveals that documents 
d 1 , d 2 , and d 5  are of the class  “ ﬁ nancial institution ”  and documents d 3  and d 4  are of the 
class  “ basketball shot. ”  To classify test document d 5 , we compare d 5  with each other 

LATENT  SEMANTIC  ANALYSIS  (LSA) 

323

0.6

0.4

0.2

0.0

–0.2

–0.4

–0.6

2

n
o
i
s
n
e
m
D

i

–1.0

–0.8

d2

d1

d5

d4

d3

–0.6

–0.4
Dimension 1

–0.2

0.0

0.2

     Figure 11.11.      2 - D plot of documents and query using LSA.  

  TA BLE 11.4.     Use of Euclidean Distance to Find Nearest 
Neighbor to d 5  in Both 2 - d and 10 - d (the Smallest Distance 
Ranks First) 

   Comparison  

   10 - d (original)  

   2 - d (LSA)  

  d 1  – d 5   
  d 2  – d 5   
  d 3  – d 5   
  d 4  – d 5   

   Distance  

   Rank  

   Distance  

   Rank  

  2.449  
  2.449  
  2.236  
  2.236  

  3 – 4  
  3 – 4  
  1 – 2  
  1 – 2  

  0.394  
  0.715  
  0.752  
  0.489  

  1  
  3  
  4  
  2  

document.  The  closest  neighbor  will  determine  the  class  of  d 5 .  Ideally,  d 5   should  be 
nearest to d 1  and d 2 , and farthest from d 3  and d 4 , as pointed earlier. Table  11.4  shows 
these calculations using the Euclidean distance metric. The assessment for which docu-
ment is closest is made based on both the original 10 dimensions and the reduced set 
of two dimensions. Table  11.5  shows the same comparison using cosine similarity to 
compare documents. Cosine similarity is often used in text - mining tasks for document 
comparisons.     

 Euclidean distance as shown in Table  11.4  when using 10 dimensions ranks d 3  and 
d 4   above  d 1   and  d 2 .  By  the  formulation  of  Euclidean  distance,  when  two  documents 
both  share  a  term  or  both  do  not  share  a  term,  the  result  is  a  distance  of  0  for  that 
dimension.  After  applying  the  LSA  transformation,  the  Euclidean  distance  ranks  d 1  
above d 3  and d 4 . However, document d 2  only is ranked above d 3  and not d 4 . 

 Cosine similarity calculates the cosine of the angle between two vectors represent-
ing  points  in  n - dimensional  space.  The  result  is  a  similarity  score  between  0  and  1, 

 
324 

WEB  MINING  AND  TEXT  MINING 

  TA BLE 11.5.     Use of Cosine Similarity to Find Most Similar 
Document to d 5  in Both 2 - d and 10 - d (the Largest Similarity 
Ranks First) 

   Comparison  

   10 - d (original)  

   2 - d (LSA)  

   Similarity  

   Rank  

   Similarity  

   Rank  

  d1 – d5  
  d2 – d5  
  d3 – d5  
  d4 – d5  

  0.289  
  0.500  
  0.316  
  0.316  

  4  
  1  
  2 – 3  
  2 – 3  

  0.999  
  0.826  
  0.317  
  0.603  

  1  
  2  
  4  
  3  

where  a  1  shows  highest  similarity,  and  0  shows  no  similarity.  For  document  vector 
comparisons, no additional strength of similarity is added by two vectors containing a 
0  for  a  speciﬁ c  term. This  is  a  very  beneﬁ cial  characteristic  for  textual  applications. 
When we consider Table  11.5  we see that without the transformation, in 10 - D space, 
d 2   is  ranked  above  d 3   and  d 4   for  containing  both  terms  in  d 5 .  However,  d 1   is  ranked 
below  d 3   and  d 4   for  having  more  terms  than  these  other  sentences.  After  the  LSA 
transformation, d 1  and d 2  are ranked above d 3  and d 4 , providing the expected ranking. 
In  this  simple  example  the  best  results  occurred  when  we  ﬁ rst  transformed  the  data 
using  LSA  and  then  used  cosine  similarity  to  measure  the  similarity  between  initial 
training documents in a database and a new document for comparison. Using the nearest 
neighbor classiﬁ er, d 5  would be classiﬁ ed correctly as a  “ ﬁ nancial institution ”  document 
using cosine similarity for both the 10 - d and 2 - d cases or using Euclidean distance for 
the 2 - d case. Euclidean distance in the 10 - d case would have classiﬁ ed d 5  incorrectly. 
If  we  used  k - nearest  neighbor  with  k    =    3,  then  Euclidean  distance  in  the  10 - d  case 
would have also incorrectly classiﬁ ed d 5 . Clearly, the LSA transformation affects the 
results of document comparisons, even in this very simple example. Results are better 
because LSA enable better representation of a document ’ s semantics.   

 11.8  

 REVIEW QUESTIONS AND PROBLEMS 

       1.     Give speciﬁ c examples of where Web - content mining, Web - structure mining, and 

Web - usage mining would be valuable. Discuss the beneﬁ ts.   

    2.     Given a table of linked Web pages:

   Page  

  A  
  B  
  C  
  D  
  E  
  F  

   Linked to page  

  B, D, E, F  
  C, D, E  
  B, E, F  
  A, F, E  
  B, C, F  
  A, B  

REVIEW  QUESTIONS  AND  PROBLEMS 

325

      (a)      Find authorities using two iterations of the HITS algorithm.  
  (b)      Find hubs using two iterations of the HITS algorithm.  
  (c)      Find the PageRank scores for each page after one iteration using 0.1 as the dampening 

factor.  

  (d)      Explain the HITS and PageRank authority rankings obtained in (a) and (c).      

    3.     For the traversal log: {X, Y, Z, W, Y, A, B, C, D, Y, C, D, E, F, D, E, X, Y, A, B, 

M, N}, 
  (a)      ﬁ nd MFR;  
  (b)      ﬁ nd LRS if the threshold value is 0.3 (or 30%);  
  (c)      Find MRS.      

    4.     Given the following text documents and assumed decomposition:

   Document  

   Text  

  A  
  B  
  C  
  D  

  Web - content mining  
  Web - structure mining  
  Web - usage mining  
  Text mining  

  USVT =   

   − 0.60  
   − 0.20  
   − 0.71  
   − 0.20  
   − 0.20  
   − 0.11  

  0.43  
  0.14  
   − 0.36  
  0.14  
  0.14  
   − 0.79  

  0.00  
  0.00  
  0.00  
   − 0.71  
  0.71  
  0.00  

  0.00  
  0.82  
  0.00  
   − 0.41  
   − 0.41  
  0.00  

  2.75  
  0.00  
  0.00  
  0.00  

  0.00  
  1.21  
  0.00  
  0.00  

  0.00  
  0.00  
  1.00  
  0.00  

  0.00  
  0.00  
  0.00  
  1.00  

   − 0.55  
  0.17  
  0.00  
  0.82  

   − 0.55  
  0.17  
   − 0.71  
   − 0.41  

   − 0.55  
  0.17  
  0.71  
   − 0.41  

   − 0.30  
   − 0.95  
  0.00  
  0.00  

    (a)      create matrix A by using term counts from the original documents;  
  (b)      obtain rank 1, 2, and 3 approximations to the document representations;  
  (c)      calculate the variability preserved by rank 1, 2, and 3 approximations;  
  (d)      Manually cluster documents A, B, C, and D into two clusters.      

    5.     Given a table of linked Web pages and a dampening factor of 0.15:

   Page  

  A  
  B  
  C  
  D  
  E  
  F  

   Linked to page  

  F  
  F  
  F  
  F  
  A, F  
  E  

      (a)      ﬁ nd the PageRank scores for each page after one iteration;  
  (b)      ﬁ nd the PageRank scores after 100 iterations, recording the absolute difference between 
scores per iteration (be sure to use some programming or scripting language to obtain 
these scores);  

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
     
326 

WEB  MINING  AND  TEXT  MINING 

  (c)      explain the scores and rankings computed previously in parts (a) and (b). How quickly 

would you say that the scores converged? Explain.      

    6.     Why  is  the  text - reﬁ ning  task  very  important  in  a  text - mining  process? What  are 

the results of text reﬁ ning?   

    7.     Implement the HITS algorithm and discover authorities and hubs if the input is the 

table of linked pages.   

    8.     Implement the PageRank algorithm and discover central nodes in a table of linked 

pages.   

    9.     Develop a software tool for discovering maximal reference sequences in a Web - log 

ﬁ le.   

    10.     Search the Web to ﬁ nd the basic characteristics of publicly available or commercial 
software tools for association - rule discovery. Document the results of your search.   

    11.     Apply LSA to 20 Web pages of your choosing and compare the clusters obtained 
using the original term counts as attributes against the attributes derived using LSA. 
Comment on the successes and shortcomings of this approach.   

    12.     What are the two main steps in mining  traversal patterns  using log data?   

    13.     The XYZ Corporation maintains a set of ﬁ ve Web pages: {A, B, C, D, and E}. The 

following sessions (listed in timestamp order) have been created:

   S
1

=

[

,
A B C S
2

],

,

=

[

A C S
3

],

,

=

],
B C E and S
[ ,

,

4

=

[

A C D C E

,

,

,

,

].  

Suppose that support threshold is 30%. Find all  large sequences  (after building the 
tree).   

    14.     Suppose a Web graph is undirected, that is, page i points to page j if and only page 
j points to page i. Are the following statements true or false? Justify your answers 
brieﬂ y.
   (a)      The hubbiness and authority vectors are identical, that is, for each page, its hubbiness 

is equal to its authority.  

  (b)      The matrix M that we use to compute PageRank is symmetric, that is, M[i; j]    =    M[j; i] 

for all i and j.        

  11.9  

 REFERENCES FOR FURTHER STUDY 

    Akerkar ,   R.  ,    P.    Lingras  ,   Building  an  Intelligent  Web:  Theory  and  Practice ,   Jones  and  Bartlett 

Publishers ,  Sudbury, MA ,  2008 .  
  This  provides  a  number  of  techniques  used  in  Web  mining.  Code  is  provided  along  with 
illustrative  examples  showing  how  to  perform  Web - content  mining,  Web - structure  mining 
and Web - usage mining.  

    Chang ,   G.  ,    M.  J.    Haeley  ,    J. A.  M.    McHugh  ,    J.  T.  L.    Wang  ,   Mining  the  World  Wide  Web:  An 

Information Search Approach ,  Kluwer Academic Publishers ,  Boston, MA ,  2001 .  

REFERENCES  FOR  FURTHER  STUDY 

327

  This book is an effort to bridge the gap between information search and data mining on the 
Web. The ﬁ rst part of the book focuses on IR on the Web. The ability to ﬁ nd relevant docu-
ments on the Web is essential to the process of Web mining. The cleaner the set of Web docu-
ments and data are, the better the knowledge that can be extracted from them. In the second 
part of the book, basic concepts and techniques on text mining, Web mining, and Web crawl-
ing  are  introduced. A  case  study,  in  the  last  part  of  the  book,  focuses  on  a  search  engine 
prototype called EnviroDaemon.  

    Garcia ,   E.  ,   SVD  and  LSI  Tutorial  4:  Latent  Semantic  Indexing  (LSI)  How - to  Calculations ,  Mi 
Islita,  2006 ,  http://www.miislita.com/information - retrieval - tutorial/svd - lsi - tutorial - 4 - lsi - how -
 to - calculations.html .  
  This Web tutorial provides students with a greater understanding of latent semantic indexing. 
It provides a detailed tutorial aimed at students. All calculations are pictured giving the student 
an opportunity to walk through the entire process.  

    Han ,  J.  ,   M.   Kamber  ,  Data Mining: Concepts and Techniques ,  2nd  edition,  San Francisco ,  Morgan 

Kaufmann ,  2006 .  
  This book gives a sound understanding of data - mining principles. The primary orientation of 
the  book  is  for  database  practitioners  and  professionals  with  emphasis  on  OLAP  and  data 
warehousing. In - depth analysis of association rules and clustering algorithms is the additional 
strength of the book. All algorithms are presented in easily understood pseudo - code, and they 
are suitable for use in real - world, large - scale data - mining projects, including advanced appli-
cations such as Web mining and text mining.  

    Mulvenna ,  M. D.  , et al., ed.,  Personalization on the Net Using Web Mining ,  CACM , Vol.  43 , No. 

 8 ,  2000 .  
  This is a collection of articles that explains state - of - the - art Web - mining techniques for devel-
oping  personalization  systems  on  the  Internet.  New  methods  are  described  for  analyses  of 
Web - log data in a user - centric manner, inﬂ uencing Web - page content, Web - page design, and 
overall Web - site design.  

    Zhang ,  Q.  ,   R. S.   Segall  ,  Review of Data, Text and Web Mining Software ,  Kybernetes , Vol.  39 , 

No.  4 ,  2010 , pp.  625  –  655 .  
  The  paper  reviews  and  compares  selected  software  for  data  mining,  text  mining,  and Web 
mining that are not available as free open - source software. The software for data mining are 
SAS  ®    Enterprise  Miner ™ ,  Megaputer  PolyAnalyst  ®    5.0,  NeuralWare  Predict  ®  ,  and 
BioDiscovery GeneSight  ®  . The software for text mining are CompareSuite, SAS  ®   Text Miner, 
TextAnalyst, VisualText, Megaputer PolyAnalyst  ®   5.0, and WordStat. The software for Web 
mining are Megaputer PolyAnalyst  ®  , SPSS Clementine  ®  , ClickTracks, and QL2. The paper 
discusses and compares the existing features, characteristics, and algorithms of selected soft-
ware for data mining, text mining, and Web mining, respectively.   

 
 
  12 

ADVANCES IN DATA MINING     

  Chapter Objectives 

     (cid:127)       Analyze  the  characteristics  of  graph - mining  algorithms  and  introduce  some 

illustrative examples.  

   (cid:127)       Identify  the  required  changes  in  data - mining  algorithm  when  temporal  and 

spatial components are introduced.  

   (cid:127)       Introduce  the  basic  characteristics  of  distributed  data - mining  algorithms  and 
speciﬁ c  modiﬁ cations  for  distributed  Density - Based  Spatial  Clustering  of 
Applications with Noise (DBSCAN) clustering.  

   (cid:127)       Describe the differences between causality and correlation.  
   (cid:127)       Introduce the basic principles in Bayesian networks modeling.  
   (cid:127)       Know when and how to include privacy protection in a data - mining process.  
   (cid:127)       Summarize social and legal aspects of data - mining applications.     

    Current technological progress permits the storage and access of large amounts of 
data at virtually no cost. These developments have created unprecedented opportunities 
for large - scale data - driven discoveries, as well as the potential for fundamental gains 

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

328

 
GRAPH  MINING 

329

in  scientiﬁ c  and  business  understanding. The  popularity  of  the  Internet  and  the Web 
makes it imperative that the data - mining framework is extended to include distributed, 
time -  and space - dependent information and tools. New complex and distributed systems 
are  supported  by  enhanced  multimedia  data  sources  such  as  images  and  signals,  and 
advanced data structures such as graphs. In this environment, data - mining applications 
have new social and legal challenges, and privacy preservation is one of the priority 
tasks.  

   12.1  

  GRAPH MINING 

 Traditional data - mining tasks such as association - rule mining, market - basket analysis, 
and cluster analysis commonly attempt to ﬁ nd patterns in a data set characterized by a 
collection of independent instances of a single relation. This is consistent with the clas-
sical statistical inference problem of trying to identify a model given a random sample 
from a common underlying distribution. An emerging challenge for data mining is the 
problem  of  mining  richly  structured  data  sets,  where  the  objects  are  linked  in  some 
way. Many real - world data sets describe a variety of entity types linked via multiple 
types of relations. These links provide additional context that can be helpful for many 
data - mining tasks. Yet multi - relational data violate the traditional assumption of inde-
pendent, identically distributed data instances that provides the basis for many statistical 
machine - learning algorithms. Naively applying traditional statistical inference proce-
dures, which assume that samples are independent, may lead in many applications to 
inappropriate conclusions. Care must be taken that potential correlations due to links 
between samples are handled appropriately. In fact, record linkage is knowledge that 
should be exploited. Clearly, this is information that can be used to improve the predic-
tive accuracy of the learned models: Attributes of linked objects are often correlated 
and  links  are  more  likely  to  exist  between  objects  that  have  some  commonality. 
Relationships  between  objects  represent  a  rich  source  of  information,  and  ultimately 
knowledge.  Therefore,  new  approaches  that  can  exploit  the  dependencies  across  the 
attribute and link structure are needed. Certainly, as a general data structure, a graph 
can meet the demands of modeling complicated relations among data. 

 Graph - based  data  mining  represents  a  collection  of  techniques  for  mining  the 
relational aspects of data represented as a graph. It has the task of ﬁ nding novel, useful, 
and  understandable  graph - theoretic  patterns  in  a  graph  representation  of  data.  Graph 
mining has become an important topic of research recently because of numerous appli-
cations to a wide variety of data - mining problems in computational biology, chemical 
data  analysis,  drug  discovery,  and  communication  networking.  Some  examples  of 
graph - represented data are presented in Figure 12 .1 . Traditional data - mining and man-
agement  algorithms  such  as  clustering,  classiﬁ cation,  frequent - pattern  mining,  and 
indexing have now been extended to the graph scenario. While the ﬁ eld of graph mining 
has  been  a  relatively  recent  development  in  the  data - mining  community,  it  has  been 
studied under different names by other groups of researchers. This is because research 
on  graphs  has  a  long  history  in  mathematics,  but  most  notably  important  results  are 
obtained by sociologists in the ﬁ eld of a social network analysis. However, there are 

330 

ADVANCES  IN  DATA  MINING

(a)

(b)

(c)

     Figure  12.1.      Graph  representation  of  data.  (a)  Chemical  compound;  (b)  social  network; 
(c) genome co - expression network.  

important differences, and the primary one is that of network size. Social networks are, 
in general, small, with the larger studies considering a few hundred nodes. On the other 
hand,  graph - mining  data  sets  in  new  application  domains  may  typically  consist  of 
hundreds of thousands of nodes and millions of edges.   

 Many data sets of interest today are best described as a linked collection of inter-
related objects. These may represent homogeneous networks, in which there is a single -
 object  type  and  a  single - link  type,  or  richer,  heterogeneous  networks,  in  which  there 
may  be  multiple  object  and  link  types,  and  possibly  other  semantic  information. 
Examples  of  homogeneous  networks  include  single - mode  social  networks,  such  as 
people  connected  by  friendship  links,  or  the World Wide Web  (WWW),  a  collection 
of  linked Web  pages.  Examples  of  heterogeneous  networks  include  those  in  medical 
domains  describing  patients,  diseases,  treatments,  and  contacts,  or  in  bibliographic 
domains  describing  publications,  authors,  and  venues.  Graph - mining  techniques 
explicitly  consider  these  links  when  building  predictive  or  descriptive  models  of  the 
linked data. 

 The  requirement  of  different  applications  with  graph - based  data  sets  is  not  very 
uniform. Thus, graph models and mining algorithms that work well in one domain may 
not work well in another. For example, chemical data is often represented as graphs in 
which the nodes correspond to atoms, and the links correspond to bonds between the 
atoms. The individual graphs are quite small although there are signiﬁ cant repetitions 
among the different nodes. Biological data are modeled in a similar way as chemical 
data.  However,  the  individual  graphs  are  typically  much  larger.  Protein  interaction 
networks link proteins that must work together to perform some particular biological 
functions. A single biological network could easily contain thousands of nodes. In the 
case of computer networks and the Web, the number of nodes in the underlying graph 
may be massive. Computer networks consist of routers/computers representing nodes, 
and the links between them. Since the number of nodes is massive, this can lead to a 
very large number of distinct edges. Social networks may be modeled with large graphs 
that are deﬁ ned by people who appear as nodes, and links that correspond to commu-
nications or relationships between these different people. The links in the social network 
can be used to determine relevant communities, members with particular expertise sets, 
and the ﬂ ow of information in the social network. For example, the problem of com-

GRAPH  MINING 

331

munity detection in social networks is related to the problem of node clustering of very 
large graphs. In this case, we wish to determine dense clusters of nodes based on the 
underlying linkage structure. It is clear that the design of a particular mining algorithm 
depends upon the application domain at hand. 

 Before introducing some illustrative examples of graph - mining techniques, some 
basic concepts from graph theory will be summarized. Graph theory provides a vocabu-
lary that can be used to label and denote many structural properties in data. Also, graph 
theory gives us mathematical operations and ideas with which many of these properties 
can be quantiﬁ ed and measured. 

 A graph G    =    G(N, L) consists of two sets of information: a set of nodes N    =    {n 1 , 
n 2 ,    . . .    , n k } and a set of links between pairs of nodes L    =    {l 1 , l 2 , … , l m }. A graph with 
nodes and without links is called an empty graph, while the graph with only one node 
is a trivial graph. Two nodes n i  and n j  are  adjacent  if there is a link between them. A 
graph G(N, L) can be presented as a diagram as in Figure 12 .2 a in which points depict 
nodes, and lines between two points are links. A graph G ′ (N ′ , L ′ ) is a subgraph of G(N, 
L) if N ′     ⊆    N and L ′     ⊆    L.   

 An induced subgraph of a graph  G  has a subset of the nodes of  G,  and the same 
links between pairs of nodes as in  G . For example, the subgraph (b) in Figure 12 .3  is 
an induced subgraph of the graph (a), but the subgraph (c) is a general subgraph but 
not an induced subgraph of G, since the incoming link L 1  of the node labeled  N 2 in (a) 
is not retained in (c) while the node labeled  N 2 is included.   

A

D

A

D

A

B

C

B

C

B

(a)

(b)

     Figure 12.2.      Undirected, directed, and weighted graphs.  

2

3

1

(c)

C

N1

L1

N2

N1

L1

(a)

N1

L2

L2

N1

(b)

N1

N2

N1

L1

(c)

     Figure 12.3.      An induced subgraph and a general graph.  

D

L2

332 

ADVANCES  IN  DATA  MINING

 The  degree  of  a  node,  denoted  by  d(n i ),  is  the  number  of  links  connected  to  the 
given node. Equivalently, the degree of a node is the number of nodes adjacent to it. 
For example, in Figure 12 .2 a the degree d(B)    =    3. The degree of a node ranges from a 
minimum of 0 if no nodes are adjacent to a given node, and to a maximum of k    −    1 if 
a given node is adjacent to all the other nodes in the graph. The degrees are very easy 
to  compute,  and  yet  they  can  be  very  informative  for  many  applications.  For  some 
applications, it is useful to summarize the degrees of all nodes in the graph. The mean 
nodal degree is a statistic that reports the average degree of the nodes in the graph:

k

∑ (
d n
i
= =
i
1

)

d

av

k
 For  the  graph  in  Figure  12 .2 a,  d av     =    (1    +    3    +    2    +    2)/4    =    2.  One  might  also  be 
interested in the variability of the nodal degrees. If all the degrees of all nodes are equal, 
the graph is said to be d - regular, and its variability is equal to 0. If the nodes differ in 
degrees, the variance is calculated as a measure for variability:

k

∑ ( (
d n
i

−

)

d

av

2

))

2

SD

=

=
1

i

k

 The  maximum  number  of  links  in  the  graph  is  deﬁ ned  by  the  number  of  nodes. 
Since  there  are  k  nodes  in  the  graph,  and  if  we  exclude  the  loops  as  links,  there  are 
k(k    −    1)/2 possible links that could be presented in the graph. If all links are present, 
then all nodes are adjacent, and the graph is said to be complete. Consider now what 
proportion of these links is actually present. The density of a graph is the proportion 
of actual links in the graph compared with the maximum possible number of links. The 
density of a graph goes from 0, when there are no links in a graph, to 1, when all pos-
sible links are presented. 

 We can also analyze the paths between a pair of nodes, and they are represented by 
multiple links. We deﬁ ne a path from s    ∈    N to t    ∈    N as an alternating sequence of nodes 
and links, beginning with node s and ending with node t, such that each link connects 
its preceding with its succeeding node. It is likely that there are several paths between 
a given pair of nodes, and that these paths are differ in lengths (number of links included 
in  the  path).  The  shortest  path  between  two  nodes  is  referred  to  as  a   geodesic .  The 
geodesic distance d G  or simply the distance between two nodes is deﬁ ned as the length 
of a geodesic between them, and it represents the length of the shortest path. By deﬁ ni-
tion, d G (s; s)    =    0 for every node s    ∈    N, and d G (s; t)    =    d G (t; s) for each pair of nodes s, 
t    ∈    V. For example, the paths between nodes A and D in Figure 12 .2 a are A - B - D and 
A - B - C - D. The shortest one is A - B - D, and therefore the distance d(A,D)    =    2. If there is 
no path between two nodes, then the distance is inﬁ nite (or undeﬁ ned). The  diameter  of 
a connected graph is the length of the largest geodesic between any pairs of nodes. It 
represents the largest nodal eccentricity. The diameter of a graph can range from 1, if 

   
  
   
  
GRAPH  MINING 

333

the graph is complete, to a maximum of k    −    1. If a graph is not connected, its diameter 
is inﬁ nite. For the graph in Figure 12 .2 a the diameter is 2. 

 These basic deﬁ nitions are introduced for non - labeled and nondirected graphs such 
as the one in Figure 12 .2 a. A  directed graph , or digraph G(N, L) consists of a set of 
nodes N and a set of directed links L. Each link is deﬁ ned by an order pair of nodes 
(sender, receiver). Since each link is directed, there are k(k    −    1) possible links in the 
graph. A  labeled graph  is a graph in which each link carries some value. Therefore, a 
labeled graph G consists of three sets of information: G(N,L,V), where the new com-
ponent V    =    {v 1 , v 2 ,    . . .    , v t } is a set of values attached to links. An example of a directed 
graph  is  given  in  Figure  12 .2 b,  while  the  graph  in  Figure  12 .2 c  is  a  labeled  graph. 
Different  applications  use  different  types  of  graphs  in  modeling  linked  data.  In  this 
chapter the primary focus is on undirected and unlabeled graphs although the reader 
still has to be aware that there are numerous graph - mining algorithms for directed and/
or labeled graphs. 

 Besides a graphical representation, each graph may be presented in the form of the 
 incidence matrix  I(G) where nodes are indexing rows and links are indexing columns. 
The matrix entry in the position (i,j) has value  a  if node n i  is incident with  a , the link 
l j . The other matrix representation of a graph (in the case of undirected and unlabeled 
graphs)  is  the  k    ×    k  adjacency  matrix,  where  both  rows  and  columns  are  deﬁ ned  by 
nodes. The graph - structured data can be transformed without much computational effort 
into an  adjacency matrix , which is a well - known representation of a graph in mathe-
matical graph theory. On the intersection (i,j) is the value of 1 if the nodes n i  and n j  are 
connected by a link; otherwise it is 0 value (Fig.  12.4 ).   

 If a graph has labeled links, the following conversion of the graph to a new graph 
that has labels at its nodes only is applied. This transformation reduces the ambiguity 
in the adjacency matrix representation. Given a node pair ( u ,  v ) and a directed or undi-
rected link { u, v } between the nodes, that is,  node ( u ) −  link ({ u, v }) −  node ( v ) where  node () 
and  link () stand for the labels of a node and a link, respectively. The  link () label infor-
mation can be removed and transformed into a new  node ( u, v ), and the following tri-
angular graph may be deduced where the original information of the node pair and the 
link between them are preserved.

n1

n3

(l3;b)

(l1;a)

(l3;b)

n2

n4

(l4;c)

n5

l1
a
0

0

a

0

l2
b
b

0

l3
l4
0 0
0
0

0b

0 b c

0

0 c

n1
n2
n3
n4
n5

n1

n3

n2

n4

n1 n2 n3 n4
1
0
00
0
0
0
1

0

1

1 0

0

1

1

0

n1
n2
n3
n4

(a)

(b)

     Figure 12.4.      Matrix representations of graphs. (a) Incidence matrix:nodes    ×    links; (b) adjan-
cency matrix:nodes  × nodes.  

    
334 

ADVANCES  IN  DATA  MINING

node(u)

node(v)

link({u,v})

node(u)

node(v)

node({u,v})

 This operation on each link in the original graph can convert the graph into another 
graph  representation  having  no  labels  on  the  links  while  preserving  the  topological 
information of the original graph. 

 Accordingly, the adjacency matrix of Figure 12 .5 a is converted to that of Figure 

12 .5 b as follows.

N1
L2
0
L1

N1
0
0
0

N2
0
L1
0

N1
N1
N2

N1
1
0
1
1
0
1

N1
0
0
0
0
0
0

N2
0
1
0
0
1
0

L1
0
0
1
0
0
0

L1
0
1
0
0
0
0

L2
1
0
0
0
0
0

N1
N1
N2
L1
L1
L2

 The aforementioned explanation was for directed graphs. But the identical prepro-
cessing may be applied to undirected graphs. The difference from the case of directed 
graphs  is  that  the  adjacency  matrix  becomes  diagonally  symmetric.  The  adjacency 
matrix of Figure 12 .6 a is represented in Figure 12 .6 b.   

 For the sake not only of efﬁ ciency in memory consumption but also of efﬁ ciency 
in computations with graphs, we deﬁ ne a code representation of an adjacency matrix 
as follows. In the case of an undirected graph, the code of an adjacency matrix  X k  , that 
is,  code ( X k   ), is represented by a binary number. It is obtained by scanning the upper 
triangular  elements  of  the  matrix  along  each  column  until  diagonal  elements  (for  an 

N1

L1

N2

L2

N1

L1

(a)

N1

L2

L1

N2

(b)

N1

L1

     Figure 12.5.      Preprocessing of labeled links and self - looped nodes in a graph.  

      
GRAPH  MINING 

335

N1

N3

N3

N2

N4

(a)

N1 N2

N3 N3

N4

N1
N2

N3

N3

N4

0

0

1

1

0

1

1

0

0

1

0

1

0

1

0

0

0

0

1

1

1

0

0

0

0

(b)

     Figure 12.6.      Undirected graph representations.  

N1

N1

N1

N3

N3

N3

N3

N3

+

N2

N3

N2

N2

N3

)a(

)b(

)c(

N1 N2 N3 N3
1

0

X4

=

N1 0 0
N2
0 0
N3
N3

0 1

1 0

Y4

=

1

0

1

0

1

0

N1 N2 N3 N3
1

1

N1 0 0
N2
0 0
N3
N3

1 0

1 1

0

0

0

1

0

0

N1 N2 N3 N3 N3
0 0
1
10

0 0

1 0

0 1

1 1

0

0

0

0

1 1

0 0

0

?

?

0

Z5

N1
N2

= N3
N3
N3

     Figure 12.7.      An example of join operation between graphs (a) and (b).  

(d) Matrix representation of a join operation

undirected  graph).  For  example,  the  code  of  the  adjacency  matrix  in  Figure  12 .6 b  is 
given by

   Code Xk

(

) = 0101100101   

 A variety of operations is deﬁ ned in graph theory, and corresponding algorithms 
are developed to efﬁ ciently perform these operations. The algorithms work with graphi-
cal, matrix, or code representations of graphs. One of the very important operations is 
the joining of two graphs to form a new, more complex graph. This operation is used 
in  many  graph - mining  algorithms,  including  frequent - pattern  mining  in  graphs.  The 
join  operation  is  demonstrated  through  the  example  depicted  in  Figure  12 .7 .  The 

336 

ADVANCES  IN  DATA  MINING

N3

N2

N1

Degree

Closeness

6

5

4

15/9 = 1.66

14/9 = 1.55

17/9 = 1.88

N1
N2
N3

     Figure 12.8.      Degree and closeness parameters of the graph.  

examples  of  the  adjacency  matrices  X 4 , Y 4 ,  and  Z 5   are  given  in  (d)  representing  the 
graphs at (a), (b), and (c).   

 Graph analysis includes a number of parameters that describe the important char-
acteristics of a graph, and they are used as fundamental concepts in developing graph-
mining algorithms. Over the years, graph - mining researchers have introduced a large 
number of  centrality indices , measures of the importance of the nodes in a graph accord-
ing to one criterion or another. 

 Perhaps the simplest centrality measure is  degree , which is the number of links for 
a given node. Degree is a measure in some sense of the  “ popularity ”  of a node in the 
presented graph. Nodes with a high degree are considered to be more central. However, 
this weights a node only by its immediate neighbors and not by, for example, its two -
 hop  and  three - hop  neighbors.  A  more  sophisticated  centrality  measure  is   closeness , 
which is the mean geodesic (i.e., shortest path) distance between a vertex and all other 
vertices reachable from it. Examples of computations for both measures are given in 
Figure 12 .8 . Closeness can be regarded as a measure of how long it will take for infor-
mation  to  spread  from  a  given  node  to  others  in  the  graph.  Nodes  that  have  a  low 
distance to all other nodes in the graph have high closeness centrality.   

 Another  important  class  of  centrality  measures  is  the  class  of   betweenness   mea-
sures.  Betweenness  is  a  measure  of  the  extent  to  which  a  vertex  lies  on  the  paths 
between others. The simplest and most widely used betweenness measure is  shortest 
path betweenness , or simply  betweenness . The betweenness of a node  i  is deﬁ ned to 
be  the  fraction  of  shortest  paths  between  any  pair  of  vertices  in  a  graph  that  passes 
through node  i.  This is, in some sense, a measure of the inﬂ uence a node has over the 
spread of connections through the network. Nodes with high betweenness values occur 
on  a  larger  number  of  shortest  paths  and  are  presumably  more  important  than  nodes 
with low betweenness. The parameter is costly to compute especially when the graphs 
are  complex  with  a  large  number  of  nodes  and  links.  Currently,  the  fastest  known 
algorithms require O(n 3 ) time complexity and O(n 2 ) space complexity, where n is the 
number of nodes in the graph. 

 Illustrative examples of centrality measures and their interpretations are given in 
Figure 12 .9 . Node  X  has importance because it bridges the structural hole between the 
two clusters of interconnected nodes. It has the highest betweenness measure compared 
with all the other nodes in the graph. Such nodes get lots of brokerage opportunities 
and can control the ﬂ ow in the paths between subgraphs. On the other hand, node  Y  is 

GRAPH  MINING 

337

Z

Y

X

     Figure 12.9.      Different types of a node ’ s importance in a graph.  

in the middle of a dense web of nodes that provides easy, short path access to neighbor-
ing nodes; thus,  Y  also has a good central position in the subgraph. This characteristic 
of the node Y is described with the highest degree measure.   

 The  vertex - betweenness  index  reﬂ ects  the  amount  of  control  exerted  by  a  given 
vertex over the interactions between the other vertices in the graph. The other approach 
to measure betweenness is to concentrate on links in the graph instead of nodes. Edge -
 betweenness  centrality  is  related  to  the  frequency  of  an  edge  placed  on  the  shortest 
paths between all pairs of vertices. The betweenness centrality of an edge in a network 
is given by the sum of the edge - betweenness values for all pairs of nodes in the graph 
going  through  the  given  edge.  The  edges  with  highest  betweenness  values  are  most 
likely to lie between subgraphs, rather than inside a subgraph. Consequently, succes-
sively removing edges with the highest edge - betweenness will eventually isolate sub-
graphs consisting of nodes that share connections only with other nodes in the same 
subgraph.  This  gives  the  edge - betweenness  index  a  central  role  in  graph - clustering 
algorithms where it is necessary to separate a large graph into smaller highly connected 
subgraphs. Edge -  (also called link - ) betweenness centrality is traditionally determined 
in two steps:

   1.      Compute  the  length  and  number  of  shortest  paths  between  all  pairs  of  nodes 

through the link.  

  2.      Sum all link dependencies.    

 The overall betweenness centrality of a link  v  is obtained by summing up its partial 
betweenness values for this link, calculated using the graph transformation on breadth 
ﬁ rst  strategy  from  each  node.  For  example,  at  the  beginning  it  is  given  a  graph  in 
Figure  12 .10 a  and  it  is  necessary  to  ﬁ nd  link  betweenness  measures  for  all  links  in 
the graph. In the ﬁ rst step, we build a  “ modiﬁ ed ”  graph that starts with node A, and 
speciﬁ es all links in the graph, layer by layer: ﬁ rst neighbors, second neighbors, and 
so on. The resulting graph is given in Figure 12 .10 b. This graph is the starting point 
for  partial  betweenness computation. The total betweeness will be the sum of partial 
scores  obtained  for  transformed  graphs  with  root  nodes  A  to  K.  The  process  with 
each transformed graph in (b) consists of a forward phase and a backward phase, and 
will be illustrated with activities on the graph in Figure 12 .10 b. In the forward phase, 
the count of shortest paths from A to all other nodes of the network is determined. The 

338 

ADVANCES  IN  DATA  MINING

B

A

E

F

C

D

H

(a)

I

G

J

K

A

B

C

D

E

F

I

G

H

J

K

(b)

     Figure  12.10.      Preparatory  phase  for  link - betweenness  computation.  (a)  Initial  graph;  (b) 
transformed graph with the root in node A.  

A

A

2

2

4

2

1

B

1

C

D

1

E

1

1

B

1

C

D

1

E

1

2

F

1

G

H

2

2

F

1

G

H

2

1

1

2

1

1

3

I

J

3

K

6

(a)

1

I

3

1/2

1/2

1

J

3

1/2

1/2

K

6

(b)

     Figure 12.11.      Computation of the partial link - betweenness measure. (a) Forward phase; (b) 
backward phase.  

computation is performed iteratively, layer by layer. For example, the number of short-
est  paths  from  the  initial  node A  to  the  node  I  is  computed  based  on  the  number  of 
shortest paths from node A to the nodes F and G.   

 The result of the completed forward phase is given in Figure 12 .11 a. Each node is 
labeled with the number of shortest paths from the root node A. For example, the node 
J has three shortest paths, two of them through the node H (ADHJ and AEHJ) and one 
through the node G (ADGJ).   

 The backward phase starts from the bottom of the layered graph structure, in our 
example,  from  node  K.  If  there  are  multiple  paths  from  the  given  node  up,  count 
betweenness  measure  of  each  link  fractionally.  The  proportion  is  determined  by  the 
number of shortest paths to these nodes on the previous layer. What is the amount we 
are splitting between these links? The amount is deﬁ ned as  1      +      sum of all betweenness 
measures entering into the node from below . For example, from node K there are two 

GRAPH  MINING 

339

paths toward nodes I and J, and because both nodes have the same number of shortest 
paths (3), the amount we are splitting is 1    +    0    =    1, and the partial betweenness measure 
for links IK and JK is 0.5. In a similar way, we may compute betweennes measures for 
node G. Total betweenness value for splitting is 1    +    0.5    +    0.5    =    2. There is only one 
node up; it is D, and the link - betweenness measure for GD is 2. 

 When we compute betweenness measures for all links in the graph, the procedure 
should be repeated for the other nodes in the graph, such as the root nodes, until each 
node of the network is explored. Finally, all partial link scores determined for different 
graphs should be added to determine the ﬁ nal link - betweenness score. 

 Graph - mining applications are far more challenging to implement because of the 
additional constraints that arise from the structural nature of the underlying graph. The 
problem of frequent pattern mining has been widely studied in the context of mining 
transactional data. Recently, the techniques for frequent - pattern mining have also been 
extended to the case of graph data. This algorithm attempts to ﬁ nd interesting or com-
monly occurring subgraphs in a set of graphs. Discovery of these patterns may be the 
sole purpose of the systems, or the discovered patterns may be used for graph classiﬁ -
cation or graph summarization. The main difference in the case of graphs is that the 
process of determining support is quite different. The problem can be deﬁ ned in dif-
ferent ways, depending upon the application domain. In the ﬁ rst case, we have a group 
of graphs, and we wish to determine all the patterns that support a fraction of the cor-
responding graphs. In the second case, we have a single large graph, and we wish to 
determine all the patterns that are supported at least a certain number of times in this 
large graph. In both cases, we need to account for the isomorphism issue in determining 
whether one graph is supported by another or not. However, the problem of deﬁ ning 
the support is much more challenging if overlaps are allowed between different embed-
dings. Frequently occurring subgraphs in a large graph or a set of graphs could represent 
important motifs in the real - world data. 

  Apriori  - style algorithms can be extended to the case of discovering frequent sub-
graphs in graph data, by using a similar level - wise strategy of generating (k    +    1) can-
didates from k - patterns. Various measures to mine substructure frequencies in graphs 
are used similarly in conventional data mining. The selection of the measures depends 
on the objective and the constraints of the mining approach. The most popular measure 
in graph - based data mining is a  “ support ”  parameter whose deﬁ nition is identical with 
that of market - basket analysis. Given a graph data set D, the support of the subgraph 
Gs, sup(G s ), is deﬁ ned as

   sup(

)G
s

= number of graphs including 

G
s
total number of graaphs in D

in

D

 By  specifying  a   “ minimum  support ”   value,  subgraphs  Gs,  whose  support  values 
are above threshold, are mined as candidates or components of candidates for maximum 
frequent subgraphs. The main difference in an a priori implementation is that we need 
to deﬁ ne the join process of two subgraphs a little differently. Two graphs of size k can 
be joined if they have a structure of size (k    −    1) in common. The  size of this structure  
could be deﬁ ned in terms of either nodes or edges. The algorithm starts by ﬁ nding all 

  
340 

ADVANCES  IN  DATA  MINING

6 edges

7 edges

22 new graphs

     Figure 12.12.      Free extensions in graphs.  

frequent single -  and double - link subgraphs. Then, in each iteration, it generates candi-
date subgraphs by expanding the subgraphs found in the previous iteration by one edge. 
The  algorithm  checks  how  many  times  the  candidate  subgraph  with  the  extension 
occurs within an entire graph or set of graphs. The candidates whose frequency is below 
a  user - deﬁ ned  level  are  pruned.  The  algorithm  returns  all  subgraphs  occurring  more 
frequently  than  the  given  threshold. A  na ï ve  approach  of  a  subgraph  extension  from 
kk    −    1 size to size k is computationally very expensive as illustrated in Figure 12 .12 . 
Therefore, the candidate generation of a frequently induced subgraph is done with some 
constraints.  Two  frequent  graphs  are  joined  only  when  the  following  conditions  are 
satisﬁ ed  to  generate  a  candidate  of  frequent  graph  of  size  k    +    1.  Let  X k   and  Y k   be 
adjacency matrices of two frequent graphs G(X k ) and G(Y k ) of size k. If both G(X k ) 
and G(Y k ) have equal elements of the matrices except for the elements of the  k th row 
and the  k th column, then they may be joined to generate Z k      +      1  as an adjacency matrix 
for a candidate graph of size k    +    1.  

   X

k

=




X

−
1

k
x

T
2




x
1
0

,

Y
k

=




X

−
1

k
T
y
2




y
1
0

,

Z

k

+

1

=






X

−
1

k
x

T
2
T
y
2

x
1
0

z

+

k

1
,

k

y
1

z

+

kk k
,
0



1


 In this matrix representations, X k − 1  is the common adjacency matrix representing 
the  graph  whose  size  is  kk    −    1,  while  x i   and  y i   (i    =    1,  2)  are  (kk    −    1)    ×    1  column 
vectors. These column vectors represent the differences between two graphs prepared 
for the join operation. 

  
GRAPH  MINING 

341

     Figure 12.13.      Graph summarization through graph compression.  

 The process suffers from computational intractability when the graph size becomes 
too large. One problem is subgraph  isomorphism,  with NP complexity, as a core step 
in graph matching. Also, all frequent patterns may not be equally relevant in the case 
of  graphs.  In  particular,  patterns  that  are  highly  connected  (which  means  dense  sub-
graphs) are much more relevant. This additional analysis requires more computations. 
One possible application of discovering frequent subgraphs is a summarized representa-
tion  of  larger,  complex  graphs. After  extracting  common  subgraphs,  it  is  possible  to 
simplify  large  graphs  by  condensing  these  subgraphs  into  new  nodes. An  illustrative 
example is given in Figure 12 .13  ,  where a subgraph of four nodes is replaced in the 
set of graphs with a single node. The resulting graphs represent summarized representa-
tion of the initial graph set.   

 In recent years, signiﬁ cant attention has focused on studying the structural proper-
ties of networks such as the WWW, online social networks, communication networks, 
citation networks, and biological networks. Across these large networks, an important 
characteristic is that they can be characterized by the nature of the underlying graphs 
and subgraphs, and clustering is an often used technique for miming these large net-
works. The problem of graph clustering arises in two different contexts: a single large 
graph or large set of smaller graphs. In the ﬁ rst case, we wish to determine dense node 
clusters in a  single large graph  minimizing the intercluster similarity for a ﬁ xed number 
of clusters. This problem arises in the context of a number of applications such as graph 
partitioning and the minimum - cut problem. The determination of dense regions in the 
graph is a critical problem from the perspective of a number of different applications 
in social networks and Web - page summarization. Top - down clustering algorithms are 
closely related to the concept of  centrality analysis  in graphs where central nodes are 
typically  key  members  in  a  network  that  is  well  connected  to  other  members  of  the 
community. Centrality analysis can also be used in order to determine the central points 
in information ﬂ ows. Thus, it is clear that the same kind of structural - analysis algorithm 

342 

1

2

4

3

6

5

7

8

10

9

11

12

14

13

ADVANCES  IN  DATA  MINING

1

2

4

3

6

5

7

8

10

9

11

12

14

13

(a)

(b)

     Figure 12.14.      Graph clustering using betweenness measure. (a) Initial graph; (b) subgraphs 
after elimination of links with maximum betweenness.  

can lead to different kinds of insights in graphs. For example, if the criterion for sepa-
rating  a  graph  into  subgraphs  is  a  maximum  measure  of  link  betweenness,  then  the 
graph in Figure 12 .14 a may be transformed into six subgraphs as presented in Figure 
12 .14 b. In this case the maximum betweenness of 49 was for the link (7, 8), and elimi-
nation of this link deﬁ nes two clusters on the highest level of hierarchy. The next value 
of betweenness, 33, was found for links (3,7), (8, 9), (6, 7), and (8, 12). After elimina-
tion of these links on the second level of hierarchy, the graph is decomposed into six 
dense subgraphs of clustered nodes.   

 The second case of cluster analysis assumes multiple graphs, each of which may 
possibly be of modest size. These large number of graphs need to be clustered based 
on their underlying structural behavior. The problem is challenging because of the need 
to  match  the  structures  of  the  underlying  graphs,  and  these  structures  are  used  for 
clustering purposes. The main idea is that we wish to cluster graphs as objects, and the 
distance between graphs is deﬁ ned based on a structural similarity function such as the 
edit distance. This clustering approach makes it an ideal technique for applications in 
areas such as scientiﬁ c - data exploration, information retrieval, computational biology, 
Web - log analysis, forensics analysis, and blog analysis. 

 Link analysis is an important ﬁ eld that has received a lot of attention recently when 
advances in information technology enabled mining of extremely large networks. The 
basic data structure is still a graph, only the emphasis in analysis is on links and their 
characteristics: labeled or unlabeled, directed or undirected. There is an inherent ambi-
guity with respect to the term  “ link ”  that occurs in many circumstances, but especially 
in discussions with people whose background and research interests are in the database 
community.  In  the  database  community,  especially  the  subcommunity  that  uses  the 
well - known  entity - relationship  (ER)  model,  a   “ link ”   is  a  connection  between  two 
records in two different tables. This usage of the term  “ link ”  in the database community 
differs  from  that  in  the  intelligence  community  and  in  the  artiﬁ cial  intelligence  (AI) 
research community. Their interpretation of a  “ link ”  typically refers to some real world 
connection between two entities. Probably the most famous example of exploiting link 
structure in the graph is the use of links to improve information retrieval results. Both, 

TEMPORAL  DATA  MINING 

343

the well - known PageRank measure and hubs, and authority scores are based on the link 
structure of the Web. Link analysis techniques are used in law enforcement, intelligence 
analysis,  fraud  detection,  and  related  domains.  It  is  sometimes  described  using  the 
metaphor of  “ connecting the dots ”  because link diagrams show the connections between 
people, places, events, and things, and represent invaluable tools in these domains.  

   12.2  

  TEMPORAL DATA MINING 

 Time is one of the essential natures of data. Many real - life data describe the property 
or status of some object at a particular time instance. Today time - series data are being 
generated  at  an  unprecedented  speed  from  almost  every  application  domain,  for 
example, daily ﬂ uctuations of stock market, traces of dynamic processes and scientiﬁ c 
experiments,  medical  and  biological  experimental  observations,  various  readings 
obtained  from  sensor  networks,  Web  logs,  computer - network  trafﬁ c,  and  position 
updates of moving objects in location - based services. Time series or, more generally, 
temporal sequences, appear naturally in a variety of different domains, from engineer-
ing to scientiﬁ c research, ﬁ nance, and medicine. In engineering matters, they usually 
arise with either sensor - based monitoring, such as telecommunication control, or log -
 based  systems  monitoring.  In  scientiﬁ c  research  they  appear,  for  example,  in  spatial 
missions  or  in  the  genetics  domain.  In  health  care,  temporal  sequences  have  been  a 
reality  for  decades,  with  data  originated  by  complex  data - acquisition  systems  like 
electrocardiograms (ECGs), or even simple ones like measuring a patient ’ s temperature 
or treatment effectiveness. For example, a supermarket transaction database records the 
items purchased by customers at some time points. In this database, every transaction 
has a time stamp in which the transaction is conducted. In a telecommunication data-
base, every signal is also associated with a time. The price of a stock at the stock market 
database is not constant, but changes with time as well. 

 Temporal databases capture attributes whose values change with time. Temporal 
data  mining  is  concerned  with  data  mining  of  these  large  data  sets.  Samples  related 
with the temporal information present in this type of database need to be treated dif-
ferently  from  static  samples.  The  accommodation  of  time  into  mining  techniques 
provides  a  window  into  the  temporal  arrangement  of  events  and,  thus,  an  ability  to 
suggest cause and effect that are overlooked when the temporal component is ignored 
or treated as a simple numeric attribute. Moreover, temporal data mining has the ability 
to  mine  the  behavioral  aspects  of  objects  as  opposed  to  simply  mining  rules  that 
describe their states at a point in time. Temporal data mining is an important extension 
as it has the capability of mining activities rather than just states and, thus, inferring 
relationships of contextual and temporal proximity, some of which may also indicate a 
cause – effect association. 

  Temporal data mining  is concerned with data mining of large sequential data sets. 
By  sequential  data,  we  mean  data  that  are  ordered  with  respect  to  some  index.  For 
example, a time series constitutes a popular class of sequential data where records are 
indexed  by  time.  Other  examples  of  sequential  data  could  be  text,  gene  sequences, 
protein sequences, Web logs, and lists of moves in a chess game. Here, although there 

344 

ADVANCES  IN  DATA  MINING

is no notion of time as such, the ordering among the records is very important and is 
central to the data description/modeling. Sequential data include:

   1.      Temporal Sequences.      They represent ordered series of nominal symbols from 
a particular alphabet (e.g., a huge number of relatively short sequences in Web -
 log  ﬁ les  or  a  relatively  small  number  of  extremely  long  gene  expression 
sequences). This category includes ordered but not time stamped collections of 
samples. The sequence relationships include before, after, meet, and overlap.  
  2.      Time Series.      It represents a time - stamped series of continuous, real - valued ele-
ments (e.g., a relatively small number of long sequences of multiple sensor data 
or monitoring recordings from digital medical devices). Typically, most of the 
existing work on time series assumes that time is discrete. Formally, time - series 
data are deﬁ ned as a sequence of pairs T    =    ([p 1 , t 1 ], [p 2 , t 2 ],    . . .    , [p n , t n ]), where 
t 1     <    t 2     <     . . .     <    t n . Each p i  is a data point in a d - dimensional data space, and each 
t i  is the time stamp at which p i  occurs. If the sampling rate of a time series is 
constant, one can omit the time stamps and consider the series as a sequence 
of d - dimensional data points. Such a sequence is called the raw representation 
of the time series.    

 Traditional analyses of temporal data require a statistical approach because of noise 
in raw data, missing values, or incorrect recordings. They include (1) long - term trend 
estimation,  (2)  cyclic  variations,  for  example,  business  cycles,  (3)  seasonal  patterns, 
and (4) irregular movements representing outliers. Examples are given in Figure 12 .15 . 
The discovery of relations in temporal data requires more emphasis in a data - mining 

X

X

X

X

Time

(a)

Time

(c)

Time

Time

(b)

(d)

     Figure 12.15.      Traditional statistical analyses of time series. (a) Trend; (b) cycle; (c) seasonal; 
(d) outliers.  

TEMPORAL  DATA  MINING 

345

process on the following three steps: (1) the representation and modeling of the data 
sequence in a suitable form; (2) the deﬁ nition of similarity measures between sequences; 
and (3) the application of variety of new models and representations to the actual mining 
problems.   

   12.2.1  

  Temporal Data Representation 

 The  representation  of  temporal  data  is  especially  important  when  dealing  with  large 
volumes of data since direct manipulation of continuous, high - dimensional data in an 
efﬁ cient way is extremely difﬁ cult. There are a few ways this problem can be addressed. 

  Original Data or with Minimal Preprocessing      Use data as they are without 
or with minimal preprocessing. We preserve the characteristics of each data point when 
a model is built. The main disadvantage of this process is that it is extremely inefﬁ cient 
to build data - mining models with millions of records of temporal data, all of them with 
different values.  

  Windowing  and  Piecewise  Approximations      There is well - known psycho-
logical  evidence  that  the  human  eye  segments  smooth  curves  into  piecewise  straight 
lines. Based on this theory, there are a number of algorithms for segmenting a curve 
that represents a time series. Figure 12 .16  shows a simple example where it replaces 
the original nonlinear function with several piecewise linear functions. As shown in the 
ﬁ gure,  the  initial  real - valued  elements  (time  series)  are  partitioned  into  several  seg-
ments. Finding the required number of segments that best represent the original sequence 
is not trivial. An easy approach is to predeﬁ ne the number of segments. A more realistic 
approach  may  be  to  deﬁ ne  them  when  a  change  point  is  detected  in  the  original 
sequence. Another technique based on the same idea segments a sequence by iteratively 
merging  two  similar  segments.  Segments  to  be  merged  are  selected  based  on  the 
squared - error  minimization  criteria.  Even  though  these  methods  have  the  advantage 
of  ability  to  reduce  the  impact  of  noise  in  the  original  sequence,  when  it  comes  to 

1.5

1

0.5

0

–0.5

–1

–1.5

159

3
1

7
1

1
2

5
2

9
2

3
3

7
3

1
4

5
4

9
4

3
5

7
5

1
6

5
6

9
6

3
7

7
7

1
8

5
8

9
8

3
9

7
9

1.5

1

0.5

0

–0.5

–1

–1.5

C¢

C

159

3
1

7
1

1
2

5
2

9
2

3
3

7
3

1
4

5
4

9
4

3
5

7
5

1
6

5
6

9
6

3
7

7
7

1
8

5
8

9
8

3
9

7
9

(a)

(b)

     Figure  12.16.      Simpliﬁ ed  representation  of  temporal  data.  (a)  Piecewise  linear  approxima-
tion; (b) piecewise aggregate approximation.  

346 

ADVANCES  IN  DATA  MINING

real - world  applications  (e.g.,  sequence  matching)  differences  in  amplitudes  (scaling) 
and time - axis distortions are not addressed easily.   

 To  overcome  these  drawbacks,   Piecewise Aggregate Approximation   (PAA)  tech-
nique was introduced. It approximates the original data by segmenting the sequences 
into same - length sections and recording the mean value of these sections. A time - series 
 C  of length  n  is represented as  C     =    {c 1 , c 2 ,    . . .    , c n }. The task is to represent  C  as  C ′   
in a  w  - dimensional space (w    <     n ) by mean values of c i s in w equal - sized segments. The 
 i th element of  C ′   is calculated as a mean of all values in the segment:

×
w i

∑C
′ =
i

= × − +
j w i
(

)
1 1

c

i
j

,

1

≤ ≤
i

the number of segments

 For example, if the original sequence is C    =    { − 2,  − 4,  − 3,  − 1, 0, 1, 2, 1, 1, 0}, where 

n    =    |C|    =    10, and we decide to represent  C  in two sections of the same length, then

′ =

C

{
mean

(

− − − −
4
,

3 1 0
,

2
,

,

),

mean

}
1 2 1 1 0  
( ,
)
,
,

,

C

′ = −
{

, }2 1   

 Usually, PAA is visualized as a linear combination of box bases functions as illus-
trated in Figure 12 .16 b, where a continuous function is replaced with 10 discrete aver-
ages for each interval. 

 A  modiﬁ ed  PAA  algorithm,  which  is  called   Symbolic  Aggregate  Approximation  
(SAX), is proposed with the assumption that the original normalized time series,  C , has 
a  Gaussian  distribution  of  PAA  values.  SAX  deﬁ nes   “ break  points ”   in  the  Gaussian 
curve that will produce equal - sized areas below the curve. Formally, break points are 
a sorted list of numbers   B =
βα
 such that the areas under the Gaussian 
−
1
curve from   βi to   βi+1 are equal to 1/ α , and they are constant.  α  is a parameter of the 
methodology  representing  the  number  of  intervals.  These  break  points  can  be  deter-
mined  in  a  statistical  table.  For  example,  Figure  12 .17   gives  the  break  points  for   α  
values from 3 to 10. 

β β β
3
2

,…

,
1

,

,

Gaussian function = exp





– (x–b)2
2 × c2





1
0.8
0.6
0.4
0.2
0

3
.
1
–

2
.
1
–

1
.
1
–

1
–

9
.
0
–

8
.
0
–

7
.
0
–

6
.
0
–

5
.
0
–

4
.
0
–

3
.
0
–

2
.
0
–

1
.
0
–

0

1
.
0

2
.
0

3
.
0

4
.
0

5
.
0

6
.
0

7
.
0

8
.
0

91
.
0

1
.
1

2
.
1

3
.
1

a

3
–0.43
0.43

4
–0.67
0
0.67

βi
β1
β2
β3
β4
β5
β6
β7
β8
β9

5
–0.84
–0.25
0.52
0.84

6
–0.97
–0.43
0
0.43
0.97

7
–1.07
–0.57
–0.18
0.18
0.57
1.07

8
–1.15
–0.67
–0.32
0
0.32
0.67
1.15

9
–1.22
–0.76
–0.43
–0.14
0.14
0.43
0.76
1.22

10
–1.28
–0.84
–0.52
–0.25
0
0.25
0.52
0.84
1.28

β1 = –0.43

β2 = –0.43

(a)

(b)

     Figure 12.17.      SAX look - up table. (a) Break points in the Gaussian curve ( b     =    0, c  2     =    0.2) when 
 α     =    3; (b) SAX look - up table.  

   
  
   
   
TEMPORAL  DATA  MINING 

347

β2 = 0.43

β1 = –0.43

1.3
1.1
0.9
0.7
0.5
0.3
0.1
–0.1
–0.3
–0.5
–0.7
–0.9
–1.1
–1.3

1.5

1

0.5

0

0.5

–1

–1.5

c

c

c

c

b

c

b

c c

c

c

b

b

b

1 5 9

3
1

7
1

1
2

5
2

9
2

3
3

7
3

1
4

5
4

9
4

3
5

7
5

1
6

5
6

9
6

3
7

7
7

1
8

5
8

9
8

3
9

b
7
9

a

a

a

a

a

     Figure 12.18.      Transformation of PAA to SAX.  

 Once the break points are deﬁ ned along with the corresponding coding symbols 

for each interval, the sequence is discretized as follows:

   1.      Obtain the PAA averages of the time series.  
  2.      All  PAA  averages  in  the  given  interval  (  βi ,    βi+1 )  are  coded  with  a  speciﬁ c 
symbol for this interval. For example, if  α     =    3, all PAA averages less than the 
smallest break point ( − 0.43) are mapped to  “  a.  ”  All PAA coefﬁ cients less than 
the second break point but greater than ﬁ rst breakpoint ( − 0.43, 0.43) are mapped 
to   “  b , ”   and  all  average  values  larger  than  the  second  break  point  (0.43)  are 
mapped to  “  c.  ”  This process is illustrated in Figure 12 .18 .      

 It is assumed that the symbols  “  a , ”   “  b , ”  and  “  c  ”  are approximately equiprobable 
symbols in the representation of a time series. The original sequence is then represented 
as  a  concatenation  of  these  symbols,  which  is  known  as  a   “ word. ”   For  example,  the 
mapping from PAA ( C ′  ) to a word  C ″   is represented as  C ″      =    ( bcccccbaaaaabbccccbb ). 
The main advantage of the SAX method is that 100 different discrete numerical values 
in an initial discrete time series C is ﬁ rst reduced to 20 different (average) values using 
PAA, and then they are transformed into only three different categorical values using 
SAX.

=

   C

c c
{ ,
1

2

,

…

,

c
100

}

→ ′′ = ′
c c
{ ,
1

C

′
2

,

…

,

c

′ → ′′ =
20

C

}

f a b c
, }
{ ,

 The proposed approach is intuitive and simple, yet a powerful methodology in a 
simpliﬁ ed  representation  of  a  large  number  of  different  values  in  time  series.  The 
method  is  fast  to  compute  and  supports  different  distance  measures.  Therefore,  it  is 
applicable as a data - reduction step for different data - mining techniques.  

  Transformation - Based Representations      The main idea behind transformation -
 based techniques is to map the original data into a point of a more manageable domain. 

  
348 

ADVANCES  IN  DATA  MINING

One  of  the  widely  used  methods  is  the   Discrete  Fourier  Transformation   (DFT).  It 
transforms a sequence in the time domain to a point in the frequency domain. This is 
done by selecting the top - K frequencies and representing each sequence as a point in 
the K - dimensional space. One important property that is worth noting is that Fourier 
coefﬁ cients do not change under the shift operation. One problem with DFT is that it 
misses  the  important  feature  of  time  localization.  To  avoid  this  problem   Piecewise 
Fourier Transform  was proposed, but the size of the pieces introduced new problems. 
Large pieces reduce the power of multi - resolution, while modeling of low frequencies 
with small pieces does not always give expected representations. The  Discrete Wavelet 
Transformation  (DWT) has been introduced to overcome the difﬁ culties in DFT. The 
DWT  transformation  technique,  analogously  to  fast  Fourier  transformation,  turns  a 
discrete vector of function values with the length N into a vector of N wavelet coef-
ﬁ cients. Wavelet transformation is a linear operation and it is usually implemented as 
a recursion. The advantage of using DWT is its ability for multi - resolution representa-
tion of signals. It has the time - frequency localization property. Therefore, signals rep-
resented by wavelet transformations bear more information than that of DFT. 

 In some applications we need to retrieve objects from a database of certain shapes. 
Trends can often be reﬂ ected by specifying shapes of interest such as steep peaks, or 
upward and downward changes. For example, in a stock - market database we may want 
to retrieve stocks whose closing price contains a  head - and - shoulders  pattern, and we 
should be able to represent and recognize this shape. Pattern discovery can be driven 
by  a  template - based  mining  language  in  which  the  analyst  speciﬁ es  the  shape  that 
should be looked for.  Shape Deﬁ nition Language  (SDL) was proposed to translate the 
initial sequence with real - valued elements occurring in historical data into a sequence 
of symbols from a given alphabet. SDL is capable of describing a variety of queries 
about  the  shapes  found  in  the  database.  It  allows  the  user  to  create  his  or  her  own 
language with complex patterns in terms of primitives. More interestingly, it performs 
well  on  approximate  matching,  where  the  user  cares  only  about  the  overall  shape  of 
the sequence but not about speciﬁ c details. The ﬁ rst step in the representation process 
is  deﬁ ning  the  alphabet  of  symbols  and  then  translating  the  initial  sequence  to  a 
sequence of symbols. The translation is done by considering sample - to - sample transi-
tions, and then assigning a symbol of the described alphabet to each transition. 

 A signiﬁ cantly different approach is to convert a sequence into discrete representa-
tion by using  clustering . A sliding window of width  w  is used to generate subsequences 
from  the  original  sequence.  These  subsequences  are  then  clustered,  considering  the 
pattern  similarity  between  subsequences,  using  a  suitable  clustering  method,  for 
example, the  k  - nearest neighbor method. A different symbol is then assigned to each 
cluster. The  discrete  version  of  the  time  series  is  obtained  by  using  cluster  identities 
corresponding to the subsequence. For example, the original time sequence is deﬁ ned 
with integer values given in time: (1, 2, 3, 2, 3, 4, 3, 4, 3, 4, 5, 4, 5) as represented in 
Figure 12 .19 a. The Window width is deﬁ ned by three consecutive values, and samples 
of primitives are collected through the time series. After simpliﬁ ed clustering, the ﬁ nal 
set  of  three   “ frequent ”   primitive  shapes,  representing  cluster  centroids,  is  given  in 
Figure 12 .19 b. Assigning symbolic representation for these shapes, a 1 , a 2 , and a 3 , the 
ﬁ nal symbolic representation of the series will be (a 3 , a 2 , a 1 , a 1 , a 3 , a 2 ).     

TEMPORAL  DATA  MINING 

349

6

5

4

3

2

1

0

5

5

4

4

4

4

3

3

3

3

2

2

1

a1 =

a2 =

a3 =

t1

t2 t3 t4

t5 t6 t7 t8 t9 t10 t11 t12 t13

(a)

(b)

     Figure 12.19.      Clustering approach in primitive shapes discovery. (a) Time series; (b) primitive 
shapes after clustering.  

   12.2.2  

  Similarity Measures between Sequences 

 The  individual  elements  of  the  sequences  may  be  vectors  of  real  numbers  (e.g.,  in 
applications involving speech or audio signals) or they may be symbolic data (e.g., in 
applications involving gene sequences). After representing each sequence in a suitable 
form,  it  is  necessary  to  deﬁ ne  a  similarity  measure  between  sequences,  in  order  to 
determine if they match. Given two sequences T 1  and T 2 , we need to deﬁ ne an appro-
priate  similarity  function   Sim ,  which  calculates  the  closeness  of  the  two  sequences, 
denoted by  Sim (T 1 , T 2 ). Usually, the similarity measure is expressed in terms of inverse 
distance measure, and for various types of sequences and applications, we have numer-
ous  distance  measures.  An  important  issue  in  measuring  similarity  between  two 
sequences is the ability to deal with outlying points, noise in the data, amplitude dif-
ferences causing  scaling problems , and the existence of gaps and other time - distortion 
problems. The most straightforward distance measure for time series is the Euclidean 
distance and its variants, based on the common Lp - norms. It is used in time - domain 
continuous representations by viewing each sub - sequence with  n  discrete values as a 
point in R n . Besides being relatively straightforward and intuitive, Euclidean distance 
and  its  variants  have  several  other  advantages.  The  complexity  of  evaluating  these 
measures is linear; they are easy to implement, indexable with any access method, and, 
in  addition,  are  parameter - free.  Furthermore,  the  Euclidean  distance  is  surprisingly 
competitive with other more complex approaches, especially if the size of the training 
set/database is relatively large. However, since the mapping between the points of two 
time series is ﬁ xed, these distance measures are very sensitive to noise and misalign-
ments  in  time,  and  are  unable  to  handle  local - time  shifting,  that  is,  similar  segments 
that are out of phase. 

 When a sequence is represented as a sequence of discrete symbols of an alphabet, 
the similarity between two sequences is achieved most of the time by comparing each 
element of one sequence with the corresponding one in the other sequence. The best 
known such distance is the longest common subsequence (LCS) similarity, utilizing the 
search for the LCS in both sequences we are comparing, and normalized with the length 

350 

ADVANCES  IN  DATA  MINING

of the longer sequence. For example, if two sequences X and Y are given as X    =    {10, 
5, 6, 9, 22, 15, 4, 2} and Y    =    {6, 5, 10, 22, 15, 4, 2, 6, 8}, then the LCS is

   LCS  X Y(

,

= 22 15 4 2  
) { ,
,
, }

and normalized similarity measure is

,
   LCS similarity  X Y LCS X Y /

(

(

)

) max{ , }
X Y

,

=

= 4 9   
/

 In order to deal with noise, scaling, approximate values, and translation problems, 
a simple improvement consists of determining the pairs of sequence portions that agree 
in both sequences after some linear transformations are applied. It consists of determin-
ing if there is a linear function  f , such that one sequence can be approximately mapped 
into the other. In most applications involving determination of similarity between pairs 
of sequences, the sequences would be of different lengths. In such cases, it is not pos-
sible to blindly accumulate distances between corresponding elements of the sequences. 
This brings us to the second aspect of sequence matching, namely, sequence alignment. 
Essentially,  we  need  to  properly  insert   “ gaps ”   in  the  two  sequences  or  decide  which 
should be corresponding elements in the two sequences. There are many situations in 
which  such  symbolic  sequence  matching  problems  ﬁ nd  applications.  For  example, 
many biological sequences such as genes and proteins can be regarded as sequences 
over  a  ﬁ nite  alphabet.  When  two  such  sequences  are  similar,  it  is  expected  that  the 
corresponding biological entities have similar functions because of related biochemical 
mechanisms. The approach includes a similarity measure for sequences based on the 
concept of the edit distance for strings of discrete symbols. This distance reﬂ ects the 
amount  of  work  needed  to  transform  a  sequence  to  another,  and  is  able  to  deal  with 
different sequences length and gaps existence. Typical edit operations are insert, delete, 
and replace, and they may be included in the measure with the same or with different 
weights  (costs)  in  the  transformation  process.  The  distance  between  two  strings  is 
deﬁ ned as the least sum of edit operation costs that needs to be performed to transform 
one string into another. For example, if two sequences are given: X    =    {a, b, c, b, d, a, 
b, c} and Y    =    { b, b, b, d, b}, the following operations are applied to transform X into 
Y: delete (a), replace (c,b), delete (a), delete (c). The total number of operations in this 
case is four, and it represents non - normalized distance measure between two sequences.  

   12.2.3  

  Temporal Data Modeling 

 A   model   is  a  global,  high - level,  and  often  abstract  representation  of  data.  Typically, 
models are speciﬁ ed by a collection of model parameters that can be estimated from a 
given data set. It is possible to classify models as predictive or descriptive depending 
on the task they are performing. In contrast to the (global) model structure, a  temporal 
pattern  is a local model that makes a speciﬁ c statement about a few data samples in 
time. Spikes, for example, are patterns in a real - valued time series that may be of inter-
est. Similarly, in symbolic sequences, regular expressions represent well - deﬁ ned pat-
terns.  In  bioinformatics,  genes  are  known  to  appear  as  local  patterns  interspersed 
between chunks of noncoding DNA. Matching and discovery of such patterns are very 

TEMPORAL  DATA  MINING 

Condition

Input 0

Input 1

Current State

S2

S2

S1

S1

S1

S2

(a)

351

0

S2

0

S1

1

1
(b)

     Figure 12.20.      Finite - state machine. (a) State - transition table; (b) state - transition diagram.  

useful in many applications, not only in bioinformatics. Due to their readily interpre-
table structure, patterns play a particularly dominant role in data mining. There have 
been many techniques used to model global or local temporal events. We will introduce 
only some of the most popular modeling techniques. 

  Finite State Machine (FSM)  has a set of states and a set of transitions. A state may 
have transitions to other states that are caused by fulﬁ lling some conditions within the 
state. An FSM must have an initial state, usually drawn with an arrow, and it is a state 
that provides a starting point of the model. Inputs to the states, in our case representing 
symbols in a sequence, act as triggers for the transition from one state to another state. 
An accept state, which is also known as ﬁ nal state, is usually represented by a double 
circle in a graph representation. The machine reaches the ﬁ nal state when it has per-
formed  the  procedure  successfully,  or  in  our  case  recognized  a  sequence  pattern. An 
FSM  can  be  represented  using  a  state - transition  table  or  state - transition  diagram. 
Figures  12.20 a,b shows both of these representations for a modeling recognition of a 
binary number with an even number of ones. FSM does not work very well when the 
transitions are not precise and does not scale well when the set of symbols for sequence 
representation is large.   

  Markov Model (MM)  extends the basic idea behind FSM. Both FSM and MM are 
directed graphs. As with FSM, MM always has a current state. Start and end nodes are 
drawn for illustrative purposes and need not be present. Unlike in FSM, transitions are 
not associated with speciﬁ c input values. Arcs carry a probability value for transition 
from one state to another. For example, the probability that transition from state  “ Start ”  
to  “ S1 ”  is 0.4 and the probability of staying in the  “ Start ”  state is 0.6. The sum of the 
probability values coming out of each node should be 1. MM shows only transitions with 
probability greater than 0. If a transition is not shown, it is assumed to have a probability 
of 0. The probabilities are combined to determine the ﬁ nal probability of the pattern 
produced by the MM. For example, with the MM shown in Figure 12 .21 , the probability 
that the MM takes the horizontal path from starting node to S2 is 0.4    ×    0.7    =    0.28.   

 MM is derived based on the memoryless assumption. It states that given the current 
state  of  the  system,  the  future  evolution  of  the  system  is  independent  of  its  history. 
MMs have been used widely in speech recognition and natural language processing. 

  Hidden  Markov  Model  (HMM)   is  an  extension  to  MM.  Similar  to  MM,  HMM 
consists of a set of states and transition probabilities. In a regular MM, the states are 

352 

ADVANCES  IN  DATA  MINING

0.3

S1

0.4

1.0

S2

0.7

     Figure 12.21.      A simple Markov Model.  

0.7

S1
(H)

0.3

S2
(T)

0.7

0.3

(a)

0.5

0.3

S1
(Coin 1)

P(H) = 0.5
P(T) = 0.5

0.7

0.5

(b)

S2
(Coin 2)

P(H) = 0.3
P(T) = 0.7

     Figure 12.22.      Markov Model versus hidden Markov Model. (a) One - coin model; (b) two - coin 
model.  

visible to the observer, and the state - transition probabilities are the only parameters. In 
HMM,  each  state  is  associated  with  a  state - probability  distribution.  For  example, 
assume  that  we  were  given  a  sequence  of  events  in  a  coin  toss:  O    =    (HTTHTHH), 
where  H    =    Head  and  T    =    Tail.  But  additional  information  is  necessary.  What  is  not 
given is the sequence generated with one or two coins. According to the above deﬁ ni-
tions, Figure 12 .22  shows two possible models. Figure 12 .22 a assumes that only one 
coin was tossed. We can model this system as an MM with a two - state model, where 
Head and Tail are the two states with the same initial probabilities. The probability of 
the sequence O is P(O)    =    0.5    ×    0.7    ×    0.3    ×    0.7    ×    0.3    ×    0.7    ×    0.7    =    0.0108.   

 Another  possibility  for  explaining  the  observed  sequence  is  shown  in  Figure 
12 .22 b. There are again two states in this model, and each state corresponds to a sepa-
rate biased coin being tossed. Each state has its own probability distribution of Heads 
and Tails, and therefore the model is represented as an HMM. Obviously, in this model 
we have several  “ paths ”  to determine the probability of the sequence. In other words, 
we can start with tossing one or another coin, and continue with this selection. In all 
these  cases,  composite  probability  will  be  different.  In  this  situation,  we  may  search 
for the maximum probability of the sequence O in the HMM. HMM may be formalized 
as  a  directed  graph  with   V   vertices  and   A   arcs.  Set  V    =    {v 1 ,  v 2 ,    . . .    ,  v n }  represents 
states, and matrix A    =    {a ij } represents transition - probability distribution, where a ij  is the 
transitional  probability  from  state  i  to  state  j.  Given  a  set  of  possible  observations 
O    =    {o 1 , o 2 ,    . . .    , o m } for each state v i , the probability of seeing each observation in the 
sequence is given by Bi    =    {o i1 , o i2 ,    . . .    , o im }. The initial - state distribution is represented 
as  σ , which determines the starting state at time  t     =    0.  

TEMPORAL  DATA  MINING 

353

   12.2.4  

  Mining Sequences 

 Temporal  data - mining  tasks  include  prediction,  classiﬁ cation,  clustering,  search  and 
retrieval,  and  pattern  discovery.  The  ﬁ rst  four  have  been  investigated  extensively  in 
traditional time - series analysis, pattern recognition, and information retrieval. We will 
concentrate in this text on illustrative examples of algorithms for pattern discovery in 
large databases, which are of more recent origin and showing wide applicability. The 
problem  of  pattern  discovery  is  to  ﬁ nd  and  evaluate  all   “ interesting ”   patterns  in  the 
data. There are many ways of deﬁ ning what constitutes a pattern in the data and we 
shall discuss some generic approaches. There is no universal notion for interestingness 
of a pattern either. However, one concept that is found very useful in data mining is 
that of frequent patterns. A frequent pattern is one that occurs many times in the data. 
Much of the data - mining literature is concerned with formulating useful pattern struc-
tures  and  developing  efﬁ cient  algorithms  for  discovering  all  patterns  that  occur  fre-
quently in the data. 

 A pattern is a local structure in the database. In the sequential - pattern framework, 
we are given a collection of sequences, and the task is to discover sequences of items 
called  sequential  patterns  that  occur  in  sufﬁ ciently  many  of  those  sequences.  In  the 
frequent episodes analysis, the data set may be given in a single long sequence or in a 
large set of shorter sequences. An  event sequence  is denoted by {( E  1 ,  t  1 ), ( E  2 ,  t  2 ),   . . .  , 
( E  n ,  ,  t  n )}, where  E i   takes values from a ﬁ nite set of event types  E , and  t i   is an integer 
denoting the time stamp of the  i  th  event. The sequence is ordered with respect to the 
time stamps so that  t i      ≤     t i       +      1  for all  i     =    1, 2,    . . .    ,  n.  The following is an example event 
sequence S with 10 events in it:

   S

= {(

,
A

2

), ( ,
B

3
), (

,
A

7

), ( ,
C

8

), ( ,
B

9

), (

,
D

11

), ( ,
C

12

), (

,
A

13

), ( ,
B

144

C
), ( ,

15

)}

 An episode is a partially ordered set of events. When the order among the events 
of an episode is total, it is called a  serial  episode, and when there is no order at all, the 
episode is called a  parallel  episode. For example, ( A     →     B     →     C ) is a three - node serial 
episode.  The  arrows  in  our  notation  serve  to  emphasize  the  total  order.  In  contrast, 
parallel episodes are somewhat similar to itemsets, and so, we can denote a three - node 
parallel episode with event types  A ,  B , and  C , as ( ABC ). 

 An  episode  is  said  to   occur   in  an  event  sequence  if  there  exist  events  in  the 
sequence occurring with exactly the same order as that prescribed in the episode. For 
instance, in the example the events ( A,  2), ( B,  3) and ( C,  8) constitute an occurrence 
of the serial episode ( A     →     B     →     C ) while the events ( A,  7), ( B,  3), and ( C,  8) do not, 
because for this serial episode to occur,  A  must occur before  B  and  C . Both these sets 
of events, however, are valid occurrences of the parallel episode ( ABC ), since there are 
no  restrictions  with  regard  to  the  order  in  which  the  events  must  occur  for  parallel 
episodes. Let   α   and   β   be two episodes.   β   is said to be a  sub - episode  of   α   if all the event 
types in   β   appear in   α   as well, and if the partial order among the event types of   β   is 
the  same  as  that  for  the  corresponding  event  types  in    α  .  For  example,  ( A     →     C )  is  a 
two - node sub - episode of the serial episode ( A     →     B     →     C ) while ( B     →     A ) is not. In case 
of parallel episodes, this order constraint is not required. 

  
354 

ADVANCES  IN  DATA  MINING

 The  sequential  pattern - mining  framework  may  extend  the  frequent  itemsets  idea 
described in the chapter on association rules with temporal order. The database  D of 
itemsets  is considered no longer just some unordered collection of transactions. Now, 
each transaction in  D  carries a time stamp as well as a customer ID. Each transaction, 
as  earlier,  is  simply  a  collection  of  items.  The  transactions  associated  with  a  single 
customer can be regarded as a sequence of itemsets ordered by time, and  D  would have 
one such transaction sequence corresponding to each customer. Consider an example 
database with ﬁ ve customers whose corresponding transaction sequences are as follows: 

   Customer ID  

   Transaction Sequence  

  1  
  2  
  3  
  4  
  5  

  ({ A,B }{ A,C,D }{ B,E })  
  ({ D,G } { A,B,E,H })  
  ({ A }{ B,D }{ A,B,E,F }{ G,H })  
  ({ A }{ F })  
  ({ A,D } { B,E,G,H } { F })  

 Each customer ’ s transaction sequence is enclosed in angular braces, while the items 
bought in a single transaction are enclosed in round braces. For example, customer 3 
made four visits to the supermarket. In his/her ﬁ rst visit he/she bought only item  A , in 
the second visit items  B  and  D , and so on. 

 The temporal patterns of interest are sequences of itemsets. A sequence  S  of item-
sets  is  denoted  by  { s  1    s  2    ·    ·    ·    s n  },  where   s j    is  an  itemset.  Since   S   has   n   itemsets,  it  is 
called an  n  - sequence. A sequence  A     =    { a  1   a  2   ·   ·   ·   a n  } is said to be  contained in  another 
sequence  B     =    { b  1   b  2   ·   ·   ·   b m  } if there exist integers  i  1     <     i  2      <      ·   ·   ·      <      i n   such that  a  1     ⊆     b i   1  , 
a  2     ⊆     b i   2  , . . ., a n      ⊆     b in  . That is, an  n  - sequence  A  is contained in a sequence  B  if there 
exists an  n  - length subsequence in  b , in which each itemset contains the corresponding 
itemsets of  a . For example, the sequence { (A)(BC) } is contained in { (AB) (F) (BCE) 
(DE) } but not in { (BC) (AB) (C) (DEF) }. Further, a sequence is said to be  maximal  in 
a set of sequences, if it is not contained in any other sequence. In the set of example 
customer - transaction sequences listed above, all are maximal (with respect to the given 
set of sequences) except the sequence of customer 4, which is contained in transaction 
sequences of customers 3 and 5. 

 The Apriori  algorithm  described  earlier  can  be  used  to  ﬁ nd  frequent  sequences, 
except that there is a small difference in the deﬁ nition of support. Earlier, the support 
of an itemset was deﬁ ned as the fraction of  all  transactions that contained the itemset. 
Now, the  support  for any arbitrary sequence  A  is the fraction of customer transaction 
sequences in the database  D , which contains  A . For our example database, the sequence 
{ (D)(GH) } has a support of 0.4, since it is contained in two out of the ﬁ ve transaction 
sequences (namely, that of customer 3 and customer 5). The user speciﬁ es a minimum 
support threshold. Any sequence of itemsets with support greater than or equal to the 
threshold value is called a  large  sequence. If a sequence  A  is large and maximal, then 
it is regarded as a  sequential pattern . The process of frequent episode discovery is an 

     
B

A

S3

S4

A

355

*

S5

TEMPORAL  DATA  MINING 

*

S1

A

*

A

S2

*

B

*

     Figure 12.23.      FSA for the sequence A    →    B    →    A    →    A.  * , any other symbol.  

Apriori - style  iterative  algorithm  that  starts  with  discovering  frequent  one - element 
sequences.  These  are  then  combined  to  form  candidate  two - element  sequences,  and 
then by counting their frequencies, two - element frequent sequences are obtained. This 
process  is  continued  till  frequent  sequences  of  all  lengths  are  found.  The  task  of  a 
sequence mining is to systematically discover all sequential patterns in database  D . 

 Counting frequencies of parallel itemsets is straightforward and described in tra-
ditional  algorithms  for  frequent  itemsets  detection.  Counting  serial  itemsets,  on  the 
other  hand,  requires  more  computational  resources.  For  example,  unlike  for  parallel 
itemsets, we need ﬁ nite - state automata to recognize serial episodes. More speciﬁ cally, 
an  appropriate   l  - state  automaton  can  be  used  to  recognize  occurrences  of  an   l  - node 
serial sequence. For example, for the sequence  (A     →     B    →    A    →    A) , there would be a 
ﬁ ve - state automaton (FSA) given in Figure 12 .23 . It transits from its ﬁ rst state on seeing 
an event of type  A  and then waits for an event of type  B  to transit to its next state, and 
so on. We need such automata for each episode whose frequency is being counted.   

 While  we  described  the  framework  using  an  example  of  mining  a  database  of 
customer transaction sequences for temporal buying patterns, this concept of sequential 
patterns is quite general and can be used in many other situations as well. Indeed, the 
problem  of  motif  discovery  in  a  database  of  protein  sequences  can  also  be  easily 
addressed  in  this  framework.  Another  example  is  Web - navigation  mining.  Here  the 
database contains a sequence of Web sites that a user navigates through in each brows-
ing session. Sequential pattern mining can be used to discover sequences of Web sites 
that are frequently visited. Temporal associations are particularly appropriate as candi-
dates for causal rules ’  analysis in temporally related medical data, such as in the his-
tories of patients ’  medical visits. Patients are associated with both static properties, such 
as gender, and temporal properties, such as age, symptoms, or current medical treat-
ments. Adapting this method to deal with temporal information leads to some different 
approaches. A possible extension is a new meaning for a typical association rule X    ≥    Y. 
It states now that if X occurs, then Y will occur within time T. Stating a rule in this 
new form allows for controlling the impact of the occurrence of one event to the other 
event  occurrence,  within  a  speciﬁ c  time  interval.  In  case  of  the  sequential  patterns 
framework some generalizations are proposed to incorporate minimum and maximum 
time - gap constraints between successive elements of a sequential pattern. 

356 

ADVANCES  IN  DATA  MINING

 Mining continuous data streams is a new research topic related to temporal data 
mining that has recently received signiﬁ cant attention. The term  “ data stream ”  pertains 
to data arriving over time, in a nearly continuous fashion. It is often a fast - changing 
stream with a huge number of multidimensional data (Fig.  12.24 ). Data are collected 
close to their source, such as sensor data, so they are usually with a low level of abstrac-
tion. In streaming data - mining applications, the data are often available for mining only 
once, as it ﬂ ows by. That causes several challenging problems, including how to aggre-
gate  the  data,  how  to  obtain  scalability  of  traditional  analyses  in  massive,  heteroge-
neous,  nonstationary  data  environment,  and  how  to  incorporate  incremental  learning 
into a data - mining process. Linear, single - scan algorithms are still rare in commercial 
data - mining tools, but also still challenged in a research community. Many applications, 
such  as  network  monitoring,  telecommunication  applications,  stock  market  analysis, 
bio - surveillance systems, and distribute sensors depend critically on the efﬁ cient pro-
cessing and analysis of data streams. For example, a frequent itemset - mining algorithm 
over data stream is developed. It is based on an incremental algorithm to maintain the 
FP  stream,  which  is  a  tree  data  structure  to  represent  the  frequent  itemsets  and  their 
dynamics in time.   

 Ubiquitous Data Mining (UDM) is an additional new ﬁ eld that deﬁ nes a process 
of performing analysis of data on mobile, embedded, and ubiquitous devices. It repre-
sents the next generation of data - mining systems that will support the intelligent and 
time - critical information needs of mobile users and will facilitate  “ anytime, anywhere ”  
data  mining.  It  is  the  next  natural  step  in  the  world  of  ubiquitous  computing.  The 
underlying  focus  of  UDM  systems  is  to  perform  computationally  intensive  mining 

Trajectories of Centroids of Moving Hand in Video Stream

N
O
I
T
I
S
O
P
-
X

160

140

120

100

80

60

40

0

5

10

15

Time

20

25

30

     Figure 12.24.      Multidimensional streams.  

SPATIAL  DATA  MINING  (SDM) 

357

techniques  in  mobile  environments  that  are  constrained  by  limited  computational 
resources  and  varying  network  characteristics. Additional  technical  challenges  are  as 
follows:  How  to  minimize  energy  consumption  of  the  mobile  device  during  the  data 
mining process; how to present results on relatively small screens; and how to transfer 
data mining results over a wireless network with a limited bandwidth?   

   12.3  

  SPATIAL DATA MINING ( SDM ) 

 SDM is the process of discovering interesting and previously unknown but potentially 
useful information from large spatial data sets. Spatial data carries topological and/or 
distance information, and it is often organized in databases by spatial indexing struc-
tures and accessed by spatial access methods. The applications covered by SDM include 
geomarketing, environmental studies, risk analysis, remote sensing, geographical infor-
mation systems (GIS), computer cartography, environmental planning, and so on. For 
example, in geomarketing, a store can establish its trade area, that is, the spatial extent 
of its customers, and then analyze the proﬁ le of those customers on the basis of both 
their properties and the area where they live. Simple illustrations of SDM results are 
given in Figure 12 .25 , where (a) shows that a ﬁ re is often located close to a dry tree 
and a bird is often seen in the neighborhood of a house, while (b) emphasizes a signiﬁ -
cant trend that can be observed for the city of Munich, where the average rent decreases 
quite regularly when moving away from the city. One of the main reasons for develop-
ing  a  large  number  of  spatial  data - mining  applications  is  the  enormous  amount  of 
special data that are collected recently at a relatively low price. High spatial and spectral 
resolution remote - sensing systems and other environmental monitoring devices gather 

Munich

0

10

20

30

40
(a)

50

60

70

80

(b)

     Figure 12.25.      Illustrative examples of spatial data - mining results. (a) Example of collocation 
spatial  data  mining  (Shekhar  and  Chawla,   2003 );  (b)  average  rent  for  the  communities  of 
Bavaria (Ester et al.,  1997 ).  

358 

ADVANCES  IN  DATA  MINING

Input 

Statistical 
foundation 
Output 

Traditional Data Mining 

Spatial Data Mining 

Simple types 
Explicit relationship 
Independence of samples 

Complex types 
Implicit relationships 
Spatial autocorrelation 

Set-based interest measures 
e.g., classification accuracy 

Spatial interest measures 
e.g., spatial accuracy 

     Figure 12.26.      Main differences between traditional data mining and spatial data mining.  

vast amounts of geo - referenced digital imagery, video, and sound. The complexity of 
spatial  data  and  intrinsic  spatial  relationships  limits  the  usefulness  of  conventional 
data - mining techniques for extracting spatial patterns.   

 One  of  the  fundamental  assumptions  of  data - mining  analysis  is  that  the  data 
samples  are  independently  generated.  However,  in  the  analysis  of  spatial  data,  the 
assumption about the independence of samples is generally false. In fact, spatial data 
tends to be highly self - correlated. Extracting interesting and useful patterns from spatial 
data  sets  is  more  difﬁ cult  than  extracting  corresponding  patterns  from  traditional 
numeric and categorical data due to the complexity of spatial data types, spatial rela-
tionships,  and  spatial  autocorrelation.  The  spatial  attributes  of  a  spatial  object  most 
often include information related to spatial locations, for example, longitude, latitude 
and elevation, as well as shape. Relationships among nonspatial objects are explicit in 
data  inputs,  for  example,  arithmetic  relation,  ordering,  is  an  instance  of,  subclass  of, 
and membership of. In contrast, relationships among spatial objects are often implicit, 
such as overlap, intersect, close, and behind. Proximity can be deﬁ ned in highly general 
terms, including distance, direction and/or topology. Also, spatial heterogeneity or the 
nonstationarity of the observed variables with respect to location is often evident since 
many space processes are local. Omitting the fact that nearby items tend to be more 
similar than items situated apart causes inconsistent results in the spatial data analysis. 
In summary, speciﬁ c features of spatial data that preclude the use of general - purpose 
data - mining  algorithms  are:  (1)  rich  data  types  (e.g.,  extended  spatial  objects),  (2) 
implicit  spatial  relationships  among  the  variables,  (3)  observations  that  are  not  inde-
pendent, and (4) spatial autocorrelation among the features (Fig.  12.26 ). 

 One  possible  way  to  deal  with  implicit  spatial  relationships  is  to  materialize  the 
relationships into traditional data input columns and then apply classical data - mining 
techniques. However, this approach can result in loss of information. Another way to 
capture implicit spatial relationships is to develop models or techniques to incorporate 
spatial  information  into  the  spatial  data - mining  process.  A  concept  within  statistics 
devoted to the analysis of spatial relations is called spatial autocorrelation. Knowledge -
 discovery techniques, which ignore spatial autocorrelation, typically perform poorly in 
the presence of spatial data. 

 The spatial relationship among locations in a spatial framework is often modeled 
via  a  contiguity  matrix.  A  simple  contiguity  matrix  may  represent  a  neighborhood 
relationship deﬁ ned using adjacency. Figure 12 .27 a shows a gridded spatial framework 
with  four  locations,  A,  B,  C,  and  D.  A  binary  matrix  representation  of  a  four -

  
SPATIAL  DATA  MINING  (SDM) 

359

A

C

B

D

A

B C D

0

1

1

0

1

0

0

1

1

0

0

1

0

1

1

0

A

B

C

D

A

0

0.5

0.5

B

C

0.5

0.5

0

0

0

0

D

0

0.5

0.5

0

0.5

0.5

0

A

B

C

D

(a)

(b)

(c)

     Figure 12.27.      Spatial framework and its four - neighborhood contiguity matrix.  

 neighborhood relationship is shown in Figure 12 .27 b. The row - normalized representa-
tion of this matrix is called a contiguity matrix, as shown in Figure 12 .27 c. The essential 
idea is to specify the pairs of locations that inﬂ uence each other along with the relative 
intensity of interaction.   

 SDM consists of extracting knowledge, spatial relationships, and any other proper-
ties that are not explicitly stored in the database. SDM is used to ﬁ nd implicit regulari-
ties,  and  relations  between  spatial  data  and/or  nonspatial  data.  In  effect,  a  spatial 
database  constitutes  a  spatial  continuum  in  which  properties  concerning  a  particular 
place are generally linked and explained in terms of the properties of its neighborhood. 
In this section, we introduce as illustrations of SDM two important characteristics and 
often used techniques: (1) spatial autoregressive (SAR) modeling, and (2) spatial outli-
ers ’  detection using variogram - cloud technique.

   1.       The  SAR  model   is  a  classiﬁ cation  technique  that  decomposes  a  classiﬁ er  into 
two parts, spatial autoregression and logistic transformation. Spatial dependen-
cies  are  modeled  using  the  framework  of  logistic  regression  analysis.  If  the 
spatially  dependent  values  y i   are  related  to  each  other,  then  the  traditional 
regression equation can be modiﬁ ed as

ρ
   y Wy X

=

+

β ε  
+

 where  W  is the neighborhood relationship contiguity matrix and   ρ   is a parameter 
that  reﬂ ects  the  strength  of  the  spatial  dependencies  between  the  elements  of 
the dependent variable. After the correction term   ρ Wy  is introduced, the com-
ponents  of  the  residual  error  vector   ε   are  then  assumed  to  be  generated  from 
independent and identical standard normal distributions. As in the case of clas-
sical  regression,  the  proposed  equation  has  to  be  transformed  via  the  logistic 
function  for  binary  dependent  variables,  and  we  refer  to  this  equation  as  the 
SAR  model.  Notice  that  when    ρ      =    0,  this  equation  collapses  to  the  classical 
regression model. If the spatial autocorrelation coefﬁ cient is statistically signiﬁ -
cant, then SAR will quantify the presence of spatial autocorrelation in the clas-
siﬁ cation model. It will indicate the extent to which variations in the dependent 
variable ( y ) are inﬂ uenced by the average of neighboring observation values.  
  2.       A  spatial  outlier   is  a  spatially  referenced  object  whose  nonspatial  attribute 
values differ signiﬁ cantly from those of other spatially referenced objects in its 

360 

ADVANCES  IN  DATA  MINING

Sample
S1
S2
S3
S4
S5
S6

X-C
1
3
2
5
2
1

Y-C
2
4
1
3
2
1

AT-1
8
2
4
3
7
6

AT-2
4
6
2
2
4
5

AT-3
1
4
4
5
2
1

(a)

Samples
compared

Spatial
distance

Distance of
samples

S3 – S6

S3 – S5

S1 – S3

4.69

4.12

5.39

1.0

1.0

1.41

(b)

     Figure  12.28.      An  example  of  a  variogram - cloud  graph.  (a)  Spatial  data  set;  (b)  a  critical 
sample ’ s relations in a variogram - cloud.  

spatial neighborhood. This kind of outlier shows a local instability in values of 
nonspatial attributes. It represents spatially referenced objects whose nonspatial 
attributes are extreme relative to its neighbors, even though the attributes may 
not  be  signiﬁ cantly  different  from  the  entire  population.  For  example,  a  new 
house in an old neighborhood of a growing metropolitan area is a spatial outlier 
based on the nonspatial attribute house age.    

 A variogram - cloud technique displays data points related by neighborhood 
relationships. For each pair of samples, the square - root of the absolute differ-
ence  between  attribute  values  at  the  locations  versus  the  Euclidean  distance 
between  the  locations  is  plotted.  In  data  sets  exhibiting  strong  spatial  depen-
dence,  the  variance  in  the  attribute  differences  will  increase  with  increasing 
distance  between  locations.  Locations  that  are  near  to  one  another,  but  with 
large  attribute  differences,  might  indicate  a  spatial  outlier,  even  though  the 
values  at  both  locations  may  appear  to  be  reasonable  when  examining  the 
dataset  nonspatially.  For  example,  the  spatial  data  set  is  represented  with  six 
ﬁ ve - dimensional samples given in Figure 12 .28 a. Traditional nonspatial analy-
sis will not discover any outliers especially because the number of samples is 
relatively small. However, after applying a variogram - cloud technique, assum-
ing that the ﬁ rst two attributes are X - Y spatial coordinates, and the other three 
are  characteristics  of  samples,  the  conclusion  could  be  signiﬁ cantly  changed. 
Figure 12 .29  shows the variogram - cloud for this data set. This plot has some 
pairs of points that are out of main dense region of common distances.   

 Computation of spatial distances and distances of samples, as a part of a 
variogram technique, shows that there is a sample spatially relatively close to 
a group of other samples (small space distances) but with very high distances 
in other nonspatial attributes. This is the sample S3, which is spatially close to 
samples S1, S5, and S6. Coordinates of these samples and corresponding dis-
tances  are  given  in  Figure  12 .28 b,  selecting  S3  as  a  candidate  for  an  outlier. 
Visualization of these and other relations between samples through a variogram 
shows the same results.  

   12.4  

  DISTRIBUTED DATA MINING ( DDM ) 

 The  emergence  of  tremendous  data  sets  creates  a  growing  need  for  analyzing  them 
across geographical lines using distributed systems. These developments have created 

DISTRIBUTED  DATA  MINING  (DDM) 

361

e
c
n
a
t
s
i
d
l
a
i
t
a
p
S

3.00

2.50

2.00

1.50

1.00

0.50

0.00

Variogram cloud

(S1;S3)

(S3;S5)

(S3;S6)

0.00

1.00

2.00

5.00
3.00
4.00
Distance of samples

6.00

7.00

8.00

     Figure 12.29.      A variogram - cloud technique discovers an outlier.  

unprecedented opportunities for a large - scale data - driven knowledge discovery, as well 
as  the  potential  for  fundamental  gains  in  scientiﬁ c  and  business  understanding. 
Implementations of data - mining techniques on high - performance distributed computing 
platforms are moving away from centralized computing models for both technical and 
organizational reasons. In some cases, centralization is hard because it requires these 
multi - terabyte data sets to be transmitted over very long distances. In others, centraliza-
tion violates privacy legislation, exposes business secrets, or poses other social chal-
lenges. Common examples of such challenges arise in medicine, where relevant data 
might  be  spread  among  multiple  parties,  in  commercial  organizations  such  as  drug 
companies  or  hospitals,  government  bodies  such  as  the  U.S.  Food  and  Drug 
Administration, and nongovernment organizations such as charities and public - health 
organizations.  Each  organization  is  bound  by  regulatory  restrictions,  such  as  privacy 
legislation, or corporate requirements on proprietary information that could give com-
petitors  a  commercial  advantage.  Consequently,  a  need  exists  for  developing  algo-
rithms,  tools,  services,  and  infrastructure  that  let  us  mine  data  distributed  across 
organizations while preserving privacy. 

 This shift toward intrinsically distributed, complex environments has prompted a 
range of new data - mining challenges. The added dimension of distributed data signiﬁ -
cantly increases the complexity of the data - mining process. Advances in computing and 
communication  over  wired  and  wireless  networks  have  resulted  in  many  pervasive 
distributed computing environments. Many of these environments deal with different 
distributed sources of voluminous data, multiple compute nodes, and distributed user 
community.  Analyzing  and  monitoring  these  distributed  data  sources  require  a  new 
data - mining technology designed for distributed applications. The ﬁ eld of DDM deals 
with  these  problems — mining  distributed  data  by  paying  careful  attention  to  the  dis-
tributed resources. In addition to data being distributed, the advent of the Internet has 
led to increasingly complex data, including natural - language text, images, time series, 
sensor data, and multi - relational and object data types. To further complicate matters, 
systems with distributed streaming data need incremental or online mining tools that 

 
362 

ADVANCES  IN  DATA  MINING

require a complete process whenever a change is made to the underlying data. Data -
 mining  techniques  involved  in  such  a  complex  environment  must  encounter  great 
dynamics due to changes in the system, and it can affect the overall performance of the 
system.  Providing  support  for  all  these  features  in  DDM  systems  requires  novel 
solutions. 

 The Web architecture, with layered protocols and services, provides a sound frame-
work for supporting DDM. The new framework embraces the growing trend of merging 
computation with communication. DDM accepts the fact that data may be inherently 
distributed among different loosely coupled sites, often with heterogeneous data, and 
connected  by  a  network.  It  offers  techniques  to  discover  new  knowledge  through 
distributed  data  analysis  and  modeling  using  minimal  communication  of  data. Also, 
interactions in a distributed system need to be implemented in a reliable, stable, and 
scalable way. Ultimately, systems must be able to hide this technological complexity 
from  users. 

 Today, the goods that are able to be transacted through e - services are not restricted 
to  real  entities  such  as  electronics,  furniture,  or  plane  tickets.  The  Internet  and  the 
WWW  evolve  to  include  also  resources  such  as  software,  computation  abilities,  or 
useful data sets. These new resources are potentially able to be sold or rented to clients 
as services for Internet users. Data mining is emerging as intuitively suitable for being 
delivered as an e - service because the approach reduces the high cost of setting up and 
maintaining  infrastructure  of  supporting  technologies.  To  efﬁ ciently  and  effectively 
deliver data mining as a service in the WWW, Web - service technologies are introduced 
to provide layers of abstractions and standards above existing software systems. These 
layers are capable of bridging any operating system, hardware platform, or program-
ming language, just as the Web does. The natural extension for these services is grid 
computing. The grid is a distributed computing infrastructure that enables coordinated 
resource  sharing  within  dynamic  organizations  consisting  of  individuals,  institutions, 
and resources. The main aim of grid computing is to give organizations and application 
developers  the  ability  to  create  distributed  computing  environments  that  can  utilize 
computing resources on demand. Grid computing can leverage the computing power 
of  a  large  numbers  of  server  computers,  desktop  PCs,  clusters,  and  other  kinds  of 
hardware. Therefore, it can help increase efﬁ ciencies and reduce the cost of computing 
networks by decreasing data processing time and optimizing resources and distributing 
workloads. Grid allows users to achieve much faster results on large operations and at 
lower costs. Recent development and applications show that the grid technology rep-
resents a critical infrastructure for high - performance DDM and knowledge discovery. 
This technology is particularly suitable for applications that typically deal with very a 
large  amount  of  distributed  data  such  as  retail  transactions,  scientiﬁ c  simulation,  or 
telecommunication data that cannot be analyzed on traditional machines in acceptable 
times. As the grid is becoming a well - accepted computing infrastructure in science and 
industry, it provides more general data - mining services, algorithms, and applications. 
This framework helps analysts, scientists, organizations, and professionals to leverage 
grid capacity in supporting high - performance distributed computing for solving their 
data - mining  problem  in  a  distributed  way.  The  creation  of  the  so - called   Knowledge 
Grids  on top of data and computational grids is the condition for meeting the challenges 

DISTRIBUTED  DATA  MINING  (DDM) 

363

posed  by  the  increasing  demand  for  power  and  abstractions  coming  from  complex 
data - mining scenarios in business, science, and engineering. 

 It  is  not  only  that  DDM  infrastructure  is  changing  by  offering  new  approaches 
through Web services together with the grid technology. Basic data - mining algorithms 
also need changes in a distributed environment. Most off - the - shelf data - mining systems 
are designed to work as a monolithic centralized application. They normally download 
the relevant data to a centralized location and then perform the data - mining operations. 
This  centralized  approach  does  not  work  well  in  many  of  the  emerging  distributed, 
ubiquitous,  possibly  privacy - sensitive  data - mining  applications.  A  primary  goal  of 
DDM algorithms is to achieve the same or similar data - mining result as a centralized 
solution  without  moving  data  from  their  original  locations. The  distributed  approach 
assumes that local computation is done on each of the sites, and either a central site 
communicates with each distributed site to compute the global model, or a peer - to - peer 
architecture is used. In the latter case, individual nodes perform most of the tasks by 
communicating  with  neighboring  nodes  by  message  passing  over  an  asynchronous 
network. Illustrative examples are networks of independent and intelligent sensors that 
are connected to each other in an ad hoc fashion. Some features of a distributed mining 
scenario are as follows:

    (cid:127)       The system consists of multiple independent sites of data and computation.  
   (cid:127)       Sites  exchange  their  results  by  communicating  with  other  sites,  often  through 

message passing.  

   (cid:127)       Communication  between  the  sites  is  expensive  and  often  represents  a 

bottleneck.  

   (cid:127)       Sites have resource constraints, for example, battery power in distributed sensors 

systems.  

   (cid:127)       Sites have privacy and/or security concerns.  
   (cid:127)       The  system  should  have  the  ability  to  efﬁ ciently  scale  up  because  distributed 

systems today may consist of millions of nodes.  

   (cid:127)       The system should have the ability to function correctly in the presence of local 

site failures, and also missing or incorrect data.    

 Obviously,  the  emphasis  in  DDM  algorithms  is  on  local  computation  and 
communication.  Local  algorithms  for  DDM  can  be  broadly  classiﬁ ed  under  two 
categories:

    (cid:127)       Exact  Local Algorithms.      These  algorithms  guarantee  to  always  terminate  with 
precisely the same result that would have to be found by a centralized algorithm. 
Exact  local  algorithms  are  obviously  more  desirable  but  are  more  difﬁ cult  to 
develop, and in some cases seemingly not possible.  

   (cid:127)       Approximate Local Algorithms.      These algorithms cannot guarantee accuracy by 
centralized solutions. They make a balance between quality of solution and sys-
tem ’ s responses.    

364 

ADVANCES  IN  DATA  MINING

 Selection of a type of a local algorithm depends on the data - mining problem and 
application  domain,  including  the  amount  of  data  and  their  dynamics.  In  general, 
approximate  approaches  are  used  in  cases  when  the  balance  between  accuracy  and 
efﬁ ciency is important, and communications between sites represent a bottleneck. We 
will illustrate this balance between local computation and communication with a simple 
approximate  algorithm  useful  in  many  data - mining  applications.  For  example,  if  we 
want to compare the data vectors observed at different sites, the centralized approach 
will collect these vectors to the central computer and then compare the vectors using 
whatever metric is appropriate for the domain. DDM technology offers more efﬁ cient 
solutions for the problem using a simple randomized technique. 

 Vectors  a     =    (a 1 , a 2 ,    . . .    , a m ) and  b     =    (b 1 , b 2 ,    . . .    , b m ) are given at two distributed 
sites A and B, respectively. We want to approximate the Euclidean distance between 
them using a small number of messages and reduced data transfer between sites A and 
B. Centralized solution requires that one vector is transferred to the other site, that is, 
 m  components of one vector are transferred. How does one obtain the same result with 
less than  m  data transfer? Note that the problem of computing the Euclidean distance 
between a pair of vectors  a  and  b  can be represented as the problem of computing the 
inner products as follows:

2 ( , )
   d a b

=

•
a a
(

)

+

•
b b

)

(

−

2 a b

(

•

)

where ( a  •  b ) represents a inner product between vectors  a  and  b  deﬁ ned as  Σ  a i  b i , and 
( a  •  a ) is a special case of the inner product representing square of the magnitude of 
the  vector   a .  The  reader  can  easily  check  the  previous  relation.  If,  for  example,  the 
vectors  a  and  b  are   a     =    (1,2,3)  and   b     =    (2,1,2),  then  the  Euclidean  distance  may  be 
calculated as d 2     =    14    +    9    −    2 × 10    =    3. While products ( a  •  a ) and ( b  •  b ) can be com-
puted  locally,  and  each  result  is  a  single  value,  the  core  challenge  is  to  develop  an 
algorithm for distributed inner product computation ( a  •  b ). A simple, communication -
 efﬁ cient randomized technique for computing this inner product between two vectors 
observed at two different sites may consist of the following steps:

   1.      Vectors   a   and   b   are  given  on  two  sites, A  and  B,  respectively.  Site A  sends 
to  the  site  B  a  random  number  generator  seed.  ( This  is  only  one  passed 
message .)  

  2.      Both sites A and B cooperatively generate a random matrix R with dimensions 
k    ×    m, where k    <<    m. Each entry in matrix R is generated independently and 
identically from some ﬁ xed distribution with mean 0 and a ﬁ nite variance.  
  3.      Based  on  matrix  R,  sites  A  and  B  compute  their  own  local  matrix 

products:   ∧  a    =    R a and   ∧  b    =    R b. 
 Dimensions of new local vectors   ∧  a and   ∧  b are k, and that means signiﬁ cantly 
lower than initial lengths of m.  

  4.      Site  A  sends  the  resulting  vector    ∧  a  to  the  site  B.  ( This  represents  k  passed 

messages .)  

  5.      Site B computes approximate inner product ( a  •  b )    =    (  ∧  a T    •     ∧  b)/k    

 
DISTRIBUTED  DATA  MINING  (DDM) 

365

SITE 1
City
Louisville
Cincinnati
Nashville

SITE 1

Patient ID
1
2
3
4

Humidity
85%
77%
89%

Temperature
83 °F
81 °F
85 °F

Temperature
97 °F
98.3 °F
99.9 °F
101 °F

Hearth rate
75
68
72
80

SITE 2

City
Seattle
Miami
Huston

SITE 2

Patient ID
1
2
3
4

(a)

(b)

Humidity
67%
77%
56%

Temperature
73 °F
91 °F
95 °F

Red cells
4.2 × 103
6.2 × 103
6.7 × 103
5.1 × 103

White cells
4 × 109
7.2 × 109
6.1 × 109
4.8 × 109

     Figure  12.30.      Horizontally  versus  vertically  partitioned  data.  (a)  Horizontally  partitioned 
data; (b) vertically partitioned data.  

 So,  instead  of  sending  an  m - dimensional  vector  to  the  other  site,  the  algorithm 
sends only a (k    +    1) - dimensional vector where k    <<    m (k is a user - deﬁ ned parameter). 
The inner product of vectors can still be estimated accurately with lower communica-
tion load. 

 In  the  DDM  literature,  one  of  two  assumptions  is  commonly  adopted  as  to  how 
data are distributed across sites: (1) homogeneously or horizontally partitioned, or (2) 
heterogeneously or vertically partitioned. Both viewpoints assume that the data tables 
at each distributed site are partitions of a single global table. It is important to stress 
that the global table viewpoint is strictly conceptual. It is not necessarily assumed that 
such a table was physically realized and partitioned to form the tables at each site. In 
the homogeneous case, the global table is horizontally partitioned. The tables at each 
site are subsets of the global table; they have exactly the same attributes. Figure 12 .30 a 
illustrates  the  homogeneously  distributed  case  using  an  example  from  weather  data 
where both tables use the same three attributes. In the heterogeneous case, the table is 
vertically partitioned where each site contains a subset of columns. That means sites 
do not have the same attributes. However, samples at each site are assumed to contain 
a unique identiﬁ er to facilitate matching, and Figure 12 .30 b illustrates this case. The 
tables  at  distributed  sites  have  different  attributes,  and  samples  are  linked  through  a 
unique identiﬁ er, Patient ID.   

 DDM  technology  supports  different  data - mining  tasks  including  classiﬁ cation, 
prediction,  clustering,  market - basket  analysis,  and  outliers ’   detection. A  solution  for 
each  of  these  tasks  may  be  implemented  with  a  variety  of  DDM  algorithms.  For 
example,  distributed  Apriori  has  several  versions  for  frequent  itemset  generation  in 
distributed  transactional  database.  They  usually  require  multiple  synchronizations 
and  communication  steps.  Most  of  these  implementations  assume  that  platforms  are 
homogeneous  and  therefore  the  data  sets  are  partitioned  evenly  among  the  sites. 
However, in practice, both the data sets and the processing platforms are more likely 

366 

ADVANCES  IN  DATA  MINING

to  be  heterogeneous,  running  multiple  and  different  systems  and  tools. This  leads  to 
unbalanced  data - set  distributions  and  workloads  causing  additional  problems  in 
implementation. 

 One  recent  trend  is  online - mining  technology  used  for  monitoring  in  distributed 
sensor  networks.  This  is  because  deployments  of  large - scale  distributed  sensor  net-
works are now possible owing to hardware advances and increasing software support. 
Online data mining, also called  data - stream mining , is concerned with extracting pat-
terns,  detecting  outliers,  or  developing  dynamic  models  of  a  system ’ s  behavior  from 
continuous data streams such as those generated by sensor networks. Because of the 
massive  amount  of  data  and  the  speed  of  which  the  data  are  generated,  many  data -
 mining applications in sensor networks require in - network processing such as aggrega-
tion to reduce sample size and communication overhead. Online data mining in sensor 
networks offers many additional challenges, including:

    (cid:127)       limited communication bandwidth,  
   (cid:127)       constraints on local computing resources,  
   (cid:127)       limited power supply,  
   (cid:127)       need for fault tolerance, and  
   (cid:127)       asynchronous nature of the network.    

 Obviously, data - mining systems have evolved in a short period of time from stand -
 alone  programs  characterized  by  single  algorithms  with  little  support  for  the  entire 
knowledge - discovery process to integrated systems incorporating several mining algo-
rithms,  multiple  users,  communications,  and  various  and  heterogeneous  data  formats 
and  distributed  data  sources.  Although  many  DDM  algorithms  are  developed  and 
deployed in a variety of applications, the trend will be illustrated in this book with only 
one example of a distributed clustering algorithm. 

   12.4.1  

  Distributed  DBSCAN  Clustering 

 Distributed  clustering  assumes  that  samples  to  be  clustered  reside  on  different  sites. 
Instead  of  transmitting  all  samples  to  a  central  site  where  we  can  apply  one  of  the 
standard clustering algorithms to analyze the data locally, the data are clustered inde-
pendently on the distributed local sites. Then, in a subsequent step, the central site tries 
to establish a global clustering model based on the downloaded local models, that is, 
summarized representatives of local data. Distributed clustering is carried out on two 
different levels, that is, the local level and the global level (Fig.  12.31 ). On the local 
level, all sites carry out clustering independently from each other. Communication with 
the  central  site  and  determining  a  global  model  should  reﬂ ect  an  optimum  trade - off 
between complexity and accuracy of the algorithm.   

 Local models consist of a set of representatives for each locally found cluster. A 
representative is a good approximation for samples residing on the corresponding local 
site. The local model is transferred to a central site, where the local models are merged 
in order to form a global model. The representation of local models should be simple 

DISTRIBUTED  DATA  MINING  (DDM) 

367

Site 1

Site 2

Site n

local data

local data

.    .    .

local data

local clustering

local clustering

local clustering

determination of
local representatives

determination of
local representatives

determination of
local representatives

determination of global representatives

local data
labeling

local data
labeling

.  .  .

local data
labeling

     Figure 12.31.      System architecture for distributed clustering.  

local
level

global
level

local
level

enough so there will be no overload in communications. At the same time, local models 
should be informative enough to support a high quality of approximate global cluster-
ing. The global model is created by analyzing and integrating local representatives. The 
resulting global clustering is sent back, at the end of the process, to all local sites. 

 This  global - distributed  framework  may  be  more  precisely  speciﬁ ed  when  we 
implement  a  speciﬁ c  clustering  algorithm.  The  density - based  clustering  algorithm 
DBSCAN is a good candidate, because it is robust to outliers, easy to implement, sup-
ports clusters of different shapes, and allows incremental, online implementation. The 
main steps of the algorithm are explained in Chapter  9 , and the same process is applied 
locally. To ﬁ nd local clusters, DBSCAN starts with an arbitrary core object  p , which 
is not yet clustered and retrieves all objects density reachable from  p . The retrieval of 
density - reachable objects is performed in iterations until all local samples are analyzed. 
After having clustered the data locally, we need a small number of representatives that 
will describe the local clustering result accurately. For determining suitable representa-
tives of the clusters, the concept of  speciﬁ c core points  is introduced. 

 Let  C  be  a  local  cluster  with  respect  to  the  given  DBSCAN  parameters   ε   and 
 MinPts . Furthermore, let  Cor C      ⊆      C  be the set of core points belonging to this cluster. 
Then  Scor C      ⊆     C  is called a  complete set of speciﬁ c core points of C  iff the following 
conditions are true:

    (cid:127)        Scor C      ⊆     Cor C    
   (cid:127)        ∀  s i ,s j      ⊆     Scor C : s i      ∉     Neighborhood   ε   ( s j  )  
   (cid:127)        ∀  c     ∈     Cor C  ,   ∃  s     ∈     Scor C : c     ∈     Neighborhood   ε   ( s)     

368 

ADVANCES  IN  DATA  MINING

1 etiS ta stecjbO

2 etiS ta stecjbO

3 etiS ta stecjbO

Cluster 1

Cluster 3

Cluster 2

)I(

)II(

(III)

(a)

Representatives at Site 1

εr
R2

All Objects

εr

R1

R1

R3

R2

R4

R3
ε

)IIV(

Representatives at Site 2

Representatives at Site 2

R3
εr

R4
εr

)VI(

)V(

(VI)

(b)

ε

R2

R4
ε

(c)

ε

R1

ε

R1

ε

R2

R4

ε

R3
ε

2ε

ε

)IIIV(

(IX)

     Figure 12.32.      Distributed DBSCAN clustering (Januzaj et al., 2003). (a) Local clusters; (b) local 
representatives; (c) global model with  ε   global      =     2  ε   local  .  

 The  Scor C   set of points consists of a very small number of  speciﬁ c core points  that 
describe  the  cluster   C .  For  example,  in  Figure  12 .32 a,  sites  2  and  3  have  only  one 
 speciﬁ c  core  point ,  while  site  1,  because  of  the  cluster  shape,  has  two   speciﬁ c  core 
points.  To further simplify the representation of local clusters, the number of speciﬁ c 
core  points,  | Scor C  |    =    K,  is  used  as  an  input  parameter  for  a  further  local   “ clustering 
step ”   with  an  adapted  version  of   K - means .  For  each  cluster   C   found  by   DBSCAN , 
k - means use  Scor C   points as starting points. The result is K    =    | Scor C  | subclusters and 
centroids within  C .   

 Each  local  model   LocalModel k    consists  of  a  set  of   m k    pairs:  a  representative   r  
(complete speciﬁ c core point), and an  ε  radius value. The number  m  of pairs transmitted 
from each site  k  is determined by the number  n  of clusters  C i   found on site  k.  Each of 

CORRELATION  DOES  NOT  IMPLY  CAUSALITY 

369

these pairs ( r ,  ε   r  ) represents a subset of samples that are all located in a corresponding 
local cluster. Obviously, we have to check whether it is possible to merge two or more 
of  these  clusters,  found  on  different  sites,  together. That  is  the  main  task  of  a  global 
modeling part. To ﬁ nd such a global model, the algorithm continues with the density -
 based clustering algorithm DBSCAN again but only for collected representatives from 
local models. Because of characteristics of these representative points, the parameter 
 MinPts global   is set to 2, and radius  ε   global   value should be set generally close to  2  ε   local  . 

 In Figure 12 .32 , an example of distributed DBSCAN for  ε   global      =     2  ε   local   is depicted. 
In Figure 12 .32 a the independently detected clusters on site 1, 2, and 3 are represented. 
The cluster on site 1 is represented using K - means by two representatives,  R 1   and  R 2  , 
whereas the clusters on site 2 and site 3 are only represented by one representative as 
shown in Figure 12 .32 b. Figure 12 .32 c illustrates that all four local clusters from the 
different sites are merged together in one large cluster. This integration is obtained by 
using  an   ε   global    parameter  equal  to   2  ε   local  .  Figure  12 .32 c  also  makes  clear  that  an 
 ε   global      =     ε   local   is insufﬁ cient to detect this global cluster. When the ﬁ nal global model is 
obtained, the model is distributed to local sites. This model makes corrections compar-
ing  previously  found  local  models.  For  example,  in  the  local  clustering  some  points 
may be left as outliers, but with the global model they may be integrated into modiﬁ ed 
clusters.   

   12.5  

  CORRELATION DOES NOT IMPLY CAUSALITY 

 An associational concept is any relationship that can be deﬁ ned in terms of a frequency -
 based joint distribution of observed variables, while a causal concept is any relationship 
that cannot be deﬁ ned from the distribution alone. Even simple examples show that the 
associational criterion is neither necessary nor sufﬁ cient for causality conﬁ rmation. For 
example, data mining might determine that males with income between $50,000 and 
$65,000 who subscribe to certain magazines are likely purchasers of a product you want 
to sell. While you can take advantage of this pattern, say by aiming your marketing at 
people who ﬁ t the pattern, you should not assume that any of these factors (income, 
type of magazine)  cause  them to buy your product. The predictive relationships found 
via data mining are not necessarily  causes  of an action or behavior. 

 The research questions that motivate many studies in the health, social, and behav-
ioral sciences are not statistical but causal in nature. For example, what is the efﬁ cacy 
of a given drug in a given population, or what fraction of past crimes could have been 
avoided by a given policy? The central target of such studies is to determine cause –
 effect relationships among variables of interests, for example, treatments – diseases or 
policies – crime,  as  precondition – outcome  relationships.  In  order  to  express  causal 
assumptions mathematically, certain extensions are required in the standard mathemati-
cal  language  of  statistics,  and  these  extensions  are  not  generally  emphasized  in  the 
mainstream literature and education. 

 The aim of standard statistical analysis, typiﬁ ed by regression and other estimation 
techniques, is to infer parameters of a distribution from samples drawn from that dis-
tribution. With the help of such parameters, one can infer associations among variables, 

370 

ADVANCES  IN  DATA  MINING

or estimate the likelihood of past and future events. These tasks are managed well by 
standard statistical analysis so long as experimental conditions remain the same. Causal 
analysis goes one step further; its aim is to infer aspects of the data - generation process. 
Associations characterize static conditions, while causal analysis deals with changing 
conditions. There is nothing in the joint distribution of symptoms and diseases to tell 
us that curing the former would or would not cure the latter. 

 Drawing analogy to visual perception, the information contained in a probability 
function is analogous to a geometrical description of a three - dimensional object; it is 
sufﬁ cient  for  predicting  how  that  object  will  be  viewed  from  any  angle  outside  the 
object, but it is insufﬁ cient for predicting how the object will be deformed if manipu-
lated and squeezed by external forces. The additional information needed for making 
predictions such as the object ’ s resilience or elasticity is analogous to the information 
that causal assumptions provide. These considerations imply that the slogan  “ correla-
tion  does  not  imply  causation ”   can  be  translated  into  a  useful  principle:  One  cannot 
substantiate causal claims from associations alone, even at the population level. Behind 
every causal conclusion there must lie some causal assumptions that are not testable in 
observational studies. 

 Any  mathematical  approach  to  causal  analysis  must  acquire  a  new  notation  for 
expressing causal assumptions and causal claims. To illustrate, the syntax of probability 
calculus  does  not  permit  us  to  express  the  simple  fact  that   “ symptoms  do  not  cause 
diseases, ”  let alone draw mathematical conclusions from such facts. All we can say is 
that two events are dependent — meaning that if we ﬁ nd one, we can expect to encounter 
the other, but we cannot distinguish statistical dependence, quantiﬁ ed by the conditional 
probability  P ( disease/symptom ) from causal dependence, for which we have no expres-
sion in standard probability calculus. Symbolic representation for the relation  “ symp-
toms  cause  disease ”   is  distinct  from  the  symbolic  representation  of   “ symptoms  are 
associated with disease. ”  

 The  need  to  adopt  a  new  notation,  foreign  to  the  province  of  probability  theory, 
has been traumatic to most persons trained in statistics partly because the adaptation 
of a new language is difﬁ cult in general, and partly because statisticians — this author 
included — have been accustomed to assuming that all phenomena, processes, thoughts, 
and modes of inference can be captured in the powerful language of probability theory. 
Causality formalization requires new mathematical machinery for cause – effect analysis 
and a formal foundation for counterfactual analysis including concepts such as  “ path 
diagrams, ”   “ controlled distributions, ”  causal structures, and causal models. 

   12.5.1  

  Bayesian Networks 

 One  of  the  powerful  aspects  of  graphical  models  is  that  a  speciﬁ c  graph  can  make 
probabilistic statements for a broad class of distributions. In order to motivate the use 
of directed graphs to describe probability distributions, consider ﬁ rst an arbitrary joint 
distribution p(a, b, c) over three variables a, b, and c. By application of the product rule 
of probability, we can write the joint distribution in the form

   p a b c
( ,

,

)

=

p c a b p a b

) ( ,

(

,

|

=

)

p c a b p b a p a
) ( )
) (
(

,

|

|

  
CORRELATION  DOES  NOT  IMPLY  CAUSALITY 

371

a

b

x1

x2

x4

x3

x5

c

(a)

x6

x7

(b)

     Figure 12.33.      A directed graphical model representing the joint probability distribution over 
a set of variables. (a) Fully connected; (b) partially connected.  

 We now represent the right - hand side of the equation in terms of a simple graphical 
model as follows. First, we introduce a node for each of the random variables a, b, and 
c and associate each node with the corresponding conditional distribution on the right -
 hand side of the equation. Then, for each conditional distribution we add directed links, 
(arrows) to the graph from the nodes corresponding to the variables on which the dis-
tribution is conditioned. Thus, for the factor p(c|a, b), there will be links from nodes a 
and b to node c, whereas for the factor p(a) there will be no incoming links, as presented 
in Figure 12 .33 a. If there is a link going from a node a to a node b, then we say that 
node  a  is the  parent  of node b, and we say that node b is the  child  of node  a .   

 For given K variables, we can again represent a joint probability distribution as a 
directed graph having K nodes, one for each conditional distribution, with each node 
having incoming links from all lower numbered nodes. We say that this graph is  fully 
connected  because there is a link between every pair of nodes. Consider now the graph 
shown  in  Figure  12 .33 b,  which  is  not  a  fully  connected  graph  because,  for  instance, 
there is no link from x 1  to x 2  or from x 3  to x 7 . We may transform this graph to the cor-
responding  representation  of  the  joint  probability  distribution  written  in  terms  of  the 
product of a set of conditional distributions, one for each node in the graph. The joint 
distribution of all seven variables is given by

   p x x
,
(
1

2

,

… =
x
7

)

,

p x p x p x p x
2

) (

) (

) (

(

1

3

|

4

x x x p x
,
,
1

) (

3

2

|

x x p x
,
6
3
1

) (

||

x p x
) (
4

7

|

x x
,
4

5

)

5

 Any joint distribution can be represented by a corresponding graphical model. It 
is  the   absence   of  links  in  the  graph  that  conveys  interesting  information  about  the 
properties of the class of distributions that the graph represents. We can interpret such 
models as expressing the processes by which the observed data arose, and in many situ-
ations we may draw conclusions about new samples from a given probability distribu-
tion. The directed graphs that we are considering are subject to an important restriction, 
that is, that there must be no  directed cycles . In other words, there are no closed paths 
within the graph such that we can move from node to node along links following the 
direction of the arrows and end up back at the starting node. Such graphs are also called 
 Directed Acyclic Graphs  ( DAGs ). 

  
372 

c

ADVANCES  IN  DATA  MINING

a

b

a

b

a

c

b

(a)

(b)

c

(c)

     Figure 12.34.      Joint probability distributions show different dependencies between variables 
 a ,  b , and  c .  

 An important concept for probability distributions over multiple variables is that 
of  conditional independence.  Consider three variables a, b, and c, and suppose that the 
conditional distribution of a, given b and c, is such that it does not depend on the value 
of b, so that

   p a b c
|

(

,

=

)

p a c
| )
(

 We say that  a  is conditionally independent of  b  given  c . This can be extended in 
a slightly different way if we consider the joint distribution of  a  and  b  conditioned on 
 c , which we can write in the form

   p a b c
| )
( ,

=

p a b c p b c
| )

) (

(

,

|

=

p a c p b c
| )
| ) (

(

 The  joint  distribution  of   a   and   b ,  conditioned  on   c ,  may  be  factorized  into  the 
product of the marginal distribution of  a  and the marginal distribution of  b  (again both 
conditioned  on   c ).  This  says  that  the  variables   a   and   b   are  statistically  independent, 
given  c . This independence may be presented in a graphical form in Figure 12 .34 a. The 
other  typical  joint  distributions  may  be  graphically  interpreted.  The  distribution  for 
Figure 12 .34 b represents the case  

   p b c a
( ,

|

)

=

p c a p b c
| )
) (

(

|

 while for Figure 12 .34 c the probability p(c| a, b) is under the assumption that variables 
 a  and  b  are independent  p ( a, b )    =     p ( a ) p( b ). 

 In  general,  graphical  models  may  capture  the   causal   processes  by  which  the 
observed data were generated. For this reason, such models are often called  generative  
models. We could make previous models in Figure 12 .33  generative by introducing a 
suitable  prior  distribution  p(x)  for  all  input  variables  (these  are  variables — nodes 
without input links). For the case in Figure 12 .33 a this is a variable  a , and for the case 
in  Figure  12 .33 b  these  are  variables:  x 1 ,  x 2 ,  and  x 3 .  In  practice,  producing  synthetic 
observations from a generative model can prove informative in understanding the form 
of the probability distribution represented by that model. 

 This  preliminary  analysis  about  joint  probability  distributions  brings  us  to  the 
concept of Bayesian networks (BN).  BN  are also called belief networks or probabilistic 
networks in the literature. The nodes in a BN represent variables of interest (e.g., the 

  
  
  
CORRELATION  DOES  NOT  IMPLY  CAUSALITY 

373

Cloudy

Disposal
Breaker

Kitchen
Circuit

Sprinkler

Rain

Wet grass

Disposal

Kitchen
Lights

     Figure 12.35.      Two examples of Bayesian network architectures.  

temperature of a device, the gender of a patient, the price of a product, the occurrence 
of an event), and the links represent dependencies among the variables. Each node has 
 states , or a set of probable values for each variable. For example, the weather could be 
cloudy or sunny, an enemy battalion could be near or far, symptoms of a disease are 
present or not present, and the garbage disposal is working or not working. Nodes are 
connected with an arrow to show causality and also indicate the direction of inﬂ uence. 
These arrows are called  edges . The dependencies are quantiﬁ ed by conditional proba-
bilities for each node given its parents in the network. Figure 12 .35  presents some BN 
architectures, initially without probabilities distributions. In general, we can formally 
describe a BN as a graph in which the following holds:

   1.      A set of random variables makes up the nodes of the network.    
  2.      A  set  of  directed  links  connects  pairs  of  nodes.  The  intuitive  meaning  of  an 

arrow from node X to node Y is that X has a  direct inﬂ uence  on Y.  

  3.      Each node has a  conditional probability table  (CPT) that quantiﬁ es the effects 
that the parents have on the node. The parents of a node X are all those nodes 
that have arrows pointing to X.  

  4.      The graph has no directed cycles (hence is a DAG).    

 Each node in the BN corresponds to a random variable X, and has a probability 
distribution of the variable P(X). If there is a directed arc from node X to node Y, this 
indicates that X has a direct inﬂ uence on Y. The inﬂ uence is speciﬁ ed by the conditional 
probability  P(Y|X).  Nodes  and  arcs  deﬁ ne  a   structure   of  the  BN.  Probabilities  are 
 parameters  of the structure. 

 We turn now to the problem of inference in graphical models, in which some of 
the  nodes  in  a  graph  are  clamped  to  observed  values,  and  we  wish  to  compute  the 
posterior  distributions  of  one  or  more  subsets  of  other  nodes.  The  network  supports 
 the computation of the probabilities of any subset of variables given evidence about 
any other subset. We can exploit the graphical structure both to ﬁ nd efﬁ cient algorithms 
for  inference  and  to  make  the  structure  of  those  algorithms  transparent.  Speciﬁ cally, 
many inference - based algorithms can be expressed in terms of the propagation of local 

374 

ADVANCES  IN  DATA  MINING

p(W | R) = 0.9
p(W | – R) = 0.2

Wet grass

Rain

p(R) = 0.4

     Figure 12.36.      Simple causal graph.  

p(R | C ) = 0.8
p(R | – C ) = 0.8

p(W | R) = 0.9
p(W | – R) = 0.9

Rain

Wet grass

     Figure 12.37.      An extended causal graph.  

Cloudy

p(C ) = 0.4

 probabilities   around  the  graph. A  BN  can  be  considered  as  a  probabilistic  graph  in 
which the probabilistic knowledge is represented by the topology of the network and 
the conditional probabilities at each node. The main purpose of building knowledge on 
probabilities is to use it for inference, that is, for computing the answer for particular 
cases about the domain. 

 For example, we may assume that rain causes the grass to get wet. Causal graph 
in  Figure  12 .36   explains  the  cause – effect  relation  between  these  variables,  including 
corresponding  probabilities.  If  P(Rain)    =    P(R)    =    0.4  is  given,  that  also  means 
P( ¬ R)    =    0.6. Also, note that the sum of presented conditional probabilities is not equal 
to  1.  If  you  analyze  the  relations  between  probabilities,  P(W|R)    +    P( ¬ W|R)    =    1,  and 
also  P(W| ¬ R)    +    P( ¬ W| ¬ R)    =    1,  not  the  sum  of  given  probabilities.  In  these  expres-
sions  R  means   “ Rain, ”   and W  means   “ Wet  grass. ”   Based  on  the  given  BN,  we  may 
check the probability of  “ Wet grass ” :  

(
   P W P W R) P R P W R  P R

(

(

)

)

)

(

(

|

|

+

=

=

)

+
0 9 0 4 0 2 0 6
.

×

×

.

.

.

=

0 4
.

(
8 or

48

%)

 Bayes ’  rule allows us to invert the dependencies, and obtain probabilities of parents 
in the graph based on probabilities of children. That could be useful in many applica-
tions, such as determining probability of a diagnosis based on symptoms. For example, 
based on the BN in Figure 12 .36 , we may determine conditional probability P(Rain|Wet 
grass)    =    P(R|W). We know that

(
   P R W P W R  P R

(

)

)

(

,

|

=

=

)

P R W  P W

(

(

)

|

)

and therefore

=

)

(

( [
P R W P W R  P R /P W P W R  P R / P W R  P R P W
∗

])
∗
0 9 0 4 0 9 0 4 0 2 0 6
.
. )

|
¬
P R
[

( [
=

]) ( [

0 75
.

|
=

( .

])

+

∗

[

)

[

]

]

(

]

[

]

[

/

.

.

.

|

|

=

+

¬RR

]

|

 Let us include now more complex problems, and the more complex BN represented 
in Figure 12 .37 . In this case we have three nodes, and they are connected serially, often 

  
 
   
  
CORRELATION  DOES  NOT  IMPLY  CAUSALITY 

375

p(C = F )

p(C = T )

0.5

0.5

Cloudy

C

F

T

p(S = F )

p(S = T )

0.5

0.9

0.5

0.1

Sprinkler

Rain

C

F

T

p(R = F ) p(R = T )

0.8

0.2

0.2

0.8

Wet grass

 S  R

p(W = F )

p(W = T )

F  F

T  F

F  T

T  T

1.0

0.1

0.1

0.01

0.0

0.9

0.9

0.99

     Figure 12.38.      Four - node architecture of a Bayesian network.  

called head - to - tail connections of three events. Now an additional event,  “ Cloudy, ”  with 
yes and no values is included as a variable at the beginning of the network. The R node 
blocks a path from C to W; it separates them. If the R node is removed, there is no path 
from C to W. Therefore, the relation between conditional probabilities in the graph are 
given as: P(C, R, W)    =    P(C)  *  P(R|C)  *  P(W|R).   

 In our case, based on the BN in Figure 12 .37 , it is possible to determine and use 
 “ forward ”  and  “ backward ”  conditional probabilities as represented in the previous BN. 
We are starting with:

   P W C

(

|

=

)

+
P(W R) P(R C) P W R P R C

∗ ¬
(

∗

(

)

|

|

|

|

=

)

0 9 0 8 0 2
.
.

.

+

∗

∗

0.2 = 0.76

 Then, we may use Bayes ’  rule for inverted conditional probabilities:

|
   P C W P W C P C /P W

( [

])

[

]

(

)

(

|

=

∗

= 0 65
.

)

(
(P W

)

requires detailed computaation)   

 More complex connections may be analyzed in BN. The following Figure 12 .38  

shows the graph structure and the assumed input parameters.   

 The parameters of a graphical model are represented by the conditional probability 
distributions  in  a  form  of  CPT  tables  for  each  node,  given  its  parents.  The  simplest 
form of a formalized distribution, a CPT table, is suitable when the nodes are discrete -
 valued. All  nodes  in  Figure  12 .38   are  represented  with  a  discrete  set  of  states,  and 
corresponding CPTs. For example,  “ Sprinkler ”  node (S) may be  “ on ”  and  “ off, ”  and is 
represented in the table with T and F values. Sprinkler CPT table is generated including 

  
 
376 

ADVANCES  IN  DATA  MINING

input discrete values for node the  “ Cloudy ”  (C). Many algorithms for BN analysis may 
be expressed in terms of the propagation of probabilities through the graph. 

 All probabilistic models, no matter how reﬁ ned and accurate, Bayesian included, 
describe a distribution over possible observed events, but say nothing about what will 
happen if a certain intervention occurs. For example, what if I turn on the sprinkler? 
What effect does that have on the season, or on the connection between wetness and 
slipperiness? A causal network is a BN with the added property that the parents of each 
node are its direct causes. In such a network, the result of an intervention is obvious: 
The sprinkler node is set to  “ on ”  and the causal link between the season and the sprin-
kler is removed. All other causal links and conditional probabilities remain intact. This 
added  property  endows  the  causal  network  with  the  capability  of  representing  and 
responding  to  external  or  spontaneous  changes.  For  example,  to  represent  a  disabled 
sprinkler  in  the  story  of  Figure  12 .38 ,  we  simply  delete  from  the  network  all  links 
incident to the node Sprinkler. To represent the policy of turning the sprinkler off if it 
rains, we simply add a link between Rain and Sprinkler. Such changes would require 
much greater remodeling efforts if the network were not constructed along the causal 
direction. This remodeling ﬂ exibility may well be cited as the ingredient that manages 
novel situations instantaneously, without requiring training or adaptation of the model.   

   12.6  

  PRIVACY, SECURITY, AND LEGAL ASPECTS OF DATA MINING 

 An  important  lesson  of  the  Industrial  Revolution  was  that  the  introduction  of  new 
technologies can have a profound effect on our ethical principles. In today ’ s Information 
Revolution we strive to adapt our ethics to diverse concepts in cyberspace. The recent 
emergence of very large databases, and their associated data - mining tools, presents us 
with yet another set of ethical challenges to consider. The rapid dissemination of data -
 mining technologies calls for an urgent examination of their social impact. It should be 
clear that data mining itself is not socially problematic. Ethical challenges arise when 
it is executed over data of a personal nature. For example, the mining of manufacturing 
data  is  unlikely  to  lead  to  any  consequences  of  a  personally  objectionable  nature. 
However,  mining  clickstreams  of  data  obtained  from  Web  users  initiate  a  variety  of 
ethical  and  social  dilemmas.  Perhaps  the  most  signiﬁ cant  of  these  is  the  invasion  of 
privacy, but that is not the only one. 

 Thanks to the proliferation of digital technologies and networks such as the Internet, 
and tremendous advances in the capacity of storage devices and parallel decreases in 
their cost and physical size, many private records are linked and shared more widely 
and stored far longer than ever before, often without the individual consumer ’ s knowl-
edge or consent. As more everyday activities move online, digital records contain more 
detailed information about individuals ’  behavior. Merchants ’  record data are no longer 
only on what individuals buy and how they pay for their purchases. Instead, those data 
include every detail of what we look at, the books we read, the movies we watch, the 
music we listen to, the games we play, and the places we visit. The robustness of these 
records is difﬁ cult to overestimate and is not limited to settings involving commercial 
transactions. More and more computers track every moment of most employees ’  days. 

PRIVACY,  SECURITY,  AND  LEGAL  ASPECTS  OF  DATA  MINING 

377

E - mail and voice mail are stored digitally; even the content of telephone conversations 
may  be  recorded.  Digital  time  clocks  and  entry  keys  record  physical  movements. 
Computers store work product, text messages, and Internet browsing records — often in 
keystroke - by - keystroke detail, they monitor employee behavior. 

 The ubiquitous nature of data collection, analysis, and observation is not limited 
to  the  workplace.  Digital  devices  for  paying  tolls,  computer  diagnostic  equipment  in 
car engines, and global positioning services that are increasingly common in passenger 
vehicles  record  every  mile  driven.  Cellular  telephones  and  personal  digital  assistants 
record  not  only  call  and  appointment  information,  but  location  as  well,  and  transmit 
this  information  to  service  providers.  Internet  Service  providers  (ISPs)  record  online 
activities;  digital  cable  and  satellite  record  what  we  watch  and  when;  alarm  systems 
record  when  we  enter  and  leave  our  homes;  and  all  of  these  data  are  held  by  third 
parties. Information on our browsing habits is available to both the employer and the 
ISP.  If  an  employee  buys  an  airline  ticket  through  an  online  travel  service,  such  as 
Travelocity or Expedia, the information concerning that transaction will be available 
to the employer, the ISP, the travel service, the airline, and the provider of the payment 
mechanism, at a minimum. 

 All indications are that this is just the beginning. Broadband Internet access into 
homes has not only increased the personal activities we now engage in online but also 
created  new  and  successful  markets  for  remote  computer  backup  and  online  photo, 
e - mail,  and  music  storage  services. With Voice  over  Internet  Protocol  (IP)  telephone 
service,  digital  phone  calls  are  becoming  indistinguishable  from  digital  documents: 
Both can be stored and accessed remotely. Global positioning technologies are appear-
ing in more and more products, and Radio Frequency Identiﬁ cation Tags are beginning 
to be used to identify high - end consumer goods, pets, and even people. 

 Many individuals are unaware of the extent of the personal data stored, analyzed, 
and used by government institutions, private corporations, and research labs. Usually, 
it  is  only  when  things  go  wrong  that  individuals  exercise  their  rights  to  obtain  these 
data and seek to eliminate or correct it. For many of those whose records are accessed 
through data mining, we do not know it is happening, and may never ﬁ nd out because 
nothing incriminating is signaled. But we still know that data mining allows companies 
to accumulate and analyze vast amounts of information about us, sufﬁ cient perhaps to 
create, with the help of data mining, what some have called personality or psychological 
 “ mosaics ”  of the subjects. One result of the entry into the information age is that face-
less  bureaucrats  (in  a  company,  in  government,  everywhere)  will  be  able  to  compile 
dossiers on anyone and everyone, for any reason or for no reason at all. The possibility, 
even if slim, that this information could somehow be used to our detriment or simply 
revealed to others can create a chilling effect on all these activities. 

 Data  and  the  information  derived  from  those  data  using  data  mining  are  an 
extremely  valuable  resource  for  any  organization.  Every  data - mining  professional  is 
aware of this, but few are concentrated on the impact that data mining could have on 
privacy and the laws surrounding the privacy of personal data. Recent survey showed 
that data - mining professionals  “ prefer to focus on the advantages of Web - data mining 
instead of discussing the possible dangers. ”  These professionals argued that Web - data 
mining does not threaten privacy. One might wonder why professionals are not aware 

378 

ADVANCES  IN  DATA  MINING

of or concerned over the possible misuse of their work, and the possible harm it might 
cause to individuals and society. Part of the reason some professionals are not concerned 
about the possible misuse of their work and the potential harm it might cause might lie 
in the explanation that  “ they are primarily technical professionals, and somebody else 
should  take  care  of  these  social  and  legal  aspects. ”   But  sensible  regulations  of  data 
mining  depend  on  the  understanding  of  its  many  variants  and  its  potential  harms. 
Therefore, technical professionals have to be a part of the team, often leading, which 
will try to solve privacy challenges. 

 The key ethical issues in mining personal data are that people are generally:

   1.      not aware that their personal information is being gathered,  
  2.      do not know to what use the data will be made, and/or  
  3.      have not consented to such collection of data or data use.    

 In  order  to  alleviate  concerns  about  data  privacy,  a  number  of  techniques  have 
recently been proposed in order to perform the data - mining tasks in a privacy - preserving 
way. These techniques for performing privacy - preserving data mining are drawn from 
a  wide  array  of  related  topics  such  as  cryptography  and  information  hiding.  Most 
privacy - preserving data - mining methods apply a transformation that reduces the effec-
tiveness of the underlying data when they are applied to data - mining methods or algo-
rithms. In fact, there is a natural trade - off between privacy and accuracy although this 
trade - off is affected by the particular algorithm that is used for privacy preservation. 
The key directions in the ﬁ eld of privacy - preserving data mining include:

    (cid:127)       Privacy - Preserving  Data  Publishing:      These  techniques  tend  to  study  different 
transformation  methods  associated  with  privacy. They  concentrate  on  how  the 
perturbed data can be used in conjunction with classical data - mining methods.  
   (cid:127)       Changing the Results of Data - Mining Applications to Preserve Privacy:      These 
techniques  are  concentrated  on  the  privacy  of  data - mining  results  where  some 
results are modiﬁ ed in order to preserve the privacy. A classic example of such 
techniques are association - rule hiding methods, in which some of the association 
rules are suppressed in order to preserve privacy.  

   (cid:127)       Cryptographic  Methods  for  Distributed  Privacy:      If  the  data  are  distributed 
across multiple sites, a variety of cryptographic protocols may be used in order 
to communicate among the different sites so that secure function computation is 
possible without revealing sensitive information.    

 Recent research trends propose that issues of privacy protection, currently viewed 
in terms of data  access,  be reconceptualized in terms of data  use . From a technology 
perspective,  this  requires  supplementing  legal  and  technical  mechanisms  for  access 
control  with  new  mechanisms  for   transparency   and   accountability   of  data  used  in  a 
data - mining  process.  Current  technical  solutions  of  the  impact  of  data  mining  on 
privacy have generally focused on limiting access to data at the point of collection or 
storage. Most effort has been put into the application of cryptographic and statistical 

PRIVACY,  SECURITY,  AND  LEGAL  ASPECTS  OF  DATA  MINING 

379

techniques  to  construct  ﬁ nely  tuned  access - limiting  mechanisms.  Even  if  privacy -
 preserving data - mining techniques prove to be practical, they are unlikely to provide 
sufﬁ cient  public  assurance  that  data - mining  inferences  conform  to  legal  restrictions. 
While privacy - preserving data - mining techniques are certainly necessary in some con-
texts,  they  are  not  a  sufﬁ cient  privacy  protection  without  the  transparency  and 
accountability. 

 In the long run, access restriction alone is not enough to protect privacy or to ensure 
reliable conclusions, and the best example of these challenges is Web and Web - mining 
technology. As we leave the well - bounded world of enterprise databases and enter the 
open, unbounded world of the Web, data users need a new class of tools to verify that 
the results they see are based on data that are from trustworthy sources and are used 
according to agreed - upon institutional and legal requirements. The implications of data 
mining on digital social networks such as Facebook, Myspace, or Twitter may be enor-
mous.  Unless  it  is  part  of  a  public  record  designed  for  consumption  by  everyone  or 
describes  an  activity  observed  by  strangers,  the  stored  information  is  rarely  known 
outside our families, much less outside our social networks. An expectation that such 
information  and  potential  derivatives  will  remain   “ private ”   on  the  Internet  is  not 
anymore a reasonable assumption from the social network perspective. One of the major 
contributors to these controversies is the absence of clear legal standards. Thirty years 
ago  the  lack  of  relevant  law  was  understandable:  The  technologies  were  new;  their 
capacity was largely unknown; and the types of legal issues they might raise were novel. 
Today, it is inexplicable and threatens to undermine both privacy and security. Hence, 
we must develop technical, legal, and policy foundations for transparency and account-
ability  of  large - scale  mining  across  distributed  heterogeneous  data  sources.   Policy 
awareness  is a property of the Semantic Web still in development that should provide 
users with accessible and understandable views of the policies associated with resources. 
 The following issues related to privacy concerns may assist in individual privacy 
protection during a data - mining process, and should be a part of the best data - mining 
practices:

    (cid:127)        Whether there is a clear description of a program ’ s collection of personal infor-
mation,  including  how  the  collected  information  will  serve  the  program ’ s 
purpose?  In other words, be transparent early on about a data - mining project ’ s 
purpose. Clearly state up - front the business beneﬁ ts that will be achieved by data 
mining. Provide notice of the combining of information from different sources. 
Companies like Walmart or Kroger store much of their business and customer 
data in large warehouses. Their customers are not told of the extent of the infor-
mation that is accumulated on them, how long it will be kept, the uses to which 
the data will be put, or other users with which data will be shared.  

   (cid:127)        Whether information collected for one purpose will then be used for additional, 
secondary purposes in the future?  Ensure that any new purpose of a project is 
consistent  with  the  project ’ s  original  purpose.  Maintain  oversight  of  a  data -
 mining project and create audit requirements.  

   (cid:127)        Whether privacy protections are built - in to systems in the early developmental 
stage?  Build in privacy considerations up - front, and bring in all stakeholders at 

380 

ADVANCES  IN  DATA  MINING

the beginning, including privacy advocates to get input from them. Ensure the 
accuracy of data entry.  

   (cid:127)        What type of action will be taken on the basis of information discovered through 
a  data - mining  process?   Where  appropriate,  anonymize  personal  information. 
Limit the actions that may be taken as a result of unveriﬁ ed ﬁ ndings from data 
mining.  

   (cid:127)        Whether  there  is  an  adequate  feedback  system  for  individuals  to  review  and 
correct their personal information that is collected and maintained in order to 
avoid  “ false positives ”  in a data - mining program?  Determine whether an indi-
vidual should have a choice in the collection of information. Provide notice to 
individuals about use of their personal information. Create a system where indi-
viduals can ensure that any incorrect personal information can be corrected.  
   (cid:127)        Whether there are proper disposal procedures for collected and derived personal 

information that has been determined to be irrelevant?     

 Some observers suggest that the privacy issues presented by data mining will be 
resolved by technologies, not by law or policy. But even the best technological solutions 
will still require a legal framework in which to operate, and the absence of that frame-
work  may  not  only  slow  down  their  development  and  deployment,  but  make  them 
entirely unworkable. Although there is no explicit right to privacy of personal data in 
the Constitution, legislation and court decisions on privacy are usually based on parts 
of  the  First,  Fourth,  Fifth,  and  Fourteenth Amendments.  Except  for  health - care  and 
ﬁ nancial organizations, and data collected from children, there is no law that governs 
the  collection  and  use  of  personal  data  by  commercial  enterprises.  Therefore,  it  is 
essentially up to each organization to decide how they will use the personal data they 
have accumulated on their customers. In early March 2005, hackers stole the personal 
information  of  32,000  people  from  the  databases  of  LexisNexis.  The  stolen  data 
included Social Security numbers and ﬁ nancial information. Although the chief execu-
tive ofﬁ cer (CEO) of LexisNexis claimed that the information they collect is governed 
by the U.S. Fair Credit Reporting Act, members of Congress disagreed. As a result of 
this and other large - scale identity thefts in recent years, Congress is considering new 
laws  explaining  what  personal  data  a  company  can  collect  and  share.  For  example, 
Congress is considering a law to prohibit almost all sales of Social Security numbers. 
 At the same time, especially since 9/11, government agencies have been eager to 
experiment with the data - mining process as a way of nabbing criminals and terrorists. 
Although details of their operation often remain unknown, a number of such programs 
have come to light since 2001. The Department of Justice (DOJ), through the Federal 
Bureau of Investigation (FBI), has been collecting telephone logs, banking records, and 
other personal information regarding thousands of Americans not only in connection 
with counterterrorism efforts, but also in furtherance of ordinary law enforcement. A 
2004  report  by  the  Government  Accountability  Ofﬁ ce  (GAO)  found  42  federal 
departments — including  every  cabinet - level  agency  that  responded  to  the  GAO ’ s 
survey — engaged in, or were planning to engage in, 122 data - mining efforts involving 
personal information (U.S. General Accounting Ofﬁ ce,  Data Mining: Federal Efforts 

REVIEW  QUESTIONS  AND  PROBLEMS 

381

Cover a Wide Range of Uses  [GAO - 04 - 548], May 2004, pp. 27 – 64). Recently, the U.S. 
Government recognized that sensible regulation of data mining depends on understand-
ing its many variants and its potential harms, and many of these data - mining programs 
are reevaluated. In the United Kingdom, the problem is being addressed more compre-
hensively by the Foundation for Information Policy Research, an independent organiza-
tion examining the interaction between information technology and society with goals 
to identify technical developments with signiﬁ cant social impact, commission research 
into public policy alternatives, and promote public understanding and dialog between 
technologists and policy makers in the United Kingdom and Europe. It combines infor-
mation  technology  researchers  with  people  interested  in  social  impacts,  and  uses  a 
strong media presence to disseminate its arguments and educate the public. 

 There is one additional legal challenge related speciﬁ cally to data mining. Today ’ s 
privacy laws and guidelines, where they exist, protect data that are explicit, conﬁ dential, 
and exchanged between databases. However, there is no legal or normative protection 
for data that are implicit, nonconﬁ dential, and not exchanged. Data mining can reveal 
sensitive information that is derived from nonsensitive data and meta - data through the 
inference  process.  Information  gathered  in  data  mining  is  usually  implicit  patterns, 
models, or outliers in the data, and questionable is the application of privacy regulations 
primarily written for traditional, explicit data. 

 In  addition  to  data  privacy  issues,  data  mining  raises  other  social  concerns.  For 
example, some researchers argue that data mining and the use of consumer proﬁ les in 
some  companies  can  actually  exclude  groups  of  customers  from  full  participation  in 
the marketplace and limit their access to information. 

 Good privacy protection not only can help build support for data mining and other 
tools to enhance security, it can also contribute to making those tools more effective. 
As  technology  designers,  we  should  provide  an  information  infrastructure  that  helps 
society  to  be  more  certain  that  data - mining  power  is  used  only  in  legally  approved 
ways, and that the data that may give rise to consequences for individuals are based on 
inferences that are derived from accurate, approved, and legally available data. Future 
data - mining solutions reconciling any social issues must not only be applicable to the 
ever  changing  technological  environment,  but  also  ﬂ exible  with  regard  to  speciﬁ c 
contexts and disputes.  

 12.7  

 REVIEW QUESTIONS AND PROBLEMS 

       1.     What  are  the  beneﬁ ts  in  modeling  social  networks  with  a  graph  structure? What 

kind of graphs would you use in this case?   

    2.     For the given undirected graph G:

   (a)      compute the degree and variability parameters of the graph;  
  (b)      ﬁ nd adjacency matrix for the graph G;  
  (c)      determine binary  code(G)  for the graph;  
  (d)      ﬁ nd closeness parameter or each node of the graph; and  
  (e)      what is the betweeness measure for node number 2?      

382 

ADVANCES  IN  DATA  MINING

    3.     For the graph given in Problem number 2, ﬁ nd partial  betweeness centrality  using 

modiﬁ ed graph starting with node number 5.   

    4.     Give  real - world  examples  for  traditional  analyses  of  temporal  data  (i.e.,  trends, 

cycles, seasonal patterns, outliers).   

    5.     Given the temporal sequence S    =    {1 2 3 2 4 6 7 5 3 1 0 2}:

   (a)      ﬁ nd PAA for four sections of the sequence;  
  (b)      determine SAX values for solution in (a) if (1)  α     =    3, (2)  α     =    4;  
  (c)      ﬁ nd PAA for three sections of the sequence; and  
  (d)      determine SAX values for solution in (c) if (1)  α     =    3, (2)  α     =    4.      

    6.     Given the sequence S    =    {A B C B A A B A B C B A B A B B C B A C C}:

   (a)      Find the longest subsequence with frequency    ≥    3.  
  (b)      Construct ﬁ nite - state automaton (FSA) for the subsequence found in (a).      

    7.     Find normalized contiguity matrix for the table of U.S. cities: 

  Minneapolis  
  Nashville  

  Chicago  
  Louisville  

  New York  
  Charlotte  

 Make assumption that only neighboring cities (vertical and horizontal) in the table 
are close.   

    8.     For the BN in Figure 12 .38  determine:

   (a)      P(C, R, W)  
  (b)      P( ⎤ C,  ⎤ S, W)      

    9.     Review the latest articles on privacy - preserving data mining that are available on 

the Internet. Discuss the trends in the ﬁ eld.   

    10.     What are the largest sources of unintended personal data on the Internet? How do 
we increase awareness of Web users of their personal data that are available on the 
Web for a variety of data - mining activities?   

    11.     Discuss  an  implementation  of  transparency  and  accountability  mechanisms  in  a 
data - mining process. Illustrate your ideas with examples of real - world data - mining 
applications.   

    12.     Give examples of data - mining applications where you would use DDM approach. 

Explain the reasons.      

  12.8  

 REFERENCES FOR FURTHER STUDY 

    Aggarwal   C. C.  ,   P. S.   Yu  ,  Privacy - Preserving Data Mining: Models and Algorithms ,  Springer , 

 Boston ,  2008 .  

  The  book  proposes  a  number  of  techniques  to  perform  the  data - mining  tasks  in  a  privacy -
 preserving way. These techniques generally fall into the following categories: data modiﬁ ca-

     
REFERENCES  FOR  FURTHER  STUDY 

383

tion techniques, cryptographic methods and protocols for data sharing, statistical techniques 
for  disclosure  and  inference  control,  query  auditing  methods,  and  randomization  and 
perturbation - based techniques. This edited volume contains surveys by distinguished research-
ers  in  the  privacy  ﬁ eld.  Each  survey  includes  the  key  research  content  as  well  as  future 
research directions.  Privacy - Preserving Data Mining: Models and Algorithms  is designed for 
researchers, professors, and advanced - level students in computer science, and is also suitable 
for industry practitioners.  

    Chakrabarti   D.  ,   C.   Faloutsos  ,  Graph Mining: Laws, Generators, and Algorithms ,  ACM Computing 

Surveys , Vol.  38 , March  2006 , pp.  1  –  69 .  
  How does the Web look? How could we tell an abnormal social network from a normal one? 
These and similar questions are important in many ﬁ elds where the data can intuitively be 
cast as a graph; examples range from computer networks to sociology to biology and many 
more. Indeed, any  M :  N  relation in database terminology can be represented as a graph. A lot 
of these questions boil down to the following:  “ How can we generate synthetic but realistic 
graphs? ”  To answer this, we must ﬁ rst understand what patterns are common in real - world 
graphs and can thus be considered a mark of normality/realism. This survey gives an overview 
of  the  incredible  variety  of  work  that  has  been  done  on  these  problems.  One  of  our  main 
contributions is the integration of points of view from physics, mathematics, sociology, and 
computer science. Further, we brieﬂ y describe recent advances on some related and interesting 
graph problems.  

    Da Silva   J. C.  , et al.,  Distributed Data Mining and Agents ,  Engineering Applications of Artiﬁ cial 

Intelligence , Vol.  18 , No.  7 , October  2005 , pp.  791  –  807 .  
  Multi - Agent  Systems  (MAS)  offer  an  architecture  for  distributed  problem  solving.  DDM 
algorithms focus on one class of such distributed problem solving tasks — analysis and model-
ing of distributed data. This paper offers a perspective on DDM algorithms in the context of 
multi - agent systems. It discusses broadly the connection between DDM and MAS. It provides 
a  high - level  survey  of  DDM,  then  focuses  on  distributed  clustering  algorithms  and  some 
potential applications in multi - agent - based problem - solving scenarios. It reviews algorithms 
for distributed clustering, including privacy - preserving ones. It describes challenges for clus-
tering in sensor - network environments, potential shortcomings of the current algorithms, and 
future work accordingly. It also discusses conﬁ dentiality (privacy preservation) and presents 
a new algorithm for privacy - preserving density - based clustering.  

    Laxman    S.  ,    P.  S.    Sastry  ,  A  Survey  of  Temporal  Data  Mining ,   Sadhana ,  Vol.   31 ,  Part  2, April 

 2006 , pp.  173  –  198 .  
  Data mining is concerned with analyzing large volumes of (often unstructured) data to auto-
matically  discover  interesting  regularities  or  relationships  that  in  turn  lead  to  better  under-
standing  of  the  underlying  processes. The  ﬁ eld  of  temporal  data  mining  is  concerned  with 
such analysis in the case of ordered data streams with temporal interdependencies. Over the 
last decade many interesting techniques of temporal data mining were proposed and shown 
to be useful in many applications. Since temporal data mining brings together techniques from 
different ﬁ elds such as statistics, machine learning, and databases, the literature is scattered 
among many different sources. In this article, we present an overview of the techniques of 
temporal data mining.We mainly concentrate on algorithms for pattern discovery in sequential 
data  streams.  We  also  describe  some  recent  results  regarding  statistical  analysis  of  pattern 
discovery methods.  

    Mitsa   T.  ,  Temporal Data Mining ,  Chapmann  &  Hall/CRC Press ,  Boca Raton, FL ,  2010 .  

  From basic data - mining concepts to state - of - the - art advances,  Temporal Data Mining  covers 
the  theory  of  this  subject  as  well  as  its  application  in  a  variety  of  ﬁ elds.  It  discusses  the 

384 

ADVANCES  IN  DATA  MINING

incorporation of temporality in databases as well as temporal data representation, similarity 
computation, data classiﬁ cation, clustering, pattern discovery, and prediction. The book also 
explores the use of temporal data mining in medicine and biomedical informatics, business 
and industrial applications, Web - usage mining, and spatiotemporal data mining. Along with 
various  state - of - the - art  algorithms,  each  chapter  includes  detailed  references  and  short 
descriptions of relevant algorithms and techniques described in other references. In the appen-
dices, the author explains how data mining ﬁ ts the overall goal of an organization and how 
these data can be interpreted for the purposes of characterizing a population. She also provides 
programs written in the Java language that implement some of the algorithms presented in 
the ﬁ rst chapter.  

    Pearl ,  J.  ,  Causality: Models, Reasoning and Inference ,  2nd  edition,  Cambridge University Press , 

 Cambridge, UK ,  2009 .  
  This book fulﬁ lls a long - standing need for a rigorous yet accessible treatise on the mathemat-
ics of causal inference. Judea Pearl has done a masterful job of describing the most important 
approaches and displaying their underlying logical unity. The book deserves to be read by all 
scientists who use nonexperimental data to study causation, and would serve well as a gradu-
ate or advanced undergraduate course text. The book should prove invaluable to researchers 
in AI, statistics, economics, epidemiology, and philosophy, and, indeed, all those interested 
in  the  fundamental  notion  of  causality.  It  may  well  prove  to  be  one  of  the  most  inﬂ uential 
books of the next decade.  

    Zeitouni   K.  ,  A Survey of Spatial Data Mining Methods: Databases and Statistics Point of View , 
in  Data Warehousing and Web Engineering ,   S.   Becker  , ed.,  IRM Press ,  Hershey, PA ,  2002 .  
  This chapter reviews the data - mining methods that are combined with GIS for carrying out 
spatial analysis of geographic data. We will ﬁ rst look at data - mining functions as applied to 
such data and then highlight their speciﬁ city compared with their application to classical data. 
We will go on to describe the research that is currently going on in this area, pointing out that 
there are two approaches: The ﬁ rst comes from learning on spatial databases, while the second 
is based on spatial statistics. We will conclude by discussing the main differences between 
these two approaches and the elements they have in common.   

  
 
 
 
 
 
 
 
 
  13 

GENETIC ALGORITHMS     

  Chapter Objectives 

     (cid:127)       Identify effective algorithms for approximate solutions of optimization problems 

described with large data sets.  

   (cid:127)       Compare basic principles and concepts of natural evolution and simulated evolu-

tion expressed through genetic algorithms (GAs).  

   (cid:127)       Describe the main steps of a genetic algorithm with illustrative examples.  
   (cid:127)       Explain  standard  and  nonstandard  genetic  operators  such  as  a  mechanism  for 

improving solutions.  

   (cid:127)       Discuss a schema concept with  “ don ’ t care ”  values and its application to approxi-

mate optimization.  

   (cid:127)       Apply a GA to the traveling - salesman problem (TSP) and optimization of clas-

siﬁ cation rules as examples of hard optimizations.     

    There is a large class of interesting problems for which no reasonably fast algo-
rithms  have  been  developed.  Many  of  these  problems  are  optimization  problems 
that  arise  frequently  in  applications. The  fundamental  approach  to  optimization  is  to 

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

385

 
386 

GENETIC  ALGORITHMS

formulate  a  single  standard  of  measurement — a  cost  function — that  summarizes  the 
performance or value of a decision and iteratively improves this performance by select-
ing  from  among  the  available  alternatives.  Most  classical  methods  of  optimization 
generate a deterministic sequence of trial solutions based on the gradient or higher order 
statistics of the cost function. In general, any abstract task to be accomplished can be 
thought of as solving a problem, which can be perceived as a search through a space 
of potential solutions. Since we are looking for  “ the best ”  solution, we can view this 
task  as  an  optimization  process.  For  small  data  spaces,  classical,  exhaustive  search 
methods usually sufﬁ ce; for large spaces, special techniques must be employed. Under 
regular conditions, the techniques can be shown to generate sequences that asymptoti-
cally converge to optimal solutions, and in certain cases they converge exponentially 
fast. But the methods often fail to perform adequately when random perturbations are 
imposed on the function that is optimized. Further, locally optimal solutions often prove 
insufﬁ cient  in  real - world  situations.  Despite  such  problems,  which  we  call   hard -
 optimization problems , it is often possible to ﬁ nd an effective algorithm whose solution 
is approximately optimal. One of the approaches is based on GAs, which are developed 
on the principles of natural evolution. 

 Natural  evolution  is  a  population - based  optimization  process.  Simulating  this 
process  on  a  computer  results  in  stochastic - optimization  techniques  that  can  often 
outperform  classical  methods  of  optimization  when  applied  to  difﬁ cult,  real - world 
problems. The problems that the biological species have solved are typiﬁ ed by chaos, 
chance,  temporality,  and  nonlinear  interactivity.  These  are  the  characteristics  of  the 
problems that have proved to be especially intractable to classical methods of optimiza-
tion. Therefore, the main avenue of research in simulated evolution is a GA, which is 
a new, iterative, optimization method that emphasizes some facets of natural evolution. 
GAs approximate an optimal solution to the problem at hand; they are by nature sto-
chastic  algorithms  whose  search  methods  model  natural  phenomena  such  as  genetic 
inheritance and the Darwinian strife for survival.  

   13.1  

  FUNDAMENTALS OF  GA  s  

 GAs are derivative - free, stochastic - optimization methods based loosely on the concepts 
of natural selection and evolutionary processes. They were ﬁ rst proposed and investi-
gated by John Holland at the University of Michigan in 1975. The basic idea of GAs 
was revealed by a number of biologists when they used computers to perform simula-
tions of natural genetic systems. In these systems, one or more chromosomes combine 
to form the total genetic prescription for the construction and operation of some organ-
isms. The chromosomes are composed of genes, which may take a number of values 
called allele values. The position of a gene (its locus) is identiﬁ ed separately from the 
gene ’ s function. Thus, we can talk of a particular gene, for example, an animal ’ s eye -
 color gene, with its locus at position 10 and its allele value as blue eyes. 

 Before going into details of the applications of GAs in the following sections, let 
us  understand  their  basic  principles  and  components.  GAs  encode  each  point  in  a 
parameter or solution space into a binary - bit string called a chromosome. These points 

FUNDAMENTALS  OF  GAs 

387

  TA BLE 13.1.     Basic Concepts in Genetic Algorithms 

   Concept in Natural Evolution  

   Concept in Genetic Algorithms  

  Chromosome  
  Gene  
  Locus  
  Allele  
  Genotype  
  Phenotype  

  String  
  Features in the string  
  Position in the string  
  Position value (usually 0 or 1)  
  String structure  
  Set of characteristics (features)  

in an n - dimensional space do not represent samples in the terms that we deﬁ ned them 
at the beginning of this book. While samples in other data - mining methodologies are 
data sets given in advance for training and testing, sets of n - dimensional points in GAs 
are a part of a GA, and they are produced iteratively in the optimization process. Each 
point or binary string represents a potential solution to the problem that is to be solved. 
In GAs, the decision variables of an optimization problem are coded by a structure of 
one or more strings, which are analogous to chromosomes in natural genetic systems. 
The coding strings are composed of features that are analogous to genes. Features are 
located  in  different  positions  in  the  string,  where  each  feature  has  its  own  position 
(locus) and a deﬁ nite allele value, which complies with the proposed coding method. 
The string structures in the chromosomes go through different operations similar to the 
natural - evolution  process  to  produce  better  alternative  solutions.  The  quality  of  new 
chromosomes is estimated based on the  “ ﬁ tness ”  value, which can be considered as the 
objective function for the optimization problem. The basic relations between concepts 
in natural evolution and GAs are given in Table  13.1 . Instead of single a point, GAs 
usually keep a set of points as a population, which is then evolved repeatedly toward 
a better overall ﬁ tness value. In each generation, the GA constructs a new population 
using genetic operators such as crossover and mutation. Members with higher ﬁ tness 
values are more likely to survive and participate in mating or  crossover operations .   

 As  a  general - purpose  optimization  tool,  GAs  are  moving  out  of  academia  and 
ﬁ nding signiﬁ cant applications in many other venues. Typical situations where GAs are 
particularly useful are in difﬁ cult optimization cases for which analytical methods do 
not work well. GAs have been quite successfully applied to optimization problems like 
wire  routing,  scheduling,  adaptive  control,  game  playing,  transportation  problems, 
TSPs, database query optimization, and machine learning. In the last decades, the sig-
niﬁ cance of optimization has grown even further because many important large - scale, 
combinatorial - optimization problems and highly constrained engineering problems can 
only be solved approximately. GAs aim at such complex problems. They belong to the 
class  of  probabilistic  algorithms,  yet  they  are  very  different  from  random  algorithms 
as they combine elements of directed and stochastic search. Another important property 
of genetic - based search methods is that they maintain a population of potential solutions 
while  all  other  methods  process  a  single  point  of  the  search  space.  Because  of  these 
characteristics, GAs are more robust than existing directed - search methods. 

388 

GENETIC  ALGORITHMS

 GAs are popular because they do not depend on functional derivatives, and they 

have the following characteristics:

   1.      GAs  are  parallel - search  procedures  that  can  be  implemented  on  parallel -

 processing machines to massively speed up their operations.  

  2.      GAs are applicable to both continuous -  and discrete - optimization problems.  
  3.      GAs are stochastic and less likely to get trapped in local minima, which inevi-

tably are present in any practical optimization application.  

  4.      GAs ’  ﬂ exibility facilitates both structure and parameter identiﬁ cation in complex 

models.    

 The GA theory provides some explanations of why, for a given problem formula-
tion, we may obtain convergence to the sought optimal point. Unfortunately, practical 
applications do not always follow the theory, the main reasons being:

   1.      the coding of the problem often moves the GA to operate in a different space 

than that of the problem itself;  

  2.      there are practical limits on the hypothetically unlimited number of iterations 

(generations in the GA); and  

  3.      there is a limit on the hypothetically unlimited population size.    

 One of the implications of these observations is the inability of GAs, under certain 
conditions, to ﬁ nd the optimal solution or even an approximation to the optimal solu-
tion; such failures are usually caused by premature convergence to a local optimum. 
Do not forget that this problem is common not only for the other optimization algo-
rithms but also for the other data - mining techniques.  

   13.2  

  OPTIMIZATION USING  GA  s  

 Let us note ﬁ rst that without any loss of generality we can assume that all optimization 
problems can be analyzed as maximization problems only. If the optimization problem 
is to minimize a function f(x), this is equivalent to maximizing a function g(x)    =     − f(x). 
Moreover, we may assume that the objective function f(x) takes positive values in its 
domain. Otherwise, we can translate the function for some positive constant C so that 
it will be always positive, that is,

   max

f* x

( ) max { ( )

+
f x C
}

=

 If each variable x i , with real values, is coded as a binary string of length  m , then 

the relation between the initial value and the coded information is

   x

i

= +

a decimal binary-string
(

) {[

−
b a /[

]

2

m

−

1  
]}

i

  
OPTIMIZATION  USING  GAs 

389

where the variable x i  can take the values from a domain D i     =    [a, b], and m is the small-
est integer such that the binary code has the required precision. For example, the value 
for  variable  x  given  on  the  domain  [10,  20]  is  a  binary - coded  string  with  the  length 
equal  to  3  and  the  code  100. While  the  range  of  codes  is  between  000  and  111,  the 
question  is: What  is  the  real  value  of  the  coded  variable  x?  For  this  example,  m    =    3 
and the corresponding precision is

   [

−
b a /
] [

2

m

− =
]
1

−
20 10

(

3

/
) (

2

−

)
1

=

=
10 7 1 42

/

.

and  that  is  the  difference  between  two  successive  x i   values  that  could  be  tested  as 
candidates for extreme. Finally, the attribute with the code 100 has a decimal value

   x

=

10

+

decimal 

(
100 1 42 10 4 1 42 15 68

)

.

.

.

+ ⋅

=

=

⋅

 Each  chromosome  as  a  potential  solution  is  represented  by  a  concatenation  of 
binary codes for all features in the problem to be optimized. Its total length m is a sum 
of the features ’  code lengths m i :

=

   m

k

∑

=
1

i

mi

where k is the number of features or input variables for the problem at hand. When we 
introduce these basic principles of a code construction, it is possible to explain the main 
steps of a GA. 

   13.2.1  

  Encoding Schemes and Initialization 

 A  GA  starts  with  designing  a  representation  of  a  solution  for  the  given  problem. A 
solution  here  means  any  value  that  is  a  candidate  for  a  correct  solution  that  can  be 
evaluated.  For  example,  suppose  we  want  to  maximize  function  y    =    5    −    (x    −    1) 2 . 
Then  x    =    2  is  a  solution,  x    =    2.5  is  another  solution,  and  x    =    3  is  the  correct 
solution  of  the  problem  that  maximizes  y.  The  representation  of  each  solution  for  a 
GA  is  up  to  the  designer.  It  depends  on  what  each  solution  looks  like  and  which 
solution form will be convenient for applying a GA. The most common representation 
of  a  solution  is  as  a  string  of  characters,  that  is,  a  string  of  codes  for  feature  repre-
sentation, where the characters belong to a ﬁ xed alphabet. The larger the alphabet is, 
the  more  the  information  that  can  be  represented  by  each  character  in  the  string  is. 
Therefore,  fewer  elements  in  a  string  are  necessary  to  encode  speciﬁ c  amounts  of 
information.  However,  in  most  real - world  applications,  GAs  usually  use  a  binary -
 coding schema. 

 The encoding process transforms points in a feature space into a bit - string repre-
sentation. For instance, a point (11, 6, 9) in a three - dimensional (3 - D) feature space, 
with  ranges  [0,  15]  for  each  dimension,  can  be  represented  as  a  concatenated  binary 
string:

 
  
 
390 

GENETIC  ALGORITHMS

11 6 9
   (
)
,

,

⇒

101101101001
(
)

 in which each feature ’ s decimal value is encoded as a gene composed of four bits using 
a binary coding. 

 Other encoding schemes, such as Gray coding, can also be used and, when neces-
sary, arrangements can be made for encoding negative, ﬂ oating - point, or discrete - value 
numbers. Encoding schemes provide a way of translating problem - speciﬁ c knowledge 
directly  into  the  GA  framework.  This  process  plays  a  key  role  in  determining  GAs ’  
performances. Moreover, genetic operators can and should be designed along with the 
encoding scheme used for a speciﬁ c application. 

 A set of all feature values encoded into a bit string represents one chromosome. In 
GAs we are manipulating not a single chromosome but a set of chromosomes called a 
population.  To  initialize  a  population,  we  can  simply  set  some   pop - size   number  of 
chromosomes randomly. The size of the population is also one of the most important 
choices faced by any user of GAs and may be critical in many applications: Will we 
reach the approximate solution at all, and if yes, how fast? If the population size is too 
small, the GA may converge too quickly and maybe to a solution that is only the local 
optimum; if it is too large, the GA may waste computational resources and the waiting 
time for an improvement might be too long.  

   13.2.2  

  Fitness Evaluation 

 The  next  step,  after  creating  a  population,  is  to  calculate  the  ﬁ tness  value  of  each 
member  in  the  population  because  each  chromosome  is  a  candidate  for  an  optimal 
solution. For a maximization problem, the ﬁ tness value f i  of the  i th member is usually 
the objective function evaluated at this member (or the point in parameter space). The 
ﬁ tness of a solution is a measure that can be used to compare solutions to determine 
which is better. The ﬁ tness values may be determined from complex analytical formu-
las,  simulation  models,  or  by  referring  to  observations  from  experiments  or  real - life 
problem settings. GAs will work correctly if ﬁ tness values are determined appropriately, 
keeping  in  mind  that  a  selection  of  the  objective  function  is  highly  subjective  and 
problem - dependent. 

 We  usually  need  ﬁ tness  values  that  are  positive,  so  some  kind  of  scaling  and/or 
translation of data may become necessary if the objective function is not strictly posi-
tive. Another approach is to use the rankings of members in a population as their ﬁ tness 
values. The advantage of this approach is that the objective function does not need to 
be accurate, as long as it can provide the correct ranking information.  

   13.2.3  

  Selection 

 In  this  phase,  we  have  to  create  a  new  population  from  the  current  generation.  The 
selection  operation  determines  which  parent  chromosomes  participate  in  producing 
offspring  for  the  next  generation.  Usually,  members  are  selected  for  mating  with  a 
selection  probability  proportional  to  their  ﬁ tness  values.  The  most  common  way  to 
implement this method is to set the selection probability p equal to

  
OPTIMIZATION  USING  GAs 

391

   p

i

=

f
i

n

∑

=
1

k

f
k

where  n  is  the  population  size  and  f i   is  a  ﬁ tness  value  for  the   i th  chromosome.  The 
effect  of  this  selection  method  is  to  allow  members  with  above - average  values  to 
reproduce and replace members with below - average ﬁ tness values. 

 For the selection process (selection of a new population with respect to the prob-
ability distribution based on ﬁ tness values), a roulette wheel with slots sized according 
to ﬁ tness for each chromosome is used. We construct such a roulette wheel as follows:

   1.      Calculate the ﬁ tness value f(v i ) for each chromosome v i .  
  2.      Find the total ﬁ tness of the population:

pop size
-

∑ (
f vi

)

=

   F

=
1

i

  3.      Calculate the probability of a selection p i  for each chromosome v i :

   p

i

= (

)
f v /F
i

  4.      Calculate a cumulative probability q i  after each chromosome v i  is included:

=

   q

i

i

∑

=
1

j

p

j

where  q  increases  from  0  to  maximum  1. Value  1  shows  that  all  chromosomes  from 
the population are included into a cumulative probability.    

 The selection process is based on spinning the roulette wheel  pop - size  times. Each 
time, we select a single chromosome for a new population. An implementation could 
repeat steps 1 and 2  pop - size  times:

   1.      Generate a random number r from the range [0, 1].  
  2.      If r    <    q 1 , then select the ﬁ rst chromosome v 1 ; otherwise, select the  i th chromo-

some v i  such that q i − 1     <    r    ≤    q i .    

 Obviously,  some  chromosomes  would  be  selected  more  than  once.  That  is  in 
accordance with the theory. The GA performs a multidirectional search by maintaining 
a  population  of  potential  solutions  and  encourages  good  solutions.  The  population 
undergoes  a  simulated  evolution — in  each  generation  the  relatively   “ good ”   solutions 
reproduce  while  the  relatively   “ bad ”   solutions  die.  To  distinguish  between  different 
solutions,  we  use  an  objective  or  evaluation  function,  which  plays  the  role  of  an 
environment.  

 
   
   
 
392 

GENETIC  ALGORITHMS

   13.2.4  

  Crossover 

 The  strength  of  GAs  arises  from  the  structured  information  exchange  of  crossover 
combinations  of  highly  ﬁ t  individuals.  So  what  we  need  is  a  crossover - like  operator 
that  would  exploit  important  similarities  between  chromosomes.  The  probability  of 
crossover (PC) is the parameter that will deﬁ ne the expected number of chromosomes —
 PC   ·    pop - size  — which  undergo  the  crossover  operation.  We  deﬁ ne  the  chromosomes 
for crossover in a current population using the following iterative procedure. Steps 1 
and 2 have to be repeated for all chromosomes:

   1.      Generate a random number r from the range [0, 1].  
  2.      If r    <    PC, select the given chromosome for crossover.    

 If  PC  is  set  to  1,  all  chromosomes  in  the  population  will  be  included  into  the 
crossover  operation;  if  PC    =    0.5,  only  half  of  the  population  will  perform  crossover 
and the other half will be included into a new population directly without changes. 

 To  exploit  the  potential  of  the  current  gene  pool,  we  use  crossover  operators  to 
generate new chromosomes that will retain the good features from the previous genera-
tion. Crossover is usually applied to selected pairs of parents. 

  One - point crossover  is the most basic crossover operator, where a crossover point 
on the genetic code is selected at random, and two parent chromosomes are interchanged 
at  this  point.  In   two - point  crossover ,  two  points  are  selected,  and  a  part  of  chromosome 
string between these two points is then swapped to generate two children of the new genera-
tion. Examples of one -  and two - point crossover are shown in Figure  13.1 .   

 We can deﬁ ne an n - point crossover similarly, where the parts of strings between 
points 1 and 2, 3 and 4, and ﬁ nally n - 1 and n are swapped. The effect of crossover is 
similar to that of mating in the natural evolutionary process in which parents pass seg-
ments  of  their  own  chromosomes  on  to  their  children.  Therefore,  some  children  are 
able  to  outperform  their  parents  if  they  get   “ good ”   genes  or  genetic  traits  from  their 
parents.  

Selected point for one-point crossover (after the fifth position in the string) 

⇓
1 0 0 1 1 1 1 0  

1 0 1 1 0 0 1 0  

1 0 0 1 0 0 1 0 

1 0 1 1 1 1 1 0 

⇒

(a)

Selected points for two-point crossover (after the second and fifth positions in the strings) 

⇓

⇓

1 0 0 1 1 1 1 0  

1 0 1 1 0 0 1 0  

1 0 1 1 0 1 1 0 

1 0 0 1 1 0 1 0 

⇒

(b)

     Figure 13.1.      Crossover operators. (a) One - point crossover; (b) two point crossover.  

 
 
 
 
 
 
 
 
 
 
 
 
 
 
OPTIMIZATION  USING  GAs 

393

   13.2.5  

  Mutation 

 Crossover exploits existing gene potentials, but if the population does not contain all 
the  encoded  information  needed  to  solve  a  particular  problem,  no  amount  of  gene 
mixing can produce a satisfactory solution. For this reason, a mutation operator capable 
of spontaneously generating new chromosomes is included. The most common way of 
implementing  mutation  is  to  ﬂ ip  a  bit  with  a  probability  equal  to  a  very  low  given 
mutation rate (MR). A mutation operator can prevent any single bit from converging 
to a value through the entire population, and, more important, it can prevent the popula-
tion from converging and stagnating at any local optima. The MR is usually kept low 
so  good  chromosomes  obtained  from  crossover  are  not  lost.  If  the  MR  is  high  (e.g., 
above 0.1), GA performance will approach that of a primitive random search. Figure 
 13.2  provides an example of mutation.   

 In  the  natural  evolutionary  process,  selection,  crossover,  and  mutation  all  occur 
simultaneously  to  generate  offspring.  Here  we  split  them  into  consecutive  phases  to 
facilitate implementation of and experimentation with GAs. Note that this section only 
gives a general description of the basics of GAs. Detailed implementations of GAs vary 
considerably, but the main phases and the iterative process remain. 

 At  the  end  of  this  section  we  can  summarize  that  the  major  components  of  GA 
include  encoding  schemata,  ﬁ tness  evaluation,  parent  selection,  and  application  of 
crossover operators and mutation operators. These phases are performed iteratively, as 
presented in Figure  13.3 .   

Randomly selected mutated bit
(in the sixth position) 
⇓

1 0 0 1 1 1 1 0  

Chromosome after mutation 

⇓

⇒

1 0 0 1 1 0 1 0  

     Figure 13.2.      Mutation operator.  

Encoding schemata

Fitness evaluation

Testing the end of the algorithm 

Halt 

YES 

NO 

Parent selection

Crossover operators

Mutation operators

     Figure 13.3.      Major phases of a genetic algorithm.  

 
 
 
 
 
 
394 

GENETIC  ALGORITHMS

 It is relatively easy to keep track of the best individual chromosomes in the evolu-
tion process. It is customary in GA implementations to store  “ the best ever ”  individual 
at  a  separate  location.  In  that  way,  the  algorithm  would  report  the  best  value  found 
during the whole process, just in the ﬁ nal population. 

 Optimization under constraints is also the class of problems for which GAs are an 
appropriate solution. The constraint - handling techniques for genetic algorithms can be 
grouped  into  different  categories.  One  typical  way  of  dealing  with  GA  candidates 
that  violate  the  constraints  is  to  generate  potential  solutions  without  considering  the 
constraints, and then to penalize them by decreasing the  “ goodness ”  of the evaluation 
function.  In  other  words,  a  constrained  problem  is  transformed  to  an  unconstrained 
one by associating a penalty with all constraint violations. These penalties are included 
in  the  function  evaluation,  and  there  are  different  kinds  of  implementations.  Some 
penalty  functions  assign  a  constant  as  a  penalty  measure.  Other  penalty  functions 
depend on the degree of violation: the larger the violation, the greater the penalty. The 
growth of the penalty function can be logarithmic, linear, quadratic, exponential, and 
so  on,  depending  upon  the  size  of  the  violation.  Several  implementations  of  GA 
optimization  under  constraints  are  given  in  the  texts  recommended  for  further  study 
(Section 13.9).   

   13.3  

  A SIMPLE ILLUSTRATION OF A  GA  

 To apply a GA for a particular problem, we have to deﬁ ne or to select the following 
ﬁ ve components:

   1.      a  genetic  representation  or  encoding  schema  for  potential  solutions  to  the 

problem;  

  2.      a way to create an initial population of potential solutions;  
  3.      an evaluation function that plays the role of the environment, rating solutions 

in terms of their  “ ﬁ tness ” ;  

  4.      Genetic operators that alter the composition of the offspring; and  
  5.      values  for  the  various  parameters  that  the  GA  uses  (population  size,  rate  of 

applied operators, etc.).    

 We  discuss  the  main  features  of  GAs  by  presenting  a  simple  example.  Suppose 
that the problem is the optimization of a simple function of one variable. The function 
is deﬁ ned as

( ) = 2   
   f x

x

 The task is to ﬁ nd x from the range [0,31], which maximizes the function f(x). We 
selected this problem because it is relatively easy to analyze optimization of the func-
tion  f(x)  analytically,  to  compare  the  results  of  the  analytic  optimization  with  a  GA, 
and to ﬁ nd the approximate optimal solution. 

A  SIMPLE  ILLUSTRATION  OF  A  GA 

395

   13.3.1  

  Representation 

 The ﬁ rst step in the GA is to represent the solution alternative (a value for the input 
feature) in a coded - string format. Typically, the string is a series of features with their 
values; each feature ’ s value can be coded with one from a set of discrete values called 
the allele set. The allele set is deﬁ ned according to the needs of the problem, and ﬁ nding 
the appropriate coding method is a part of the art of using GAs. The coding method 
must be minimal but completely expressive. We will use a binary vector as a chromo-
some to represent real values of the single variable x. The length of the vector depends 
on the required precision, which, in this example, is selected as 1. Therefore, we need 
a minimum ﬁ ve - bit code (string) to accommodate the range with required precision:

−
b a /
) (

2

   (

m

− ≤
)
1

Required precision

−
   (
31 0

/ m
) (
2

− ≤
)
1

1

m ≥

   2
32
   m ≥ 5   

 For this example, the mapping from a real number to a binary code is deﬁ ned by 

the relation (because a    =    0):

   Code

=

binary xdecimal
(

)   

 Opposite mapping, from the binary code to the real value of the argument, is also 

unique:

=

   x

(
decimal Codebinary

)  

and  it  will  be  used  only  for  checking  the  intermediate  results  of  optimization.  For 
example, if we want to transform the value x    =    11 into a binary string, the corresponding 
code will be 01011. On the other hand, code 11001 represents the decimal value x    =    25.  

   13.3.2  

  Initial Population 

 The initialization process is very simple: We randomly create a population of chromo-
somes (binary codes) with the given length. Suppose that we decide that the parameter 
for the number of strings in the population is equal to four. Then one possible randomly 
selected population of chromosomes is

   CR1

   CR2

   CR3

=

=

=

01101

11000

01000

   CR4

=

10011

 
 
 
 
 
 
   
396 

GENETIC  ALGORITHMS

   13.3.3  

  Evaluation 

 The evaluation function for binary vectors representing chromosomes is equivalent to 
the initial function f(x) where the given chromosome represents the binary code for the 
real value x. As noted earlier, the evaluation function plays the role of the environment, 
rating potential solutions in terms of their ﬁ tness. For our example, four chromosomes 
CR 1  to CR 4  correspond to values for input variable x:

   x CR1
(

1

   x CR2
(

2

   x CR3
(

   x CR4
(

4

13

) =
) =
24
) =  
8
=

19

.

)

3

 Consequently, the evaluation function would rate them as follows:

   f x(

)1

=

169

   f x(

)2

   f x(

)3

   f x(

)4

=

576
64=
=

361

 The results of evaluating the chromosomes initially generated may be given in a 
tabular form, and they are represented in Table  13.2 . The expected reproduction column 
shows  “ the evaluated quality ”  of chromosomes in the initial population. Chromosomes 
CR 2   and  CR 4   are  more  likely  to  be  reproduced  in  the  next  generation  than  CR 1  
and CR 3 .    

   13.3.4  

  Alternation 

 In the alternation phase, the new population is selected based on the population evalu-
ated in the previous iteration. Clearly, the chromosome CR 4  in our example is the best 

  TABLE 13.2.     Evaluation of the Initial Population 

   CR i   

   Code  

  01101  
  11000  
  01000  
  10011  

  1  
  2  
  3  
  4  
   ∑   
  Average  
  Max  

   x  

  13  
  24  
  8  
  19  

   f(x)  

   f(x)/ ∑ f(x)  

   Expected 
Reproduction: f(x)/fav  

  169  
  576  
  64  
  361  
  1170  
  293  
  576  

  0.14  
  0.49  
  0.06  
  0.31  
  1.00  
  0.25  
  0.49  

  0.58  
  1.97  
  0.22  
  1.23  
  4.00  
  1.00  
  1.97  

 
 
  
 
 
 
  
    
    
    
    
    
    
A  SIMPLE  ILLUSTRATION  OF  A  GA 

397

                    49% 
      CR2

14% 
CR1

31% 
CR4 

    6% 
        CR3

     Figure 13.4.      Roulette wheel for selection of the next population.  

of the four chromosomes, since its evaluation returns the highest value. In the alterna-
tion phase, an individual may be selected depending on its objective - function value or 
ﬁ tness value. For maximization problems, the higher the individual ’ s ﬁ tness is, the more 
probable  that  it  can  be  selected  for  the  next  generation. There  are  different  schemes 
that  can  be  used  in  the  selection  process.  In  the  simple  GA  we  proposed  earlier,  the 
roulette wheel selection technique, an individual is selected randomly depending on a 
computed probability of selection for each individual. The probability of selection is 
computed by dividing the individual ’ s ﬁ tness value by the sum of ﬁ tness values of the 
corresponding population, and these values are represented in column 5 of Table  13.2 . 
 In the next step we design the roulette wheel, which is, for our problem, graphically 

represented in Figure  13.4 .   

 Using  the  roulette  wheel,  we  can  select  chromosomes  for  the  next  population. 
Suppose that the randomly selected chromosomes for the next generation are CR 1 , CR 2 , 
CR 2 , CR 4  (the selection is in accordance with the expected reproduction — column 6 in 
Table  13.2 ). In the next step, these four chromosomes undergo the genetic operations: 
crossover and mutation.  

   13.3.5  

  Genetic Operators 

 Crossover  is  not  necessarily  applied  to  all  pairs  of  selected  individuals. A  choice  is 
made depending on a speciﬁ ed probability called PC, which is typically between 0.5 
and 1. If crossover is not applied (PC    =    0), the offspring are simply a duplication of 
the parents. For the process of crossover it is necessary to determine the percentage of 
the population that will perform the crossover. For our particular problem we use the 
following parameters of the GA:

   1.      population size,  pop - size     =    4 (the parameter was already used).  
  2.      probability of crossover, PC    =    1.  
  3.      probability of mutation, PM    =    0.001 (the parameter will be used in a mutation 

operation).    

 
 
398 

GENETIC  ALGORITHMS

 A value of 1 for the probability of crossover translates into a 100% crossover — all 

chromosomes will be included in the crossover operation. 

 The  second  set  of  parameters  in  this  phase  of  a  GA  is  the  random  selection  of 
parents for crossover and positions in the strings where the crossover will be performed. 
Suppose that these are randomly selected pairs: CR 1  – CR 2  and CR 2  – CR 4 , and crossover 
is after the third position in the strings for both pairs. Then the selected strings

   First pair CR1

=

01101

   CR2

=

11000

   ⇑  

   Second pair CR2

=

11000

   CR4

=

10011

   ⇑  

will become, after crossover, a new population:

   CR′ =1
   CR′ =2
   CR′ =3
   CR′ =4

01100  

11001  

11011  

10000   

 The second operator that can be applied in every iteration of a GA is mutation. For 
our  example,  the  mutation  operator  has  a  probability  of  0.1%,  which  means  that  in 
the 1000 transformed bits, a mutation will be performed only once. Because we trans-
formed  only  20  bits  (one  population  of  4    ×    5  bits  is  transformed  into  another), 
the probability that a mutation will occur is very small. Therefore, we can assume that 
the  strings  CR 1  ′   to  CR 4  ′   will  stay  unchanged  with  respect  to  a  mutation  operation  in 
this  ﬁ rst  iteration.  It  is  expected  that  only  one  bit  will  be  changed  for  every  50 
iterations. 

 That was the ﬁ nal processing step in the ﬁ rst iteration of the GA. The results, in 
the form of the new population CR 1  ′  to CR 4  ′ , are used in the next iteration, which starts 
again with an evaluation process.  

   13.3.6  

  Evaluation (Second Iteration) 

 The process of evaluation is repeated in the new population. These results are given in 
Table  13.3 .   

 The process of optimization with additional iterations of the GA can be continued 
in accordance with Figure  13.3 . We will stop here with a presentation of computational 
steps for our example, and give some additional analyses of results useful for a deeper 
understanding of a GA. 

 
 
 
 
SCHEMATA 

399

  TABLE 13.3.     Evaluation of the Second Generation of Chromosomes 

   CR i   

   Code  

  01100  
  11001  
  11011  
  10000  

  1  
  2  
  3  
  4  
   ∑   
  Average  
  Max  

   x  

  12  
  25  
  27  
  16  

   f(x)  

   f(x)/ ∑ f(x)  

   Expected 
Reproduction: f(x)/fav  

  144  
  625  
  729  
  256  
  1754  
  439  
  729  

  0.08  
  0.36  
  0.42  
  0.14  
  1.00  
  0.25  
  0.42  

  0.32  
  1.44  
  1.68  
  0.56  
  4.00  
  1.00  
  1.68  

 Although the search techniques used in the GA are based on many random param-
eters, they are capable of achieving a better solution by exploiting the best alternatives 
in each population. A comparison of sums, and average and max values from Tables 
 13.2  and  13.3 

   ∑ =

1

1170

⇒ ∑ =

2

1754  

   Average
1

= ⇒
293

Average

2

=

439

   Max
1

= ⇒
576

Max

2

=

729

 shows  that  the  new,  second  population  is  approaching  closer  to  the  maximum  of  the 
function f(x). The best result obtained from the evaluation of chromosomes in the ﬁ rst 
two iterations is the chromosome CR3 ′     =    11011 and it corresponds to the feature ’ s value 
x    =    27  (theoretically  it  is  known  that  the  maximum  of  f(x)  is  for  x    =    31,  where  f(x) 
reaches the value 961). This increase will not be obtained in each GA iteration, but on 
average, the ﬁ nal population is much closer to a solution after a large number of itera-
tions. The number of iterations is one possible stopping criterion for the GA algorithm. 
The other possibilities for stopping the GA are when the difference between the sums 
in  two  successive  iterations  is  less  than  the  given  threshold,  when  a  suitable  ﬁ tness 
value is achieved, and when the computation time is limited.   

   13.4  

  SCHEMATA 

 The theoretical foundations of GAs rely on a binary - string representation of solutions, 
and on the notation of a  schema  — a template allowing exploration of similarities among 
chromosomes. To introduce the concept of a schema, we have to ﬁ rst formalize some 
related  terms.  The  search  space   Ω   is  the  complete  set  of  possible  chromosomes  or 
strings.  In  a  ﬁ xed - length  string   l,   where  each  bit  (gene)  can  take  on  a  value  in  the 
alphabet A of size  k,  the resulting size of the search space is  k l  . For example, in binary -
 coded strings where the length of the string is 8, the size of the search space is 2 8     =    256. 
A  string  in  the  population  S  is  denoted  by  a  vector  x    ∈     Ω .  So,  in  the  previously 

 
  
    
    
    
    
    
    
400 

GENETIC  ALGORITHMS

described example, x would be an element of {0, 1} 8 . A schema is a similarity template 
that deﬁ nes a subset of strings with ﬁ xed values in certain positions. 

 A schema is built by introducing a  don ’ t care  symbol ( * ) into the alphabet of genes. 
Each position in the scheme can take on the values of the alphabet (ﬁ xed positions) or 
a  “ don ’ t care ”  symbol. In the binary case, for example, the schemata of the length l are 
deﬁ ned as H    ∈    {0, 1,  * } l . A schema represents all the strings that match it on all posi-
tions other than  “  *  ” . In other words, a schema deﬁ nes a subset of the search space, or 
a hyperplane partition of this search space. For example, let us consider the strings and 
schemata of the length ten. The schema

   (*

1111 0 0 1 0 0   
)

   {(

0 1111 0 0 1 0 0

), (

11111 0 0 1 0 0

)},

   (* *

1 11 0 0 1 0 0   
)

 matches two strings

and the schema

 matches four strings

   {(

0 1 0 11 0 0 1 0 0

), (

0 1111 0 0 1 0 0

), (

11 0 11 0 0 1 0 0

), (

11111 0 0 1 0 0

)}.

 Of course, the schema

1 0 0 111 0 0 0 1   
   (
)

 represents one string only, and the schema

   (* * * * * * * * * *)   

 represents all strings of length 10. In general, the total number of possible schemata is 
( k     +    1)  l  ,  where   k   is  the  number  of  symbols  in  the  alphabet  and   l   is  the  length  of  the 
string.  In  the  binary  example  of  coding  strings,  with  a  length  of  10,  it  is 
(2 + 1) 10     =    3 10     =    59049  different  strings.  It  is  clear  that  every  binary  schema  matches 
exactly 2 r  strings, where r is the number of  don ’ t care  symbols in a schema template. 
On the other hand, each string of length m is matched by 2 m  different schemata. 

 We can graphically illustrate the representation of different schemata for ﬁ ve - bit 
codes used to optimize the function f(x)    =    x  2  on interval [0, 31]. Every schema repre-
sents  a  subspace  in  the  2 - D  space  of  the  problem.  For  example,  the  schema  1 *  *  *  *  
reduces the search space of the solutions on the subspace given in Figure  13.5 a, and 
the schema 1 * 0 *  *  has a corresponding search space in Figure  13.5 b.   

 Different schemata have different characteristics. There are three important schema 
properties:  order  (O),  length  (L), and  ﬁ tness  (F). The  order  of the schema S denoted 

 
  
SCHEMATA 

401

f(x)

      f(x) 

      0                  16                     31         x
(a)

 0

  16   19  24  27  31  x 
(b)

     Figure  13.5.      f(x)    =    x 2 :  Search  spaces  for  different  schemata.  (a)  Schema  1 *  *  *  * ;  (b)  Schema 
1 * 0 *  * .  

by  O(S)  is  the  number  of  0  and  1  positions,  that  is,  ﬁ xed  positions  presented  in  the 
schema. A computation of the parameter is very simple: It is the length of the template 
minus the number of  don ’ t care  symbols. For example, the following three schemata, 
each of length 10

   S1

   S2

   S3

*
0 0 1 11 0

= (* * *
)  
= (* * * * * * * *)  
0
= (

111 0 1

0 0 1

* *

)  

0

have the following orders:

(
   O S
1

)

=

− =

10 4

6
,

(
O S
2

)

=

− =

10 8

2
,

(
O S
3

)

=

10 2

− =   
8

 The schema S 3  is the most speciﬁ c one and the schema S 2  is the most general one. 
The notation of the order of a schema is useful in calculating survival probabilities of 
the schema for mutations. 

 The  length  of the schema S, denoted by L(S), is the distance between the ﬁ rst and 
the last ﬁ xed - string positions. It deﬁ nes the compactness of information contained in a 
schema. For example, the values of this parameter for the given schemata S 1  to S 3  are

(
   L S
1

)

=

− =

10 4

6
,

(
L S
2

)

= − =
9 6

3
,

(
L S
3

)

=

− =
10 1 9

.

 Note that the schema with a single ﬁ xed position has a length of 0. The length L 
of a schema is a useful parameter in calculating the survival probabilities of the schema 
for crossover. 

 Another property of a schema S is its  ﬁ tness  F(S, t) at time t (i.e., for the given 
population). It is deﬁ ned as the average ﬁ tness of all strings in the population matched 
by the schema S. Assume there are p strings {v 1 , v 2 ,    . . .    , v p } in a population matched 
by a schema S at the time t. Then

  
402 

GENETIC  ALGORITHMS

   F S t
( , )

=





p

∑

=
1

i

(
f v

i

)





p

 The fundamental theorem of schema construction given in this book without proof 
explains that the  short  (high O),  low - order  (low L), and  above - average  schemata (high 
F) receive an exponentially increasing number of strings in the next generations of a 
GA. An immediate result of this theorem is that GAs explore the search space by short, 
low - order schemata that subsequently are used for information exchange during cross-
over and mutation operations. Therefore, a GA seeks near - optimal performance through 
the  analysis  of  these  schemata,  called  the   building  blocks .  Note,  however,  that  the 
building - blocks approach is just a question of empirical results without any proof, and 
these rules for some real - world problems are easily violated.  

   13.5  

   TSP  

 In this section, we explain how a GA can be used to approach the TSP. Simply stated, 
the traveling salesman must visit every city in his territory exactly once and then return 
to the starting point. Given the cost of travel between all the cities, how should he plan 
his itinerary at a minimum total cost for the entire tour? The TSP is a problem in com-
binatorial optimization and arises in numerous applications. There are several branch -
 and - bound  algorithms,  approximate  algorithms,  and  heuristic  search  algorithms  that 
approach  this  problem.  In  the  last  few  years,  there  have  been  several  attempts  to 
approximate the TSP solution using GA. 

 The TSP description is based on a graph representation of data. The problem could 
be formalized as: Given an undirected weighted graph, ﬁ nd the shortest route, that is, 
a shortest path in which every vertex is visited exactly once, except that the initial and 
terminal vertices are the same. Figure  13.6  shows an example of such a graph and its 

A 

7 

D 

9 

6 

           3 

5 

        4  

C

8 

B

  10 

E

3 
Optimal solution: A ----->B------>C-------E------>D----->(A) 

7 

9 

4 

8 

     Figure 13.6.      Graphical representation of the traveling - salesman problem with a correspond-
ing optimal solution.  

  
 
 
       
 
 
 
TSP 

403

optimal solution. A, B, C, and so on, are the cities that were visited, and the numbers 
associated with the edges are the cost of travel between the cities.   

 It is natural to represent each solution of the problem, even if it is not optimal, as 
a permutation of the cities. The terminal city can be omitted in the representation since 
it should always be the same as the initial city. For the computation of the total distance 
of each tour, the terminal city must be counted. 

 By representing each solution as a permutation of the cities, each city will be visited 
exactly once. Not every permutation, however, represents a valid solution, since some 
cities are not directly connected (e.g., A and E in Fig.  10.6 ). One practical approach is 
to assign an artiﬁ cially large distance between cities that are not directly connected. In 
this way, invalid solutions that contain consecutive, nonadjacent cities will disappear, 
and all solutions will be allowed. 

 Our  objective  here  is  to  minimize  the  total  distance  of  each  tour. We  can  select 
different ﬁ tness functions that will reﬂ ect this objective. For example, if the total dis-
tance  is  s,  then  f(s)  could  be  a  simple  f(s)    =    s  if  we  minimize  the  ﬁ tness  function; 
alternatives  for  the  maximization  of  a  ﬁ tness  function  are  f(s)    =    1/s,  f(s)    =    1/s 2 , 
f(s)    =    K    −    s,  where  K  is  a  positive  constant  that  makes  f(s)    ≥    0. There  is  no  general 
formula to design the best ﬁ tness function. But, when we do not adequately reﬂ ect the 
goodness  of  the  solution  in  the  ﬁ tness  function,  ﬁ nding  an  optimal  or  near - optimal 
solution will not be effective. 

 When  dealing  with  permutations  as  solutions,  simple  crossover  operations  will 
result in invalid solutions. For example, for the problem in Figure  10.6 , a crossover of 
two solutions after the third position in the strings

will produce new strings

   ⇓  

   A D E B C  

   A E C D B  

   ⇑  

   A D E D B  

   A E C B C   

 which are invalid solutions because they do not represent permutations of initial ele-
ments in the strings. To avoid this problem, a modiﬁ ed crossover operation is introduced 
that directly operates on permutations and still gives permutations. This is a  partially 
matched crossover  (PMC) operation. It can be used not only for the TSPs, but also for 
any other problems that involve permutations in a solution ’ s representation. We illus-
trate the effects of the PMC operation by an example. Assume that two solutions are 
given as permutations of the same symbols, and suppose that the PMC is a two - point 
operation. Selecting two strings and two random crossing points is the ﬁ rst step in the 
process of applying the PMC operation.

404 

GENETIC  ALGORITHMS

   ⇓⇓  

   A D E B C  

   A E C D B  

   ⇑⇑   

 The  substrings  between  crossing  points  are  called  matching  sections.  In  our 
example, we have two elements in the matching sections: E B for the ﬁ rst string and 
C D for the second one. The crossover operation requires an exchange of the symbols 
E with C, denoted as an ordered pair (E, C), and B with D, represented as (B, D). The 
next step in the PMC operation is to permute each of these two - element permutations 
in each string. In other words, it is necessary to exchange the places for pairs (E, C) 
and (B, D) in both strings. The result of (E, C) changes in the ﬁ rst string is A D C B 
E, and after the second pair (B, D) has been changed, the ﬁ nal version of the ﬁ rst string 
is A B C D E. The second string after application of the same permutations will become 
A C E D B ﬁ rst, and then A C E B D ﬁ nally. If we analyze the two strings obtained by 
PMC operation

   ⇓⇓  

   A B C D E  

   A C E B D  

   ⇑⇑   

 we  can  see  that  middle  parts  of  the  strings  were  really  exchanged  as  in  a  standard 
crossover operation. On the other hand, the two new strings remain as valid permuta-
tions since the symbols are actually permuted within each string. 

 The  other  steps  of  a  GA  applied  to  the  TSP  are  unchanged.  A  GA  based  on 
the above operator outperforms a random search for TSP, but still leaves much room 
for  improvement. Typical  results  from  the  algorithm,  when  applied  to  100  randomly 
generated cities gave after 20,000 generations, a value of the whole tour 9.4% above 
minimum.  

   13.6  

  MACHINE LEARNING USING  GA  s  

 Optimization problems are one of the most common application categories of GAs. In 
general,  an  optimization  problem  attempts  to  determine  a  solution  that,  for  example, 
maximizes the proﬁ t in an organization or minimizes the cost of production by deter-
mining  values  for  selected  features  of  the  production  process.  Another  typical  area 
where GAs are applied is the discovery of input - to - output mapping for a given, usually 
complex, system, which is the type of problem that all machine - learning algorithms are 
trying to solve. 

MACHINE  LEARNING  USING  GAs 

405

 The basic idea of input - to - output mapping is to come up with an appropriate form 
of a function or a model, which is typically simpler than the mapping given originally —
 usually represented through a set of input – output samples. We believe that a function 
best describes this mapping. Measures of the term  “ best ”  depend on the speciﬁ c appli-
cation. Common measures are accuracy of the function, its robustness, and its compu-
tational efﬁ ciency. Generally, determining a function that satisﬁ es all these criteria is 
not necessarily an easy task; therefore, a GA determines a  “ good ”  function, which can 
then  be  used  successfully  in  applications  such  as  pattern  classiﬁ cation,  control,  and 
prediction. The process of mapping may be automated, and this automation, using GA 
technology,  represents  another  approach  to  the  formation  of  a  model  for  inductive 
machine learning. 

 In the previous chapters of this book we described different algorithms for machine 
learning.  Developing  a  new  model  (input - to - output  abstract  relation)  based  on  some 
given set of samples is an idea that can also be implemented in the domain of GAs. 
There are several approaches to GA - based learning. We will explain the principles of 
the technique that is based on schemata and the possibilities of its application to clas-
siﬁ cation problems. 

 Let us consider a simple database, which will be used as an example throughout 
this  section.  Suppose  that  the  training  or  learning  data  set  is  described  with  a  set  of 
attributes where each attribute has its categorical range: a set of possible values. These 
attributes are given in Table  13.4 .   

 The description of a classiﬁ cation model with two classes of samples, C1 and C2, 
can be represented in an  if - then  form where on the left side is a Boolean expression of 
the input features ’  values and on the right side its corresponding class:

   ([

A x] A

[

1

∧

=

=

s

])

∨

([

=
A y
1

]

5

∧

   ([

A

3

=

∧
y] A
[

4

=

n

])

∨

(

A x
1

= ⇒  

C
1

4

n

[
])
A
= ⇒   

C

)

2

 These classiﬁ cation rules or classiﬁ ers can be represented in a more general way: 
as some strings over a given alphabet. For our data set with six inputs and one output, 
each classiﬁ er has the form

   (

p p p p p p
,
,
3
1

,

,

,

2

4

5

) :

d

6

  TAB LE 13.4.     Attributes A i  with Possible 
Values for a Given Data Set s 

   Attributes  

  A 1   
  A 2   
  A 3   
  A 4   
  A 5   
  A 6   

   Values  

  x, y, z  
  x, y, z  
  y, n  
  m, n, p  
  r, s, t, u  
  y, n  

 
406 

GENETIC  ALGORITHMS

where p i  denotes the value of the  i th attribute (1    ≤    i    ≤    6) for the domains described in 
Table  13.4 , and  d  is one of two classes. To describe the classiﬁ cation rules in a given 
form, it is necessary to include the  “ don ’ t care ”  symbol  “  *  ”  into the set of values for 
each attribute. For example, the new set of values for attribute A 1  is {x, y, z,  * }. Similar 
extensions are given for other attributes. The rules that were given earlier for classes 
C 1  and C 2  can be decomposed to the segments under conjunction (AND logical opera-
tion) and expressed as

x
   ( * * * *):

s

C1  

n
   ( * * * *):
y

C1  

   (* *

y n

* *):

C2  

x
   ( * * * * *):

C2   

 To simplify the example, we assume that the system has to classify into only two 
classes: C 1  and  not C 1 . Any system can be easily generalized to handle multiple classes 
(multiple classiﬁ cation). For a simple classiﬁ cation with a single rule C 1  we can accept 
only two values for d: d    =    1 (member of the class C 1 ) and d    =    0 (not a member of the 
class C 1 ). 

 Let  us  assume  that  at  some  stage  of  the  learning  process,  there  is  a  small  and 
randomly generated population of classiﬁ ers Q in the system, where each classiﬁ er is 
given with its strength s:

Q
1
Q

2

Q

3

Q

4

(* * *

m s

*): ,
1
n

(* * * * ): ,
0

y

(

x y

* * * *): ,
1

(* * * * *): ,
0

z

s

4

s
1

s

2
s

3

=

=

.
12 3

.
10 1

=
77
.
8
.=
2 3

 Strengths s i  are parameters that are computed based on the available training data 
set. They show the ﬁ tness of a rule to the training data set, and they are proportional 
to the percentage of the data set supported by the rule. 

 The basic iterative steps of a GA, including corresponding operators, are applied 
here  to  optimize  the  set  of  rules  with  respect  to  the  ﬁ tness  function  of  the  rules  to 
training  data  set.  The  operators  used  in  this  learning  technique  are,  again,  mutation 
and crossover. However, some modiﬁ cations are necessary for mutation. Let us con-
sider the ﬁ rst attribute A 1  with its domain {x, y, z,  * }. Thus, when mutation is called, 
we  would  change  the  mutated  character  (code)  to  one  of  the  other  three  values  that 
have equal probability. The strength of the offspring is usually the same as that of its 
parents. For example, if mutation is the rule Q 3  on the randomly selected position 2, 
replacing  the  value  y  with  a  randomly  selected  value   * ,  the  new  mutated  classiﬁ er 
will  be

   Q

3

M

( * * * * *): ,
1
x

s

3

M

.=
8 7

   
  
  
MACHINE  LEARNING  USING  GAs 

407

 The  crossover  does  not  require  any  modiﬁ cation. We  take  advantage  of  the  fact 
that all classiﬁ ers are of equal length. Therefore, to crossover two selected parents, say 
Q 1  and Q 2 

   ⇓  

1
   Q

(* * *

m s

*):
1

   Q

2 (* *

y * * n):0

we  generate  a  random  crossover - position  point.  Suppose  that  we  crossover  after  the 
third character in the string as marked; then the offspring are

   Q

c1

(* * *

* * n):0
,

and

   Q

c2

(* *

y m s ):1

*

 The  strength  of  the  offspring  is  an  average  (possibly  weighted)  of  the  parents ’  
strengths.  Now  the  system  is  ready  to  continue  its  learning  process:  starting  another 
cycle, accepting further positive and negative samples from the training set, and modi-
fying the strengths of classiﬁ ers as a measure of ﬁ tness. We can note that the training 
data  set  is  included  in  the  learning  process  through  evaluation  of  schema ’ s  strengths 
for each iteration. We expect that the population of classiﬁ ers converges to some rules 
with very high strengths. 

 One of the possible implementations of the previous ideas is the  GIL system , which 
moves the GA closer to the symbolic level — mainly by deﬁ ning specialized operators 
that manipulate binary strings. Previous symbolic classiﬁ ers are translated into binary 
strings, where for each attribute a binary string of ﬁ xed length is generated. The length 
is  equal  to  the  number  of  possible  values  for  the  given  attribute.  In  the  string,  the 
required value is set to 1 and all others are set to 0. For example, if attribute A 1  has the 
value z, it is represented with the binary string 001 (0 ’ s are for values x, y). If the value 
of some attribute is  * , that means that all values are possible, so it is represented with 
value 1 in all positions of the binary string. 

 For our previous example, with six attributes and  a total number of 17 different 

values for all attributes, the classiﬁ er symbolically represented as

x
   ( * * * *)

r

∨

n
( * * * *):
y

1 

can be transformed into the binary representation

∨
100 111 11 111 1000 11 010 111 11 010 1111 11
   (
)

|

|

|

|

|

|

|

|

|

|

where bars separate bit sets for each attribute. The operators of the GIL system are modeled 
on inductive reasoning, which includes various inductive operators such as RuleExchange, 
RuleCopy, RuleGeneralization, RuleSpecialization, RuleSplit, SelectorDrop, ReferenceChange, 
and ReferenceExtension. We discuss some of them in turn. 

 
 
 
  
 
408 

GENETIC  ALGORITHMS

   13.6.1  

  RuleExchange 

 The RuleExchange operator is similar to a crossover of the classical GA as it exchanges 
selected  complex  between  two  parent  chromosomes.  For  example,  two  parents 
(two rules)

   ⇓  

∨
100 111 11 111 1000 11 010 111 11 010 1111 11
   (
)

|

|

|

|

|

|

|

|

|

|

and  

∨
111 001 01 111 1111 01 110 100 10 010 0011 01
   (
)

|

|

|

|

|

|

|

|

|

|

may produce the following offspring (new rules)

   ⇑  

∨
100 111 11 111 1000 11 110 100 10 010 0011 01
   (
)

|

|

|

|

|

|

|

|

|

|

and  

∨
111 001 01 111 1111 01 010 111 11 010 1111 11
   (

|

|

|

|

|

|

|

|

|

|

).

   13.6.2  

  RuleGeneralization 

 This  unary  operator  generalizes  a  random  subset  of  complexes.  For  example,  for  a 
parent

100 111 11 111 1000 11 110 100 10 010 0011 01 010 111 11
   (

|

|

|

|

|

|

|

|

0010 1111 11

|

|

)  

∨

∨

and the second and third complexes selected for generalization, the bits are  OR ed and 
the following offspring is produced:

∨
100 111 11 111 1000 11 110 111 11 010 1111 11
   (

|

|

|

|

|

|

|

|

|

|

).

   13.6.3  

  RuleSpecialization 

 This unary operator specializes a random subset of complexes. For example, for a parent

100 111 11 111 1000 11 110 100 10 010 0011 01 010 111 11
   (

|

|

|

|

|

|

|

|

|

|

|

|

|

0010 1111 11

|

|

) 

∨

∨

and the second and third complexes selected for specialization, the bits are  AND ed, and 
the following offspring is produced:

∨
100 111 11 111 1000 11 010 100 10 010 0011 01
   (

|

|

|

|

|

|

|

|

|

|

).

   13.6.4  

  RuleSplit 

 This  operator  acts  on  a  single  complex,  splitting  it  into  a  number  of  complexes.  For 
example, a parent

 
   
 
 
 
 
 
   
   
GAS  FOR  CLUSTERING 

409

|

|

|
100 111 11 111 1000 11  
   (
)
   ===  

|

|

 may produce the following offspring (the operator splits the second selector):

   ⇑   

∨
100 011 11 111 1000 11 100 100 11 111 1000 11
   (
)

|

|

|

|

|

|

|

|

|

|

 The GIL system is a complex, inductive - learning system based on GA principles. 
It requires a number of parameters, such as the probabilities of applying each operator. 
The process is iterative. At each iteration, all chromosomes are evaluated with respect 
to their completeness, consistency, and ﬁ tness criteria, and a new population is formed 
with those chromosomes that are better and more likely to appear. The operators are 
applied to the new population, and the cycle is repeated.   

   13.7  

   GA  S  FOR CLUSTERING 

 Much effort has been undertaken toward applying GAs to provide better solutions than 
those  found  by  traditional  clustering  algorithms.  The  emphasis  was  on  appropriate 
encoding  schemes,  speciﬁ c  genetic  operators,  and  corresponding  ﬁ tness  functions. 
Several encoding schemes have been proposed speciﬁ cally for data clustering, and the 
main three types are  binary ,  integer , and  real encoding . 

 The  binary encoding  solution is usually represented as a binary string of length  N , 
where  N  is the number of data set samples. Each position of the binary string corre-
sponds  to  a  particular  sample.  The  value  of  the   i th  gene  is  1  if  the   i th  sample  is  a 
prototype of a cluster, and 0 otherwise. For example, the data set  s  in Table  13.5  can 
be  encoded  by  means  of  the  string  [0100001010],  in  which  samples  2,  7,  and  9  are 
prototypes for clusters C 1 , C 2 , and C 3 . The total number of 1s in the string is equal to 
an  a  priori  deﬁ ned  number  of  clusters.  Clearly,  such  an  encoding  scheme  leads  to  a 
 medoid - based representation  in which the cluster prototypes coincide with representa-
tive samples from the data set. There is an alternative way of representing a data parti-
tion using a binary encoding. The matrix of  k     ×     N  dimensions is used in which the rows 
represent  clusters,  and  the  columns  represent  samples.  In  this  case,  if  the   j th  sample 
belongs to the  i th cluster then 1 is assigned to (i,j) genotype, whereas the other elements 
of the same column receive 0. For example, using this representation, the data set in 
Table  13.5  would be encoded as 3    ×    10 matrix in Table  13.6 .   

  Integer encoding  uses a vector of  N  integer positions, where  N  is the number of 

data set samples. 

 Each  position  corresponds  to  a  particular  sample;  that  is,  the   i th  position  (gene) 
represents the  i th data sample. Assuming that there are  k  clusters, each gene has a value 
over the alphabet {1, 2, 3,    . . .    ,  k }. These values deﬁ ne the cluster labels. For example, 
the integer vector [1111222233] represents the clusters depicted in Table  13.5 . Another 
way of representing a partition by means of an integer - encoding scheme involves using 

  
410 

GENETIC  ALGORITHMS

  TA BLE 13.5.     Three Clusters Are Deﬁ ned for a Given 
Data Set s 

   Samples  

   Feature 1  

   Feature 2  

   Cluster  

  1  
  2  
  3  
  4  
  5  
  6  
  7  
  8  
  9  
  10  

  1  
  1  
  2  
  2  
  10  
  10  
  11  
  11  
  5  
  5  

  1  
  2  
  1  
  2  
  1  
  2  
  1  
  2  
  5  
  6  

  C 1   
  C 1   
  C 1   
  C 1   
  C 2   
  C 2   
  C 2   
  C 2   
  C 3   
  C 3   

  TA BLE 13.6.     Binary Encoded Data Set s Given in 
Table  13.5  

  1  
  0  
  0  

  1  
  0  
  0  

  1  
  0  
  0  

  1  
  0  
  0  

  0  
  1  
  0  

  0  
  1  
  0  

  0  
  1  
  0  

  0  
  1  
  0  

  0  
  0  
  1  

  0  
  0  
  1  

an array of only  k  elements to provide a  medoid - based representation  of the data set. 
In this case, each array element represents the index of the sample  x  i ,  i      =     1, 2,    . . .    ,  N  
(with  respect  to  the  order  the  samples  appear  in  the  data  set)  corresponding  to  the 
prototype of a given cluster. As an example, the array [1 6 10] may represent a partition 
in which 1, 6, and 10 are indices of the cluster prototypes (medoids) for the data set in 
Table  13.5 . Integer encoding is usually more computationally efﬁ cient than the binary -
 encoding schemes. 

  Real encoding  is the third encoding scheme where the genotypes are made up of 
real numbers that represent the coordinates of the cluster centroids. In an  n -  dimensional 
space, the ﬁ rst  n  positions represent the  n  coordinates of the ﬁ rst centroid; the next  n  
positions  represent  the  coordinates  of  the  second  centroid,  and  so  forth. To  illustrate 
this,  the  genotype  [1.5  1.5  10.5  1.5  5.0  5.5]  encodes  the  three  centroids:  (1.5,  1.5), 
(10.5, 1.5), and (5.0, 5.5) of clusters C1, C2, and C3 in Table  13.5 , respectively. 

 The  second  important  decision,  in  applying  GAs  for  clustering,  is  a  selection  of 
appropriate  genetic operators . A number of crossover and mutation operators are pro-
posed trying to solve an important problem of the  context - insensitivity  in GAs. When 
traditional  genetic  operators  are  employed  in  clustering  problems,  they  usually  just 
manipulate gene values without taking into account their connections with other genes. 
For example, the crossover operation presented in Figure  13.7  shows how two parents 
representing the same solution to the clustering problem (different labeling but the same 
integer encoding) produce the resulting offspring representing clustering solutions dif-
ferent from the ones encoded into their parents. Moreover, assuming that the number 

REVIEW  QUESTIONS  AND  PROBLEMS 

411

1
1

1
1

1
1

1
1

1
1

1
1

1
1

1
1

2
3

2
3

↓

2
3

2
3

2
3

2
3

2
3

2
3

3
2

2
3

3
2

2
3

     Figure 13.7.      Equal parents produce different offspring through crossover.  

of clusters has been ﬁ xed in advance as  k     =    3, invalid solutions with only two clusters 
have  been  derived.  Therefore,  it  is  necessary  to  develop  specially  designed  genetic 
operators  for  clustering  problems.  For  example,  the  crossover  operator  should  be 
repeatedly applied or randomly scrambling mutation performed until a valid child has 
been found.   

 Different clustering validity criteria are adapted as  ﬁ tness functions  to evolve data 
partitions in clustering problems. They depend primarily on encoding schemes but also 
on a selected set of genetic operators. We will illustrate in this text only one example 
of a clustering ﬁ tness function when a  real, centroid - based  encoding scheme is used. 
Fitness  function   f   minimizes  the  sum  of  squared  Euclidean  distances  of  the  samples 
from their respective cluster means. Formally, the ﬁ tness function  f (C 1 ,C 2 ,    . . .    , C k ) is:

   f (C C
,
1

,

2

)…
, C

k

=

k

∑∑

=
1

j

∈
x C
i

j

x

i

−

z

j

2

where {C 1 , C 2 ,    . . .    , C k } is the set of  k  clusters encoded into the genotype, x i  is a sample 
in a data set, and z  j   is the centroid of cluster C  j  . It is important to stress that this criterion 
is valid only if the number of clusters  k  is given in advance, and it minimizes the intra -
 cluster  distances  and  maximizes  the  intercluster  distances  as  well.  In  general,  ﬁ tness 
functions  are  based  on  the  distance  between  samples  and  either  cluster  centroids  or 
medoids. Although  these  types  of  functions  are  widely  used,  usually  they  are  biased 
toward the discovery of spherical clusters, which clearly will be inappropriate in many 
real - world  applications.  Other  approaches  are  possible,  including  a  density - based 
ﬁ tness function. In practice, the success of a GA to solve a clustering problem is highly 
dependent  upon  how  it  has  been  designed  in  terms  of  encoding  scheme,  operators, 
ﬁ tness function, selection procedure, and initial population generation.  

 13.8  

 REVIEW QUESTIONS AND PROBLEMS 

      1.    Given a binary string that represents a concatenation of four attribute values:

2 5 4 7
   { ,
,

=
, } {

010101100111
}

 
 
412 

GENETIC  ALGORITHMS

use  this  example  to  explain  the  basic  concepts  of  a  GA  and  their  equivalents  in 
natural evolution.   

   2.    If we want to optimize a function f(x) using a GA where the precision requirement 
for x is six decimal places and the range is [ − 1, 2], what will be the length of a 
binary vector (chromosome)?   

   3.    If v1    =    (0 0 1 1 0 0 1 1) and v2    =    (0 1 0 1 0 1 0 1) are two chromosomes, and 
suppose that the crossover point is randomly selected after the ﬁ fth gene, what are 
the two resulting offspring?   

   4.    Given the schema ( *  1  *  0 0), what are the strings that match with it?   

   5.    What is the number of strings that match with the schema ( *   *   *   *   *   *   *   * )?   
   6.    The function f(x)    =     − x 2     +    16x is deﬁ ned on interval [0, 63]. Use two iterations of 

a GA to establish the approximate solution for a maximum of f(x).   

   7.    For the function f(x) given in Problem number 6, compare three schemata

   S1

   S2

   S3

= (* * * *)  
1 1
= (*
1 0 1
* *)  
= (* * * * *)  
1

with respect to order (O), length (L), and ﬁ tness (F).   

   8.    Given a parent chromosome (1 1 0 0 0 1 0 0 0 1), what is the potential offspring 

(give examples) if the mutation probability is 

  (a)      p m     =    1.0  
  (b)      p m     =    0.5  
  (c)      p m     =    0.2  
  (d)      p m     =    0.1  
  (e)      p m     =    0.0001      

   9.    Explain  the  basic  principles  of  the  building - block  hypothesis  and  its  potential 

applications.   

   10.    Perform  a  PMC  operation  for  two  strings  S1  and  S2,  in  which  two  randomly 

selected crossing points are given:

1 = {
   S
2 = {

   S

A C B D F G E

}  

B D C F E G A

}  

   ↑↑     

   11.    Search  the  Web  to  ﬁ nd  the  basic  characteristics  of  publicly  available  or 
commercial software tools that are based on GAs. Document the results of your 
search.      

REFERENCES  FOR  FURTHER  STUDY 

413

  13.9  

 REFERENCES FOR FURTHER STUDY 

    Fogel ,  D. B.  , ed.,  Evolutionary Computation ,  IEEE Press ,  New York ,  1998 .   

 The  book  provides  a  collection  of  30  landmark  papers,  and  it  spans  the  entire  history  of 
evolutionary  computation — from  today ’ s  research  back  to  its  very  origins  more  than  40 
years ago.  

    Goldenberg ,  D. E.  ,  Genetic Algorithms in Search, Optimization and Machine Learning ,  Addison 

Wesley ,  Reading, MA ,  1989 .   
 This  book  represents  one  of  the  ﬁ rst  comprehensive  texts  on  GAs.  It  introduces  in  a  very 
systematic way most of the techniques that are, with small modiﬁ cations and improvements, 
part of today ’ s approximate - optimization solutions.  

    Hruschka ,  E.  ,   R.   Campello  ,   A.   Freitas  ,   A.   Carvalho  ,  A Survey of Evolutionary Algorithms for 
Clustering ,  IEEE Transactions on Systems, Man, and Cybernetics, Part C: Applications and 
Reviews , Vol.  39 , No.  2 ,  2009 , pp.  133  –  155 .   
 This paper presents a survey of evolutionary algorithms designed for clustering tasks. It tries 
to  reﬂ ect  the  proﬁ le  of  this  area  by  focusing  more  on  those  subjects  that  have  been  given 
more importance in the literature. In this context, most of the paper is devoted to partitional 
algorithms  that  look  for  hard  clustering  of  data,  although  overlapping  (i.e.,  soft  and  fuzzy) 
approaches are also covered in the paper. The paper ends by addressing some important issues 
and open questions that can be the subjects of future research.  

    Michalewicz ,  Z.  ,  Genetic Algorithms    +    Data Structures    =    Evolution Programs ,  Springer ,  Berlin, 

Germany ,  1999 .   
 This textbook explains the ﬁ eld of GAs in simple terms, and discusses the efﬁ ciency of its 
methods in many interesting test cases. The importance of these techniques is their applicabil-
ity to many hard - optimization problems speciﬁ ed with large amounts of discrete data, such 
as the TSP, scheduling, partitioning, and control.   

  14 

FUZZY SETS AND FUZZY LOGIC     

  Chapter Objectives 

     (cid:127)       Explain the concept of fuzzy sets with formal interpretation in continuous and 

discrete domains.  

   (cid:127)       Analyze the characteristics of fuzzy sets and fuzzy - set operations.  
   (cid:127)       Describe the extension principle as a basic mechanism for fuzzy inferences.  
   (cid:127)       Discuss  the  importance  of  linguistic  imprecision  and  computing  with  them  in 

decision - making processes.  

   (cid:127)       Construct methods for multifactorial evaluation and extraction of a fuzzy rule -

 based model from large, numeric data sets.  

   (cid:127)       Understand  why  fuzzy  computing  and  fuzzy  systems  are  an  important  part  of 

data - mining technology.     

    In the previous chapters, a number of different methodologies for the analysis of large 
data sets have been discussed. Most of the approaches presented, however, assume that 
the  data  are  precise,  that  is,  they  assume  that  we  deal  with  exact  measurements  for 
further analysis. Historically, as reﬂ ected in classical mathematics, we commonly seek 

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

414

 
FUZZY  SETS 

415

a precise and crisp description of things or events. This precision is accomplished by 
expressing phenomena in numeric or categorical values. But in most, if not all, real -
 world scenarios, we will never have totally precise values. There is always going to be 
a degree of uncertainty. However, classical mathematics can encounter substantial dif-
ﬁ culties  because  of  this  fuzziness.  In  many  real - world  situations,  we  may  say  that 
fuzziness  is  reality,  whereas  crispness  or  precision  is  simpliﬁ cation  and  idealization. 
The  polarity  between  fuzziness  and  precision  is  quite  a  striking  contradiction  in  the 
development  of  modern  information - processing  systems.  One  effective  means  of 
resolving the contradiction is the fuzzy - set theory, a bridge between high precision and 
the high complexity of fuzziness.  

   14.1  

  FUZZY SETS 

 Fuzzy concepts derive from fuzzy phenomena that commonly occur in the real world. 
For example, rain is a common natural phenomenon that is difﬁ cult to describe precisely 
since it can rain with varying intensity, anywhere from a light shower to a torrential 
downpour.  Since  the  word  rain  does  not  adequately  or  precisely  describe  the  wide 
variations in the amount and intensity of any rain event,  “ rain ”  is considered a fuzzy 
phenomenon. 

 Often,  the  concepts  formed  in  the  human  brain  for  perceiving,  recognizing,  and 
categorizing  natural  phenomena  are  also  fuzzy.  The  boundaries  of  these  concepts  are 
vague. Therefore, the judging and reasoning that emerges from them are also fuzzy. For 
instance,  “ rain ”  might be classiﬁ ed as  “ light rain, ”   “ moderate rain, ”  and  “ heavy rain ”  in 
order to describe the degree of raining. Unfortunately, it is difﬁ cult to say when the rain is 
light, moderate, or heavy, because the boundaries are undeﬁ ned. The concepts of  “ light, ”  
 “ moderate, ”  and  “ heavy ”  are prime examples of fuzzy concepts themselves. To explain the 
principles of fuzzy sets, we will start with the basics in classical - set theory. 

 The  notion  of  a  set  occurs  frequently  as  we  tend  to  organize,  summarize,  and 
generalize knowledge about objects. We can even speculate that the fundamental nature 
of  any  human  being  is  to  organize,  arrange,  and  systematically  classify  information 
about the diversity of any environment. The encapsulation of objects into a collection 
whose members all share some general features naturally implies the notion of a set. 
Sets  are  used  often  and  almost  unconsciously;  we  talk  about  a  set  of  even  numbers, 
positive temperatures, personal computers, fruits, and the like. For example, a classical 
set  A  of  real  numbers  greater  than  6  is  a  set  with  a  crisp  boundary,  and  it  can  be 
expressed as

=
   A x x

{ |

>

}  
6

where  there  is  a  clear,  unambiguous  boundary  6  such  that  if  x  is  greater  than  this 
number, then x belongs to the set A; otherwise, x does not belong to the set. Although 
classical  sets  have  suitable  applications  and  have  proven  to  be  an  important  tool 
for  mathematics  and  computer  science,  they  do  not  reﬂ ect  the  nature  of  human 
concepts  and  thoughts,  which  tend  to  be  abstract  and  imprecise.  As  an  illustration, 

416 

FUZZY  SETS  AND  FUZZY  LOGIC

mathematically we can express a set of tall persons as a collection of persons whose 
height  is  more  than  6   ft;  this  is  the  set  denoted  by  the  previous  equation,  if  we  let 
A    =     “ tall  person ”   and  x    =     “ height. ”   Yet,  this  is  an  unnatural  and  inadequate  way  of 
representing our usual concept of  “ tall person. ”  The dichotomous nature of the classical 
set would classify a person 6.001   ft tall as a tall person, but not a person 5.999   ft tall. 
This distinction is intuitively unreasonable. The ﬂ aw comes from the sharp transition 
between inclusions and exclusions in a set. 

 In contrast to a classical set, a fuzzy set, as the name implies, is a set without a 
crisp boundary, that is, the transition from  “ belongs to a set ”  to  “ does not belong to a 
set ”   is  gradual,  and  this  smooth  transition  is  characterized  by  membership  functions 
(MFs) that give sets ﬂ exibility in modeling commonly used linguistic expressions such 
as  “ the water is hot ”  or  “ the temperature is high. ”  Let us introduce some basic deﬁ ni-
tions and their formalizations concerning fuzzy sets. 

 Let  X  be  a  space  of  objects  and  x  be  a  generic  element  of  X. A  classical  set A, 
A    ⊆    X,  is  deﬁ ned  as  a  collection  of  elements  or  objects  x    ∈    X  such  that  each  x  can 
either  belong  or  not  belong  to  set A.  By  deﬁ ning  a   characteristic  function   for  each 
element x in X, we can represent a classical set A by a set of ordered pairs (x, 0) or (x, 
1), which indicates x    ∉    A or x    ∈    A, respectively. 

 Unlike  the  aforementioned  conventional  set,  a  fuzzy  set  expresses  the  degree  to 
which an element belongs to a set. The characteristic function of a fuzzy set is allowed 
to have values between 0 and 1, which denotes the degree of membership of an element 
in a given set. If X is a collection of objects denoted generically by x, then a fuzzy set 
A in X is deﬁ ned as a set of ordered pairs:

=

   A

x
{( ,

µ

x
[ ]) |

A

∈
x X
}

where  μ  A (x) is called the membership function (MF) for the fuzzy set A. The MF maps 
each element of X to a membership grade (or membership value) between 0 and 1. 

 Obviously, the deﬁ nition of a fuzzy set is a simple extension of the deﬁ nition of a 
classical set in which the characteristic function is permitted to have any value between 
0 and 1. If the value of the MF  μ  A (x) is restricted to either 0 or 1, then A is reduced to 
a classic set and  μ  A (x) is the characteristic function of A. For clarity, we shall also refer 
to classical sets as ordinary sets, crisp sets, non - fuzzy sets, or, simply, sets. 

 Usually X is referred to as the universe of discourse, or, simply, the universe, and 
it may consist of discrete (ordered or non - ordered) objects or continuous space. This 
can  be  clariﬁ ed  by  the  following  examples.  Let  X    =    {San  Francisco,  Boston,  Los 
Angeles} be the set of cities one may choose to live in. The fuzzy set C    =     “ desirable 
city to live in ”  may be described as follows:

   C

= {(

San Francisco 0.9 Boston 0.8 Los Angeles 0.6

), (

), (

,

,

,

)}.   

 The universe of discourse X is discrete and it contains non - ordered objects: three 
big cities in the United States. As one can see, the membership grades listed above are 
quite subjective; anyone can come up with three different but legitimate values to reﬂ ect 
his or her preference. 

 
FUZZY  SETS 

417

µ(x) 

1 

µ(x) 

     1 

    1       2       3       4       5       6          x
(a) A = “sensible number of children”

         50

   x 

(b) B = “about 50 years old” 

     Figure  14.1.      Discrete  and  continuous  representation  of  membership  functions  for  given 
fuzzy sets. (a) A    =     “ sensible number of children ” ; (b) B    =    about 50 years old.  

 In the next example, let X    =    {0, 1, 2, 3, 4, 5, 6} be a set of the number of children 
a  family  may  choose  to  have.  The  fuzzy  set A    =     “ sensible  number  of  children  in  a 
family ”  may be described as follows:

   A = {( ,

0 0 1 1 0 3
. ), ( ,

. ), ( ,

2 0 7

3 1
. ), ( , ), ( ,

4 0 7

. ), ( ,

5 0 3

. ), ( ,

6 0 1   
. )}

 Or, in the notation that we will use through this chapter,

+
   A 0.1/0 0.3/1 0.7/2 1.0/3 0.7/4 0.3/5 0.1/6

+

+

+

=

+

+

 Here we have a discrete - order universe X; the MF for the fuzzy set A is shown in 
Figure  14.1 a. Again, the membership grades of this fuzzy set are obviously subjective 
measures.   

 Finally, let X    =    R  +   be the set of possible ages for human beings. Then the fuzzy 

set B    =     “ about 50 years old ”  may be expressed as

where

=

   B

{( ,
x

µ

[ ]) |
x

B

∈
}
x X

   µB x
( )

=

(
1/ 1

+

((

x

− 50 10 4
) )
)
/

 This is illustrated in Figure  14.1 b. 
 As mentioned earlier, a fuzzy set is completely characterized by its MF. Since many 
fuzzy sets in use have a universe of discourse X consisting of the real line R, it would 
be impractical to list all the pairs deﬁ ning an MF. A more convenient and concise way 
to deﬁ ne an MF is to express it as a mathematical formula. Several classes of param-
etrized MFs are introduced, and in real - world applications of fuzzy sets the shape of 
MFs is usually restricted to a certain class of functions that can be speciﬁ ed with only 

  
 
  
 
 
 
 
 
 
 
 
 
 
418 

FUZZY  SETS  AND  FUZZY  LOGIC

1

  1

  1 

a     b          c
(a)

         a  b

 c
(b)

    d

σ

 c 
(c)

     Figure 14.2.      Most commonly used shapes for membership functions. (a) Triangular; (b) trap-
ezoidal; (c) Gaussian.  

few parameters. The most well known are triangular, trapezoidal, and Gaussian; Figure 
 14.2  shows these commonly used shapes for MFs.   

 A triangular MF is speciﬁ ed by three parameters {a, b, c} as follows:

   µ( )

x =

triangle  x a b c
, )
( ,

,

=

0




(

(




0

−

x a / b a
) (

−

for x

)

for

a

−

c x / c
) (

−−

b

)

for b

≤

a
≤ ≤
x
≤ ≤
x

b

c

for

≤

c

x

 The parameters {a, b, c}, with a    <    b    <    c, determine the x coordinates of the three 

corners of the underlying triangular MF. 

 A trapezoidal MF is speciﬁ ed by four parameters {a, b, c, d} as follows:

   µ( )

x =

trapezoid (x a b c d

,

,

,

,

=

)

0



(


1

(




0

for x a

≤

x a / b a
) (

)

for

a

−

−

) (
d x / d c

−

−

for b

)

for

c

≤ ≤
x
≤≤ ≤
x
≤ ≤
x

b

c

d

for d

≤

x

 The parameters {a, b, c, d}, with a    <    b    ≤    c    <    d, determine the x coordinates of the 
four corners of the underlying trapezoidal MF. A triangular MF can be seen as a special 
case of the trapezoidal form where b    =    c. 

 Finally, a Gaussian MF is speciﬁ ed by two parameters {c,  σ }:

   µ

x
( )

=

gaussian  x c
,

( ,

σ

)

= −

e 1/2 ((x c)/

−

σ

)2

 A Gaussian MF is determined completely by c and  σ ; c represents the membership -
 function  center,  and   σ   determines  the  membership - function  width.  Figure   14.3   illus-
trates the three classes of parametrized MFs.   

 From  the  preceding  examples,  it  is  obvious  that  the  construction  of  a  fuzzy  set 
depends  on  two  things:  the  identiﬁ cation  of  a  suitable  universe  of  discourse  and  the 

  
  
  
FUZZY  SETS 

419

1

1

1

  20  40  60  80  100    x
(a)

   20  40  60  80  100          x 

20  40  60  80  100    x 

(b)

(c)

     Figure  14.3.      Examples  of  parametrized  membership  functions.  (a)  Triangle(x,  20,  60,  80); 
(b) trapezoid(x, 10, 20, 60, 90); (c) Gaussian(x, 50, 20).  

speciﬁ cation  of  an  appropriate  MF.  The  speciﬁ cation  of  an  MF  is  subjective,  which 
means  that  the  MFs  for  the  same  concept  (e.g.,   “ sensible  number  of  children  in  a 
family ” ) when speciﬁ ed by different persons may vary considerably. This subjectivity 
comes  from  individual  differences  in  perceiving  or  expressing  abstract  concepts  and 
has  little  to  do  with  randomness.  Therefore,  the   subjectivity   and   nonrandomness   of 
fuzzy sets is the primary difference between the study of fuzzy sets and the probability 
theory, which deals with the objective treatment of random phenomena. 

 There are several parameters and characteristics of MF that are used very often in 
some fuzzy - set operations and fuzzy - set inference systems. We will deﬁ ne only some 
of them that are, in our opinion, the most important:

   1.       Support . The  support  of a fuzzy set A is the set of all points x in the universe 

of discourse X such that  μ  A (x)    >    0:

   Support (

A

=
) {
x

µ

x
( )

A

>

0
}

  2.       Core . The  core  of a fuzzy set A is the set of all points x in X such that  μ  A (x)    =    1:

   Core  A

(

=
) { |

( )
x A x

= 1    
}

  3.       Normalization . A fuzzy set A is  normal  if its core is nonempty. In other words, 

we can always ﬁ nd a point x    ∈    X such that  μ  A (x)    =    1.  

  4.       Cardinality . Given a fuzzy set A in a ﬁ nite universe X, its cardinality, denoted 

by Card(A), is deﬁ ned as

   Card(

A

)

=

Σµ

A

x where x X
( ),

∈

 Often,   Card (X)  is  referred  to  as  the  scalar  cardinality  or  the  count  of A.  For 
example,  the  fuzzy  set  A    =    0.1/1    +    0.3/2    +    0.6/3    +    1.0/4    +    0.4/5  in  universe 
X    =    {1, 2, 3, 4, 5, 6} has a cardinality  Card (A)    =    2.4.  

  5.        α  - cut.  The   α  - cut  or   α  - level set  of a fuzzy set A is a crisp set deﬁ ned by

   
  
420 

FUZZY  SETS  AND  FUZZY  LOGIC

µ(x) 
1 

0.5 

,x(A µ(x)) 

α-cut = 0.5 

core 

support 

     Figure 14.4.      Core, support, and  α  - cut for fuzzy set A.  

   A

α

=

{ |
x

µ

( )
xA

≥

α

}    

  6.       Fuzzy  number .  Fuzzy  numbers  are  a  special  type  of  fuzzy  sets  restricting  the 

possible types of MFs:  
  (a)      The MF must be normalized (i.e., the core is nonempty) and singular. This 
results  in  precisely  one  point,  which  lies  inside  the  core,  modeling  the 
typical value of the fuzzy number. This point is called the modal value.  

  (b)      The MF has to monotonically increase the left of the core and monotonically 
decrease on the right. This ensures that only one peak and, therefore, only 
one typical value exists. The spread of the support (i.e., the nonzero area of 
the fuzzy set) describes the degree of imprecision expressed by the fuzzy 
number.      

 A graphical illustration of some of these basic concepts is given in Figure  14.4 .    

   14.2  

  FUZZY - SET OPERATIONS 

 Union,  intersection,  and  complement  are  the  most  basic  operations  in  classic  sets. 
Corresponding  to  the  ordinary  set  operations,  fuzzy  sets  too  have  operations,  which 
were initially deﬁ ned by Zadeh, the founder of the fuzzy - set theory. 

 The   union   of  two  fuzzy  sets A  and  B  is  a  fuzzy  set  C,  written  as  C    =    A    ∪    B  or 

C    =    A  OR  B, whose MF  μ  C (x) is related to those of A and B by

   µ

C

=
( ) max(
x

µ

[ ],
x

A

µ

[ ])
x

B

=

µ

( )
x

A

∨

µ

( ),
x

B

∀ ∈   
x X

 As pointed out by Zadeh, a more intuitive but equivalent deﬁ nition of the union of two 
fuzzy sets A and B is the  “ smallest ”  fuzzy set containing both A and B. Alternatively, if D 
is any fuzzy set that contains both A and B, then it also contains A    ∪    B. 

 The  intersection  of fuzzy sets can be deﬁ ned analogously. The intersection of two 
fuzzy sets A and B is a fuzzy set C, written as C    =    A    ∩    B or C    =    A  AND  B, whose MF 
is related to those of A and B by

FUZZY-SET  OPERATIONS 

421

1

1

A                    B 

(a)

(c)

    1 

  1 

(b)

(d)

     Figure 14.5.      Basic operations on fuzzy sets. (a) Fuzzy sets A and B; (b) C    =    A ’ ; (c) C    =    A    ∪    B; 
(d) C    =    A    ∩    B.  

   µ

C

=
( ) min(
x

µ

[ ],
x

A

µ

[ ])
x

B

=

µ

( )
x

A

∧

µ

( ),
x

B

∀ ∈   
x X

 As in the case of the union of sets, it is obvious that the intersection of A and B is 
the  “ largest ”  fuzzy set that is contained in both A and B. This reduces to the ordinary -
 intersection operation if both A and B are non - fuzzy. 

 The  complement  of a fuzzy set A, denoted by A ′ , is deﬁ ned by the MF as

   µ

( )
x

′

A

= −
1

µ

( ),
x

A

∀ ∈

x X

 Figure  14.5  demonstrates these three basic operations: Figure  14.5 a illustrates two 
fuzzy sets A and B; Figure  14.5 b is the complement of A; Figure  14.5 c is the union of 
A and B; and Figure  14.5 d is the intersection of A and B.   

 Let  A  and  B  be  fuzzy  sets  in  X  and  Y  domains,  respectively.  The  Cartesian 
product of A and B, denoted by A    ×    B, is a fuzzy set in the product space X    ×    Y with 
an MF

   µ

( ,
x y

=

) min(

µ

[ ],
x

A

µ

[ ])
y

B

=

µ

( )
x

A

∧

µ

( ),
y

B

×
A B

∀ ∈

x X and  y Y

∀ ∈

 Numeric  computations  based  on  these  simple  fuzzy  operations  are  illustrated 
through one simple example with a discrete universe of discourse S. Let S    =    {1, 2, 3, 
4, 5} and assume that fuzzy sets A and B are given by:

+

=

   A 0/1 0.5/2 0.8/3 1.0/4 0.2/5
+
   B 0.9/1 0.4/2 0.3/3 0.1/4 0/5

=

+

+

+

+

+

+

  
  
 
  
422 

 Then,

FUZZY  SETS  AND  FUZZY  LOGIC

+
   A B 0.9/1 0.5/2 0.8/3 1.0/4 0.2/5

∪ =

+

+

+

+
   A B 0/1 0.4/2 0.3/3 0.1/4 0/5

∩ =

+

+

+

   A

C =

1/1 0.5/2 0.2/3 0/4 0.8/5

+

+

+

+

and the Cartesian product of fuzzy sets A and B is

+
A B 0/(1,1) 0/(1,2) 0/(1,3) 0/(1,4) 0/(1,5)

× =

+

+

+

+

+

+

+

0.5/(2,1) 0.4/

+

0.8/(3,1) 0.4/(3,2) 0.3

+

+

+

+
((2,2) 0.3/(2,3) 0.1/(2,4) 0/(2,5)
+
//(3,3) 0.1/(3,4) 0/(3,5)
+ 11/(4,4) 0/(4,5)
+
+ //(5,5)
+

+

+

+

0.2/(5,1) 0.2/(5,2) 0.2/(5,3) 0.1/(5,4) 0

0.9/(4,1) 0.4/(4,2) 0.3/(4,3) 0.

+

+

+

 Fuzzy  sets,  as  deﬁ ned  by  MF,  can  be  compared  in  different  ways. Although  the 
primary intention of comparing is to express the extent to which two fuzzy numbers 
match, it is almost impossible to come up with a single method. Instead, we can enu-
merate  several  classes  of  methods  available  today  for  satisfying  this  objective.  One 
class, distance measures, considers a distance function between MFs of fuzzy sets A 
and B and treats it as an indicator of their closeness. Comparing fuzzy sets via distance 
measures  does  not  place  the  matching  procedure  in  the  set - theory  perspective.  In 
general, the distance between A and B, deﬁ ned in the same universe of discourse X, 
where X    ∈    R, can be deﬁ ned using the Minkowski distance:

   D A B
(

,

=
) {

Σ

−
A x B x

( )

p 1/p
( ) } ,

∈
x X

where p    ≥    1. Several speciﬁ c cases are typically encountered in applications:

   1.      Hamming distance for p    =    1,  
  2.      Euclidean distance for p    =    2, and  
  3.      Tchebyshev distance for p    =     ∞ .    

 For example, the distance between given fuzzy sets A and B, based on Euclidean 

measure, is

   D A B(
)
,

=

−
0 0 9
. )

(

2

+

−
0 5 0 4
( .
. )

2

+

−
0 8 0 3
( .
. )

2

+ −
1 0 1
(
. )

2

+

−
0 2 0
( .

)

2

=

1

.

339   

 For continuous universes of discourse, summation is replaced by integration. The 
more  similar  the  two  fuzzy  sets,  the  lower  the  distance  function  between  them. 
Sometimes,  it  is  more  convenient  to  normalize  the  distance  function  and  denote 
it  d n (A,B),  and  use  this  version  to  express  similarity  as  a  straight  complement, 
1  −  d n  (A, B). 

 
 
 
   
  
 
FUZZY-SET  OPERATIONS 

423

 The other approach to comparing fuzzy sets is the use of possibility and necessity 
measures. The possibility measure of fuzzy set A with respect to fuzzy set B, denoted 
by  Pos (A, B), is deﬁ ned as

   Pos(

A B
,

) max[min(

=

A x B x
( ),

( ))],

∈   
x X

 The necessity measure of A with respect to B,  Nec (A, B) is deﬁ ned as

   Nec(

A B
,

) min[max(

=

A x 1 B x

( ),

( ))],

−

∈   
x X

 For  the  given  fuzzy  sets A  and  B,  these  alternative  measures  for  fuzzy - set  com-

parison are

Pos(

A B =

,

) max[min{( ,
0 0 5 0 8 1 0 0 2
. ,
=

0 0 4 0 3 0 1 0
. ,

0 4
.

. ,

. ,

. ,

. ,

]

max[ ,

. ), ( . ,

0 9 0 4 0 3 0 1 0

. ,

. ,

. ,

)}]

==

) min[max{( ,

0 0 5 0 8 1 0 0 2
. ,

. ,

. ), ( . ,

0 1 0 6 0 7 0 9 1 0 }}]
. ,

. )

. ,

. ,

=

Nec(

,

A B =
min[ . ,

0 1 0 6 0 8 1 0 1 0
. ]
. ,

. ,

. ,

0 1
.

. ,
=

 An interesting interpretation arises from these measures. The possibility measure 
quantiﬁ es the extent to which A and B overlap. By virtue of the deﬁ nition introduced, 
the  measure  is  symmetric.  On  the  other  hand,  the  necessity  measure  describes  the 
degree to which B is included in A. As seen from the deﬁ nition, the measure is asym-
metrical. A visualization of these two measures is given in Figure  14.6 .   

 A number of simple yet useful operations may be performed on fuzzy sets. These 

are one - argument mappings, because they apply to a single MF.

   1.       Normalization : This operation converts a subnormal, nonempty fuzzy set into 

a normalized version by dividing the original MF by the height of A

   NormA( ) {( ,
x
x

=

µ

A

x /hgt x
[ ]
[ ]

=

µ

x /
[ ] max

A

µ

A

x where x X
[ ]),
}

∈

µ(x) 
1 

)B,A(soP

A

B 

                  Nec(A,B) 

20          40            60           80          100        120           x 

     Figure  14.6.      Comparison  of  fuzzy  sets  representing  linguistic  terms  A    =    high  speed  and 
B    =    speed around 80   km/h.  

   
 
   
  
   
424 

FUZZY  SETS  AND  FUZZY  LOGIC

µ(x)                                     µ(x)                                         µ(x) 
1

1 

1

A

x

A

x

A

x

(a)

(b)

(c)

     Figure  14.7.      Simple  unary  fuzzy  operations.  (a)  Normalization;  (b)  concentration; 
(c) dilation.  

  2.       Concentration : When fuzzy sets are concentrated, their MFs take on relatively 
smaller values. That is, the MF becomes more concentrated around points with 
higher membership grades as, for instance, being raised to power two:

   ConA( ) {( ,
x
x

=

µ2
A

x where x X
[ ]),
}

∈

  3.       Dilation : Dilation has the opposite effect from concentration and is produced 
by modifying the MF through exponential transformation, where the exponent 
is less than 1

   DilA( ) {( ,
x
x

=

µ

1/2
A

x where x X
[ ])
}

∈

 The basic effects of the previous three operations are illustrated in Figure  14.7 .   
 In practice, when the universe of discourse X is a continuous space (the real axis 
R or its subset), we usually partition X into several fuzzy sets whose MFs cover X in 
a  more - or - less  uniform  manner.  These  fuzzy  sets,  which  usually  carry  names  that 
conform to adjectives appearing in our daily linguistic usage, such as  “ large, ”   “ medium, ”  
or  “ small, ”  are called  linguistic values  or linguistic labels. Thus, the universe of dis-
course X is often called the linguistic variable. Let us give some simple examples. 

 Suppose that X    =     “ age. ”  Then we can deﬁ ne fuzzy sets  “ young, ”   “ middle aged, ”  
and  “ old ”  that are characterized by MFs  μ  young (x),  μ  middleaged (x), and  μ  old (x), respectively. 
Just  as  a  variable  can  assume  various  values,  a  linguistic  variable   “ age ”   can  assume 
different linguistic values, such as  “ young, ”   “ middle aged, ”  and  “ old ”  in this case. If 
 “ age ”  assumes the value of  “ young, ”  then we have the expression  “ age is young, ”  and 
so  also  for  the  other  values. Typical  MFs  for  these  linguistic  values  are  displayed  in 
Figure  14.8 , where the universe of discourse X is totally covered by the MFs and their 
smooth and gradual transition from one to another. Unary fuzzy operations, concentra-
tion and dilation, may be interpreted as linguistic modiﬁ ers  “ very ”  and  “ more or less, ”  
respectively.   

 A linguistic variable is characterized by a quintuple (x, T(x), X, G, M) in which x 
is the name of the variable; T(x) is the term set of x — the set of its linguistic values; 
X is the universe of discourse; G is a syntactic rule that generates the terms in T(x); 
and M is a semantic rule that associates with each linguistic value A its meaning M(A), 

   
     
EXTENSION  PRINCIPLE  AND  FUZZY  RELATIONS 

425

µ(x) 

1 

young

middle age

old

   20              40                60                 80                 100      age 

     Figure  14.8.      Typical  membership  functions  for  linguistic  values   “ young, ”    “ middle  aged, ”  
and  “ old. ”   

where M(A) denotes an MF for a fuzzy set in X. For example, if age is interpreted as 
a linguistic variable, then the term set T(age) could be

(
T age

=
) {

,
very young young not very young not young

,

,

,

…

, middle

,
  aged not

middle aged not old more-or-less old old very ol

,

,

,

,

dd}

where each term in T(age) is characterized by a fuzzy set of a universe of discourse 
X    =    [0, 100]. The syntactic rule refers to the way the linguistic values in the term set 
T(age) are generated, and the semantic rule deﬁ nes the MF of each linguistic value of 
the term set T(age), such as the linguistic values in Figure  14.8 .  

   14.3  

  EXTENSION PRINCIPLE AND FUZZY RELATIONS 

 As in the set theory, we can deﬁ ne several generic relations between two fuzzy sets, 
such as  equality  and  inclusion . We say that two fuzzy sets, A and B, deﬁ ned in the same 
space X are equal if and only if (iff) their MFs are identical:

=

   A B iff

µ

( )
x

A

=

µ

( ),
x

B

∀ ∈

x X

 Analogously, we shall deﬁ ne the notion of  containment , which plays a central role 
in both ordinary and fuzzy sets. This deﬁ nition of containment is, of course, a natural 
extension  of  the  case  for  ordinary  sets.  Fuzzy  set A  is   contained   in  fuzzy  set  B  (or, 
equivalently, A is a subset of B) if and only if  μ  A (x)    ≤     μ  B (x) for all x. In symbols,

⊆ ⇔

   A B

µ

( )
x

A

≤

µ

( ),
x

B

∀ ∈

x X

 Figure  14.9  illustrates the concept of A    ⊆    B.   
 When the fuzzy sets A and B are deﬁ ned in a ﬁ nite universe X, and the requirement 
that for each x in X,  μ  A (x)    ≤     μ  B (x) is relaxed, we may deﬁ ne the degree of subsethood 
DS as

   
 
  
  
426 

FUZZY  SETS  AND  FUZZY  LOGIC

µ (x) 

1 

B

A

x

     Figure 14.9.      The concept of A    ⊆    B where A and B are fuzzy sets.  

)
   DS A B
(

,

=

)){
1/Card A Card A
(

(

(

−

Σ

)

max 0 A x B x

( )

[ ,

( )]},

−

∈
x X

 DS(A,B)  provides  a  normalized  measure  of  the  degree  to  which  the  inequality 

 μ  A (x)    ≤     μ  B (x) is violated. 

 Now we have enough background to explain one of the most important concepts 
in  formalization  of  a  fuzzy - reasoning  process.  The   extension  principle   is  a  basic 
transformation of the fuzzy - set theory that provides a general procedure for extending 
the  crisp  domains  of  mathematical  expressions  to  fuzzy  domains.  This  procedure 
generalizes  a  common  point - to - point  mapping  of  a  function  f  between  fuzzy  sets. 
The   extension  principle   plays  a  fundamental  role  in  translating  set - based  concepts 
into  their  fuzzy  counterparts.  Essentially,  the  extension  principle  is  used  to 
transform fuzzy sets via functions. Let X and Y be two sets, and F is a mapping from 
X to Y:

: →   
   F X Y

 Let A be a fuzzy set in X. The extension principle states that the image of A under 

this mapping is a fuzzy set B    =    f(A) in Y such that for each y    ∈    Y:

   µ

B

=
( ) max
y

µ

A

( ),
x subject to x X and y

∈

=

( ).
f x

 The basic idea is illustrated in Figure  14.10 . The extension principle easily general-
izes to functions of many variables as follows. Let X i , i    =    1,    . . .    , n, and Y be universes 
of discourse, and X    =    X1    ×    X2    ×     . . .     ×    Xn constitute the Cartesian product of the X i s. 
Consider fuzzy sets A i  in X i , i    =    1,    . . .    , n and a mapping y    =    f(x), where the input is 
an n - dimensional vector x    =    (x 1 , x 2 ,    . . .    , x n ) and x    ∈    X. Fuzzy sets A1, A2,    . . .    , An 
are then transformed via f, producing the fuzzy set B    =    f(A1, A2,    . . .    , An) in Y such 
that for each y    ∈    Y:  

   µ

B

=

( ) max {min(
y

x

µ

[

x
1

],

A1

µ

[

x

2 …
],

,

µ

A2

[

x

n

])}

An

 subject to x    ∈    X and y    =    f(x). Actually, in the expression above, the min operator is 
just a choice within a family of operators called triangular norms. 

  
  
  
EXTENSION  PRINCIPLE  AND  FUZZY  RELATIONS 

427

y

)x(f=y

B

µ

)y(

1

                 1 

µ(x) 

x

A

     Figure 14.10.      The idea of the extension principle.  

 More  speciﬁ cally,  suppose  that  f  is  a  function  from  X  to Y  where  X  and Y  are 

discrete universes of discourse, and A is a fuzzy set on X deﬁ ned as

=

µ

   A

(

x /x
)
1
1

A

+

µ

(

x /x
)
2

2

A

+

µ

(

x /x
)
3

A

3 …
+

+

µ

(

x /x
)
n

n

A

 then the extension principle states that the image of fuzzy set A under the mapping f 
can be expressed as a fuzzy set B:

=
   B f A

(

)

=

µ

(

x /y
)
1
1

A

+

µ

(

x /y
)
2

2

A

+

µ

(

x /y
)
3

A

3 …
+

+

µ

(

x /y
)
n

n

A

where y i     =    f(x i ), i    =    1,    . . .    , n. In other words, the fuzzy set B can be deﬁ ned through 
the mapped values x i  using the function f. 

 Let us analyze the extension principle using one example. Suppose that X    =    {1, 2, 
3,  4}  and Y    =    {1,  2,  3,  4,  5,  6}  are  two  universes  of  discourse,  and  the  function  for 
transformation is y    =    x    +    2. For a given fuzzy set A    =    0.1/1    +    0.2/2    +    0.7/3    +    1.0/4 in 
X, it is necessary to ﬁ nd a corresponding fuzzy set B(y) in Y using the extension prin-
ciple through function B    =    f(A). In this case, the process of computation is straightfor-
ward and a ﬁ nal, transformed fuzzy set is B    =    0.1/3    +    0.2/4    +    0.7/5    +    1.0/6. 

 Another problem will show that the computational process is not always a one - step 

process. Suppose that A is given as

− +
   A 0.1/ 2 0.4/ 1 0.8/0 0.9/1 0.3/2

− +

+

=

+

and the function f is

( ) =
   f x

−   
32

x

 Upon applying the extension principle, we have

  
 
 
428 

FUZZY  SETS  AND  FUZZY  LOGIC

B

=

=

=

.

/

+
.
0 1 1 0 4
− +

0 8 3
/

.

− +
0 8 3 0 9
.

/

− +

− +

.

.

/

2 0 8 3 0 9
/
∨
0 4 0 9
. )
( .
− +

− +
2

/
2 0 3 1
.

( ..
0

/

/

.

=

/

− +

/
.
2 0 3 1
=

/
1 0 3 1

. )

∨

where   (cid:1)   represents  the  max  function.  For  a  fuzzy  set  with  a  continuous  universe  of 
discourse X, an analogous procedure applies. 

 Besides being useful in the application of the extension principle, some of the unary 
and binary fuzzy relations are also very important in a fuzzy - reasoning process. Binary 
fuzzy relations are fuzzy sets in X    ×    Y that map each element in X    ×    Y to a member-
ship grade between 0 and 1. Let X and Y be two universes of discourse. Then

=

   R

{([ ,

x y

],

µ

[ ,
x y

R

]) | ( ,

}
x y X Y

∈ ×

)

 is a binary fuzzy relation in X    ×    Y. Note that  μ  R (x, y) is in fact a two - dimensional (2 - D) 
MF. For example, let X    =    Y    =    R  +   (the positive real axis); the fuzzy relation is given as 
R    =     “ y is much greater than x. ”  The MF of the fuzzy relation can be subjectively deﬁ ned as

   µR x y
( ,

)

=

−
y x

) /(

+ +

x y

2

),


(



0

if y

if y

>

≤

x

x

 If X and Y are a ﬁ nite set of discrete values such as X {3, 4, 5} and Y    =    {3, 4, 5, 

6, 7}, then it is convenient to express the fuzzy relation R as a relation matrix:

=

   R







0

0

0

0.111 0.200 0.273 0.333

0

0

0.091 0.167 0.231

0

0.077 0.143







where the element at row i and column j is equal to the membership grade between the 
i th  element of X and the j th  element of Y. 

 Common examples of binary fuzzy relations are as follows:

   1.      x is close to y (x and y are numbers).  
  2.      x depends on y (x and y are categorical data).  
  3.      x and y look alike.  
  4.      If x is large, then y is small.    

 Fuzzy  relations  in  different  product  spaces  can  be  combined  through  a  composition 
operation.  Different  composition  operations  have  been  suggested  for  fuzzy  relations; 
the best known is the max – min composition proposed by Zadeh. Let R 1  and R 2  be two 
fuzzy relations deﬁ ned on X    ×    Y and Y    ×    Z, respectively. The max – min composition 
of R 1  and R 2  is a fuzzy set deﬁ ned by

°
   R R
1

2

=

{[( , ), max min(

x z

y

µ

x y
( ,

),

R1

µ

y z
( , ))] |

R2

∈
x X y Y z Z
}

∈

∈

,

,

   
 
  
  
 
  
FUZZY  LOGIC  AND  FUZZY  INFERENCE  SYSTEMS 

429

 or equivalently,

°
   R R
1

2

= ∨

µ

[(

y

R1

( ,
x y

)

∧

µ

( , ))]
y z

R2

 with the understanding that  (cid:1)  and  (cid:2)  represent max and min, respectively. 

 When R1 and R2 are expressed as relation matrices, the calculation of R 1   °  R 2  is 
similar to the matrix - multiplication process, except that    ×    and    +    operations are replaced 
by  (cid:1)  and  (cid:2) , respectively. 

 The following example demonstrates how to apply the max – min composition on 
two relations and how to interpret the resulting fuzzy relation R 1   °  R 2 . Let R 1     =     “ x is 
relevant to y ”  and R 2     =     “ y is relevant to z ”  be two fuzzy relations deﬁ ned on X    ×    Y 
and Y    ×    Z, where X    =    {1, 2, 3}, Y    =    { α ,  β ,  γ ,  δ }, and Z    =    {a, b}. Assume that R 1  and 
R 2  can be expressed as the following relation matrices of  μ  values:

   R

1 =







0.1 0.3 0.5 0.7

0.4 0.2 0.8 0.9

0.6 0.8 0.3 0.2







   R

2 =








0.9 0.1

0.2 0.3

0.5 0.6

0.7 0.2








 Fuzzy relation R 1   °  R 2  can be interpreted as a derived relation  “ x is relevant to z ”  
based on relations R 1  and R 2 . We will make a detailed max – min composition only for 
one element in a resulting fuzzy relation: (x, z)    =    (2, a).

. )
0 4 0 9 0 2 0 2 0 8 0 5 0 9 0 7
. ,

. ,

. ,

.

.

.

∧

∧

∧

∧

µR R

1

°

a

=
( , ) max( .
2 2
=
0 7=
.

max( . ,

0 4 0

2 0 5 0 7
.. ,
. )
. ,

 Analogously, we can compute the other elements, and the ﬁ nal fuzzy matrix R 1   °  R 2  

will be

°
   R R
1

2

=







0.7 0.5

0.7 0.6

0.6 0.3







   14.4  

  FUZZY LOGIC AND FUZZY INFERENCE SYSTEMS 

 Fuzzy logic enables us to handle uncertainty in a very intuitive and natural manner. In 
addition  to  making  it  possible  to  formalize  imprecise  data,  it  also  enables  us  to  do 

  
 
  
   
  
   
430 

FUZZY  SETS  AND  FUZZY  LOGIC

arithmetic and Boolean operations using fuzzy sets. Finally, it describes the inference 
systems  based  on  fuzzy  rules.  Fuzzy  rules  and  fuzzy - reasoning  processes,  which  are 
the most important modeling tools based on the fuzzy - set theory, are the backbone of 
any fuzzy inference system. Typically, a fuzzy rule has the general format of a condi-
tional proposition. A  fuzzy If - then rule , also known as  fuzzy implication,  assumes the 
form 

 If x is A, then y is B 

 where A and B are linguistic values deﬁ ned by fuzzy sets on the universes of discourse 
X and Y, respectively. Often,  “ x is A ”  is called the antecedent or premise, while  “ y is 
B ”  is called the consequence or conclusion. Examples of fuzzy if - then rules are wide-
spread in our daily linguistic expressions, such as the following:

   1.      If pressure is high, then volume is small.  
  2.      If the road is slippery, then driving is dangerous.  
  3.      If a tomato is red, then it is ripe.  
  4.      If the speed is high, then apply the brake a little.    

 Before  we  can  employ  fuzzy  if - then  rules  to  model  and  analyze  a  fuzzy  reasoning -
 process, we have to formalize the meaning of the expression  “ if x is A then y is B, ”  
sometimes abbreviated in a formal presentation as A    →    B. In essence, the expression 
describes a relation between two variables x and y; this suggests that a fuzzy if - then 
rule be deﬁ ned as a binary fuzzy relation R on the product space X    ×    Y. R can be viewed 
as a fuzzy set with a 2 - D MF:

   µ

R

( ,
x y

)

=

µ

f

(

[ ],
x

A

µ

[ ])
y

B

 If we interpret A    →    B as A  entails  B, still it can be formalized in several different 
ways. One formula that could be applied based on a standard logical interpretation, is

   R A B A B

= → = ′ ∪ .   

 Note that this is only one of several possible interpretations for fuzzy implication. 
The accepted meaning of A    →    B represents the basis for an explanation of the fuzzy -
 reasoning process using if - then fuzzy rules. 

 Fuzzy reasoning, also known as approximate reasoning, is an inference procedure 
that derives its conclusions from a set of fuzzy rules and known facts (they also can be 
fuzzy  sets).  The  basic  rule  of  inference  in  a  traditional  two - valued  logic  is   modus 
ponens , according to which we can infer the truth of a proposition B from the truth of 
A and the implication A    →    B. However, in much of human reasoning,  modus ponens  
is employed in an approximate manner. For example, if we have the rule  “ if the tomato 
is red, then it is ripe ”  and we know that  “ the tomato is more or less red, ”  then we may 
infer that  “ the tomato is more or less ripe. ”  This type of approximate reasoning can be 
formalized as 

  
FUZZY  LOGIC  AND  FUZZY  INFERENCE  SYSTEMS 

431

        Fact: x is A ′   
  Rule: If x is A then y is B  
  Conclusion: y is B ′       

 where A ′  is close to A and B ′  is close to B. When A, A ′ , B, and B ′  are fuzzy sets of an 
approximate universe, the foregoing inference procedure is called approximate reason-
ing or fuzzy reasoning; it is also called  generalized modus ponens , since it has  modus 
ponens  as a special case. 

 Using the composition rule of inference, we can formulate the inference procedure 
of fuzzy reasoning. Let A, A ′ , and B be fuzzy sets on X, X, and Y domains, respec-
tively. Assume that the fuzzy implication A    →     B is expressed as a fuzzy relation R 
on  X    ×    Y. Then the fuzzy set B ′  induced by A ′  and A    →     B is deﬁ ned by

µ

′
B

( ) max min
y

=

x
µ

= ∨

[

x

( )
x

′

A

µ
[
∧

( ),
x

µ

( ,
x y

R

′
A
µ

( ,
x y

R
)]

)]

 Some typical characteristics of the fuzzy - reasoning process and some conclusions 

useful for this type of reasoning are 

  1.       ∀ A,  ∀  A ′     →     B ′     ⊇     B ( \or  μ   B ′  (y)    ≥      μ   B (y))  
  2.      If A ′     ⊆    A (or  μ   A (x)    ≥      μ   A ′  (x))    →     B ′     =    B    

 Let  us  analyze  the  computational  steps  of  a  fuzzy - reasoning  process  for  one  simple 
example. Given the fact A ′     =     “ x is above average height ”  and the fuzzy rule  “ if x is 
high,  then  his/her  weight  is  also  high, ”   we  can  formalize  this  as  a  fuzzy  implication 
A    →     B. We can use a discrete representation of the initially given fuzzy sets A, A ′ , 
and B (based on subjective heuristics): 

   A ′ :  

   x  

  5 ’ 6 ”   
  5 ’ 9 ”   
  6 ’   
  6 ’ 3 ”   

    μ (x)  

   A:  

  0.3  
  1.0  
  0.4  
  0  

   x  

  5 ’ 6 ”   
  5 ’ 9 ”   
  6 ’   
  6 ’ 3 ”   

    μ (x)  

   B:  

  0  
  0.2  
  0.8  
  1.0  

   y  

  120  
  150  
  180  
  210  

    μ (y)  

  0  
  0.2  
  0.5  
  1.0  

  μ  R (x, y) can be computed in several different ways, such as

   µ

R

( ,
x y

)

=


1

µ


( )
y

B

( )
x

≤

µ

( )
y

B

for

µ

A
otherwise

or as the Lukasiewicz norm:

   µ

R

( ,
x y

= ∧ −

) {
1

(
1

µ

( )
x

A

+

µ

( )}
y

B

   
  
    
    
    
    
    
    
    
    
    
    
    
    
 
  
432 

FUZZY  SETS  AND  FUZZY  LOGIC

µ(x)
  1
     A′″

            A

µ(x)
1 
       B′ 

   B 

         5′6″  5′9″  6′   6′3″

x

         120   150   180   210

     x

(a)

(b)

     Figure 14.11.      Comparison of approximate reasoning result B ’  with initially given fuzzy sets 
A ’ ,  A,  and  B  and  the  fuzzy  rule  A    →    B.  (a)  Fuzzy  sets  A  and  A ’ ;  (b)  fuzzy  sets  B  and  B ’  
(conclusion).  

 Both  deﬁ nitions  lead  to  a  very  different  interpretation  of  fuzzy  implication. 
Applying the ﬁ rst relation for  μ  R (x, y) on the numeric representation for our sets A and 
B, the 2 - D MF will be

   µR x y( ,

)

=

1

1

0 1


1 1







1

1


0 0 2 0 5 1


0 0 2 0 5 1

.

.

.

.

 Now, using the basic relation for inference procedure, we obtain

   µ

′
B

=

( ) max min[
y

x

µ

( ),
x

′

A

µ

( ,
x y

)]   

R

 The resulting fuzzy set B ′  can be represented in the form of a table: 

   B ′ :  

   y  

  120  
  150  
  180  
  210  

    μ (y)  

  0.3  
  1.0  
  1.0  
  1.0  

 or interpreted approximately in linguistic terms:  “ x ’ s weight is more - or - less high. ”  A 
graphical comparison of MFs for fuzzy sets A, A ′ , B, and B ′  is given in Figure  14.11 .   
 To use fuzzy sets in approximate reasoning (a set of linguistic values with numeric 

representations of MFs), the main tasks for the designer of a system are 

  1.      represent any fuzzy datum, given as a linguistic value, in terms of the codebook A;  
  2.      use these coded values for different communication and processing steps; and  
  3.      at the end of approximate reasoning, transform the computed results back into 

its original (linguistic) format using the same codebook A.    

  
    
    
    
    
MULTIFACTORIAL  EVALUATION 

433

X

Fuzzy encoder

Encoded information

   ( + processing)    

     Fuzzy decoder 

          Y 

    Codebook

Codebook 

     Figure 14.12.      Fuzzy - communication channel with fuzzy encoding and decoding.  

 These three fundamental tasks are commonly referred to as encoding, transmission 
and  processing,  and  decoding  (the  terms  have  been  borrowed  from  communication 
theory). The encoding activities occur at the transmitter while the decoding take place 
at  the  receiver.  Figure   14.12   illustrates  encoding  and  decoding  with  the  use  of  the 
codebook A.  The  channel  functions  as  follows. Any  input  information,  whatever  its 
nature, is encoded (represented) in terms of the elements of the codebook. In this inter-
nal format, encoded information is sent with or without processing across the channel. 
Using the same codebook, the output message is decoded at the receiver.   

 Fuzzy - set literature has traditionally used the terms fuzziﬁ cation and defuzziﬁ ca-
tion  to  denote  encoding  and  decoding,  respectively.  These  are,  unfortunately,  quite 
misleading and meaningless terms because they mask the very nature of the processing 
that takes place in fuzzy reasoning. They neither address any design criteria nor intro-
duce  any  measures  aimed  at  characterizing  the  quality  of  encoding  and  decoding 
information completed by the fuzzy channel. 

 The  next  two  sections  are  examples  of  the  application  of  fuzzy  logic  and  fuzzy 
reasoning to decision - making processes, where the available data sets are ambiguous. 
These applications include multifactorial evaluation and extraction of fuzzy rules - based 
models from large numeric data sets.  

   14.5  

  MULTIFACTORIAL EVALUATION 

 Multifactorial evaluation is a good example of the application of the fuzzy - set theory 
to  decision - making  processes.  Its  purpose  is  to  provide  a  synthetic  evaluation  of  an 
object relative to an objective in a fuzzy - decision environment that has many factors. 
Let U    =    {u 1 , u 2 ,    . . .    , u n } be a set of objects for evaluation, let F    =    {f 1 , f 2 ,    . . .    , f m } be 
the set of basic factors in the evaluation process, and let E    =    {e 1 , e 2 ,    . . .    , e p } be a set 
of  descriptive  grades  or  qualitative  classes  used  in  the  evaluation.  For  every  object 
u    ∈    U, there is a single - factor evaluation matrix R(u) with dimensions m    ×    p, which is 
usually the result of a survey. This matrix may be interpreted and used as a 2 - D MF 
for fuzzy relation F    ×    E. 

 With  the  preceding  three  elements,  F,  E,  and  R,  the  evaluation  result  D(u)  for  a 
given  object  u    ∈    U  can  be  derived  using  the  basic  fuzzy - processing  procedure:  the 

434 

FUZZY  SETS  AND  FUZZY  LOGIC

u

R(u)

W(u)

W(u) • R(u)

D(u)  

     Figure 14.13.      Multifactorial - evaluation model.  

product  of  fuzzy  relations  through  max – min  composition.  This  has  been  shown  in 
Figure  14.13 . An additional input to the process is the weight vector W(u) for evalua-
tion factors, which can be viewed as a fuzzy set for a given input u. A detailed explana-
tion of the computational steps in the multifactorial - evaluation process will be given 
through two examples.   

  A Cloth - Selection Problem 

   14.5.1  
 Assume that the basic factors of interest in the selection of cloth consist of f 1     =    style, 
f 2     =    quality, and f 3     =    price, that is, F    =    {f 1 , f 2 , f 3 }. The verbal grades used for the selec-
tion are e 1     =    best, e 2     =    good, e 3     =    fair, and e 4     =    poor, that is, E    =    {e 1 , e 2 , e 3 , e 4 }. For a 
particular piece of cloth u, the single - factor evaluation may be carried out by profes-
sionals or customers by a survey. For example, if the survey results of the  “ style ”  factor 
f 1  are 60% for the best, 20% for the good, 10% for the fair, and 10% for the poor, then 
the single - factor evaluation vector R 1 (u) is

   R u1( ) { . ,

= 0 6 0 2 0 1 0 1   
. }
. ,

. ,

 Similarly, we can obtain the following single - factor evaluation vectors for f 2  and f 3 :

   R u2 ( ) { . ,

= 0 1 0 5 0 3 0 1  
. }
. ,
= 0 1 0 3 0 4 0 2   
. }
. ,

. ,

. ,

   R u3( ) { . ,

 Based on single - factor evaluations, we can build the following evaluation matrix:

( )
   R u

=







( )
R u
1
( )
R u
2
( )
R u
3







=







0 6 0 2 0 1 0 1
.

.

.

.

0 1 0 5 0 3 0 1
.

.

.

.

.
0 1 00 3 0 4 0 2
.

.

.







 If a customer ’ s weight vector with respect to the three factors is

   W u( ) { . ,

= 0 4 0 4 0 2   
. }
. ,

 then it is possible to apply the multifactorial - evaluation model to compute the evalua-
tion for a piece of cloth u.  “ Multiplication ”  of matrices W(u) and R(u) is based on the 

  
MULTIFACTORIAL  EVALUATION 

435

max – min composition of fuzzy relations, where the resulting evaluation is in the form 
of a fuzzy set D(u)    =    [d 1 , d 2 , d 3 , d 4 ]:

( )
D u W u R u

( )

( )

=

⋅

= [

= [

0 4 0 4 0 2
.
.

.

] =







0 4 0 4 0 3 0 2
.

.

.

.

0 6 0 2 0 1 0 1
.

.

.

.

0 1 0 5 0 3 0 1
.

.

.

.

.
0 1 0 3 0..
.
]

4 0 2
.







where, for example, d 1  is calculated through the following steps:

d
1

=

=

=

=

(
∨

)

∨

∧
w r
2
21
∧
. )
0 4 0 1
( .

)

∧
(
w r
3
31
∨
∧
. ))
0 2 0 1
( .

∨

(

)

∧
w r
11
1
∧
0 4 0 6
. )
( .
∨
∨

0 4 0 1 0 1
.
.
.

0 4
.

 The values for d 2 , d 3 , and d 4  are found similarly, where  (cid:2)  and  (cid:1)  represent the opera-
tions min and max, respectively. Because the largest components of D(u) are d 1     =    0.4 
and d 2     =    0.4 at the same time, the analyzed piece of cloth receives a rating somewhere 
between  “ best ”  and  “ good. ”   

   14.5.2  

  A Problem of Evaluating Teaching 

 Assume  that  the  basic  factors  that  inﬂ uence  students ’   evaluation  of  teaching  are 
f 1     =    clarity and understandability, f 2     =    proﬁ ciency in teaching, f 3     =    liveliness and stimu-
lation,  and  f 4     =    writing  neatness  or  clarity,  that  is,  F    =    {f 1 ,  f 2 ,  f 3 ,  f 4 }.  Let  E    =    {e 1 ,  e 2 , 
e 3 ,  e 4 }    =    {excellent,  very  good,  good,  poor}  be  the  verbal  grade  set.  We  evaluate  a 
teacher u. By selecting an appropriate group of students and faculty, we can have them 
respond with their ratings on each factor and then obtain the single - factor evaluation. 
As in the previous example, we can combine the single - factor evaluation into an evalu-
ation matrix. Suppose that the ﬁ nal matrix R(u) is

   R u

( ) =








0.7 0.2 0.1 0.0

0.6 0.3 0.1 0.0

0.2 0.6 0.1 0.1

0.1 0.1 0.6 0.2








 For a speciﬁ c weight vector W(u)    =    {0.2, 0.3, 0.4, 0.1}, describing the importance of the 
teaching - evaluation factor f i  and using the multifactorial - evaluation model, it is easy to ﬁ nd

( )
D u W u R u

( )

( )

=

⋅








= [

= [

]⋅
0 2 0 3 0 4 0 1
.

.

.

.

]
0 2 0 4 0 1 0 1
.

.

.

.

0 7 0 2 0 1 0 0
.

.

.

.

0 6 0 3 0 1 0 0
.

.

.

.

0 2 0..
.

6 0 1 0 1
.
.

0 1 0 1 0 6 0 2
.

.

.

.








   
 
   
  
  
   
  
436 

FUZZY  SETS  AND  FUZZY  LOGIC

 Analyzing  the  evaluation  results  D(u),  because  d 2     =    0.4  is  a  maximum,  we  may 

conclude that teacher u should be rated as  “ very good. ”    

   14.6  

  EXTRACTING FUZZY MODELS FROM DATA 

 In the context of different data - mining analyses, it is of great interest to see how fuzzy 
models can automatically be derived from a data set. Besides prediction, classiﬁ cation, 
and  all  other  data - mining  tasks,  understandability  is  of  prime  concern,  because  the 
resulting fuzzy model should offer an insight into the underlying system. To achieve 
this goal, different approaches exist. Let us explain a common technique that constructs 
grid - based rule sets using a global granulation of the input and output spaces. 

  Grid - based  rule  sets   model  each  input  variable  usually  through  a  small  set  of 
linguistic values. The resulting rule base uses all or a subset of all possible combina-
tions of these linguistic values for each variable resulting in a global granulation of the 
feature  space  into  rectangular  regions.  Figure   14.14   illustrates  this  approach  in  two 
dimensions: with three linguistic values (low, medium, high) for the ﬁ rst dimension x 1  
and two linguistic values for the second dimension x 2  (young, old).   

 Extracting  grid - based  fuzzy  models  from  data  is  straightforward  when  the  input 
granulation  is  ﬁ xed,  that  is,  the  antecedents  of  all  rules  are  predeﬁ ned. Then,  only  a 
matching consequent for each rule needs to be found. This approach, with ﬁ xed grids, 
is usually called the  Mamdani model . After predeﬁ nition of the granulation of all input 
variables  and  also  the  output  variable,  one  sweeps  through  the  entire  data  set  and 
determines  the  closest  example  to  the  geometrical  center  of  each  rule,  assigning  the 
closest fuzzy value output to the corresponding rule. Using graphical interpretation in 
a  2 - D  space,  the  global  steps  of  the  procedure  are  illustrated  through  an  example  in 

           x

2 

x2

old 

young 

µ

µ
1

R 2,1 

R 2,2 

R 2,3

R

1,1 

R 1,2 

R 1,3

           x1

        low

medium

high               x

1

     Figure  14.14.      A  global  granulation  for  a  two - dimensional  space  using  three  membership 
functions for x 1  and two for x 2 .  

EXTRACTING  FUZZY  MODELS  FROM  DATA 

437

which only one input x and one output dimension y exist. The formal analytical speci-
ﬁ cation, even with more than one input/output dimension, is very easy to establish.

   1.      Granulate the Input and Output Space.      Divide each variable x i  into n i  equidis-
tant, triangular, MFs. In our example, both input x and output y are granulated 
using  the  same  four  linguistic  values:  low,  below  average,  above  average, 
and  high.  A  representation  of  the  input – output  granulated  space  is  given  in 
Figure  14.15 .    

  2.      Analyze the Entire Data Set in the Granulated Space.      First, enter a data set in 
the granulated space and then ﬁ nd the points that lie closest to the centers of 
the granulated regions. Mark these points and the centers of the region. In our 
example, after entering all discrete data, the selected center points (closest to 
the data) are additionally marked with x ,  as in Figure  14.16 .    

           y

   y 

       high 

above average 

below average 

        low 

µ

µ
1

           x 

   low     below average  a

bove average       high        x 

     Figure 14.15.      Granulation of a two - dimensional I/O space.  

           y

   y 

       high 

above average                           

x              x  

x 

      x 

below average 

        low 

µ                µ 
 1

     x 

   low     below average  above average      high        x 

     Figure 14.16.      Selection of characteristic points in a granulated space.  

  
 
 
 
 
 
            
  
438 

FUZZY  SETS  AND  FUZZY  LOGIC

           y

  y 

R1          R2                      R3              R4 

       high 

above average                           

x              x  

x 

      x 

below average 

        low 

µ                µ 
 1

       x 

   low     below average   above average      high        x 

     Figure  14.17.      Graphical  representation  of  generated  fuzzy  rules  and  the  resulting  crisp 
approximation.  

  3.      Generate Fuzzy Rules from Given Data.      Data representative directly selects the 
regions in a granulated space. These regions may be described with the corre-
sponding fuzzy rules. In our example, four regions are selected, one for each 
fuzzy  input  linguistic  value,  and  they  are  represented  in  Figure   14.17   with  a 
corresponding  crisp  approximation  (a  thick  line  through  the  middle  of  the 
regions). These regions are the graphical representation of fuzzy rules. The same 
rules may be expressed linguistically as a set of IF - THEN constructions:

  R 1 :  
  R 2 :  
  R 3 :  
   R 4 :   

  IF x is  small , THEN y is  above average .  
  IF x is  below average , THEN y is  above average .  
  IF x is  above average , THEN y is  high .  
   IF  x  is high,  THEN y  is above  average.  

 Note how the generated model misses the extremes that lie far from the existing 
rule centers. This behavior occurs because only one pattern per rule is used to determine 
the outcome of this rule. Even a combined approach would very much depend on the 
predeﬁ ned  granulation.  If  the  function  to  be  modeled  has  a  high  variance  inside  one 
rule, the resulting fuzzy rule model will fail to model this behavior. 

 For practical applications it is obvious, however, that using such a predeﬁ ned, ﬁ xed 
grid results in a fuzzy model that will either not ﬁ t the underlying functions very well 
or  consist  of  a  large  number  of  rules  because  of  small  granulation.  Therefore,  new 
approaches have been introduced that automatically determine the granulations of both 
input and output variables based on a given data set. We will explain the basic steps 
for one of these algorithms using the same data set from the previous example and the 
graphical representation of applied procedures.

   1.      Initially, only one MF is used to model each of the input variables as well as 
the output variable, resulting in one large rule covering the entire feature space. 

  
 
 
 
 
 
            
  
EXTRACTING  FUZZY  MODELS  FROM  DATA 

439

           y

  y 

µ                µ 
 1

           x 

            x 

     Figure 14.18.      The ﬁ rst step in automatically determining fuzzy granulation.  

           y

  y 

µ                µ 
 1

           x 

            x 

     Figure 14.19.      The second step (ﬁ rst iteration) in automatically determining granulation.  

Subsequently,  new  MFs  are  introduced  at  points  of  maximum  error  (the 
maximum distance between data points and the obtained crisp approximation). 
Figure  14.18  illustrates this ﬁ rst step in which the crisp approximation is rep-
resented  with  a  thick  line  and  the  selected  point  of  maximal  error  with  a 
triangle.    

  2.      For the selected point of maximum error, new triangular fuzzy values for both 
input and output variables are introduced. Processes of granulation, determining 
fuzzy rules in the form of space regions, and crisp approximation are repeated 
for a space, with additional input and output fuzzy values for the second step —
 that means two fuzzy values for both input and output variables. The ﬁ nal results 
of the second step, for our example, are presented in Figure  14.19 .    

                                               
  
  
  
  
440 

FUZZY  SETS  AND  FUZZY  LOGIC

           y

  y 

µ                µ 
 1

           x 

     Figure  14.20.      The 
granulation.  

second 

step 

(second 

iteration) 

in  automatically  determining 

           y

  y 

By 

Dy 
Ay                     

Cy  

µ                µ          Dx          Cx               Ax 

    Bx 

 1

           x 

     Figure 14.21.      The second step (third iteration) in automatically determining granulation.  

  3.      Step  2  is  repeated  until  a  maximum  number  of  divisions  (fuzzy  values)  is 
reached,  or  the  approximation  error  remains  below  a  certain  threshold  value. 
Figures  14.20  and  14.21  demonstrate two additional iterations of the algorithm 
for a data set. Here granulation was stopped after a maximum of four MFs was 
generated for each variable. Obviously this algorithm is able to model extremes 
much better than the previous one with a ﬁ xed granulation. At the same time, 
it has a strong tendency to favor extremes and to concentrate on outliers. The 
ﬁ nal set of fuzzy rules, using dynamically created fuzzy values  A x   to  D x   and  A y   
to  D y   for input and output variables, is

  
  
   
 
 
       
 
 
DATA  MINING  AND  FUZZY  SETS 

441

  R 1 :  
  R 2 :  
  R 3 :  
  R 4 :  

  IF x is  A x  , THEN y is  A y.    
  IF x is  B x  , THEN y is  B y.    
  IF x is  C x  , THEN y is  C y.    
  IF x is  D x  , THEN y is  D y.    

   14.7  

  DATA MINING AND FUZZY SETS 

 There is a growing indisputable role of fuzzy set technology in the realm of data mining. 
In a data mining process, discovered models, learned concepts, or patterns of interest 
are  often  vague  and  have  non - sharp  boundaries.  Unfortunately,  the  representation  of 
graduality is often foiled in data - mining applications, especially in connection with the 
learning of predictive models. For example, the fact that neural networks are often used 
as data - mining methods, although their learning result (weight matrices of numbers) is 
hardly interpretable, shows that in contrast to the standard deﬁ nition the goal of under-
standable models is often neglected. In fact, one should recognize that graduality is not 
only  advantageous  for  expressing  concepts  and  patterns,  but  also  for  modeling  the 
qualifying properties and relations. Of course, correctness, completeness, and efﬁ ciency 
are important in data - mining models, but in order to manage systems that are more and 
more complex, there is a constantly growing demand to keep the solutions conceptually 
simple  and  understandable.  Modern  technologies  are  accepted  more  readily,  if  the 
methods  applied  and  models  derived  are  easy  to  understand,  and  the  results  can  be 
checked against human intuition. 

 The complexity of the learning task, obviously, leads to a problem: When learning 
from information, one must choose between mostly quantitative methods that achieve 
good performances, and qualitative models that explain to a user what is going on in 
the complex system. Fuzzy - set theory has the potential to produce models that are more 
comprehensible, less complex, and more robust. Fuzzy information granulation appears 
to be appropriate approach for trading off accuracy against complexity and understand-
ability  of  data - mining  models. Also,  fuzzy - set  theory  in  conjunction  with  possibility 
theory, can contribute considerably to the modeling and processing of various forms of 
uncertain and incomplete information available in large real - world systems. 

 The tools and technologies that have been developed in fuzzy - set theory have the 
potential to support all of the steps that comprise a process of knowledge discovery. Fuzzy 
methods appear to be particularly useful for data pre -  and postprocessing phases of a data -
 mining  process.  In  particular,  it  has  already  been  used  in  the  data - selection  phase,  for 
example, for modeling vague data in terms of fuzzy sets, to  “ condense ”  several crisp obser-
vations into a single fuzzy one, or to create fuzzy summaries of the data. 

 Standard methods of data mining can be extended to include fuzzy - set representa-
tion in a rather generic way. Achieving focus is important in data mining because there 
are  too  many  attributes  and  values  to  be  considered  and  can  result  in  combinatorial 
explosion. Most unsupervised data - mining approaches try to achieve focus by recogniz-
ing the most interesting structures and their features even if there is still some level of 

442 

FUZZY  SETS  AND  FUZZY  LOGIC

ambiguity. For example, in standard clustering, each sample is assigned to one cluster 
in a unique way. Consequently, the individual clusters are separated by sharp boundar-
ies.  In  practice,  such  boundaries  are  often  not  very  natural  or  even  counterintuitive. 
Rather, the boundary of single clusters and the transition between different clusters are 
usually   “ smooth ”   rather  than  abrupt.  This  is  the  main  motivation  underlying  fuzzy 
extensions to clustering algorithms. In fuzzy clustering an object may belong to differ-
ent clusters at the same time, at least to some extent, and the degree to which it belongs 
to a particular cluster is expressed in terms of a membership degree. 

 The most frequent application of fuzzy set theory in data mining is related to the 
adaptation of rule - based predictive models. This is hardly surprising, since rule - based 
models  have  always  been  a  cornerstone  of  fuzzy  systems  and  a  central  aspect  of 
research in the ﬁ eld. Set of fuzzy rules can represent both classiﬁ cation and regression 
models.  Instead  of  dividing  quantitative  attributes  into  ﬁ xed  intervals,  they  employ 
linguistic  terms  to  represent  the  revealed  regularities.  Therefore,  no  user - supplied 
thresholds are required, and quantitative values can be directly inferred from the rules. 
The linguistic representation leads to the discovery of natural and more understandable 
rules. 

 Decision tree induction includes well - known algorithms such as ID3, C4.5, C5.0, 
and Classiﬁ cation and Regression Trees (CART). Fuzzy variants of decision - tree induc-
tion have been developed for quite a while and seem to remain a topic of interest even 
today.  In  fact,  these  approaches  provide  a  typical  example  for  the   “ fuzziﬁ cation ”   of 
standard  predictive  methods.  In  the  case  of  decision  trees,  it  is  primarily  the   “ crisp ”  
thresholds used for deﬁ ning splitting attributes, such as size    >    181 at inner nodes. Such 
thresholds lead to hard decision boundaries in the input space, which means that a slight 
variation of an attribute (e.g., size    =    182 instead of size    =    181) can entail a completely 
different classiﬁ cation of a sample. Usually, a decision in favor of one particular class 
label  has  to  be  made,  even  if  the  sample  under  consideration  seems  to  have  partial 
membership in several classes simultaneously. Moreover, the learning process becomes 
unstable  in  the  sense  that  a  slight  variation  of  the  training  samples  can  change  the 
induced decision tree drastically. In order to make the decision boundaries  “ soft, ”  an 
obvious idea is to apply fuzzy predicates at the nodes of a decision tree, for example, 
size    =     LARGE , where  LARGE  is a fuzzy set. In that case the sample is not assigned to 
exactly one successor node in a unique way, but perhaps to several successors with a 
certain degree. Also, for fuzzy classiﬁ cation solutions the consequent of single rules is 
usually  a  class  assignment  represented  with  a  singleton  fuzzy  set.  Evaluating  a  rule -
 based model thus becomes trivial and simply amounts to  “ maximum matching, ”  that 
is, searching the maximally supporting rule for each class. 

 A particularly important trend in the ﬁ eld of fuzzy systems are  hybrid methods  that 
combine  fuzzy - set  theory  with  other  methodologies  such  as  neural  networks.  In  the 
 neuro - fuzzy   methods  the  main  idea  is  to  encode  a  fuzzy  system  in  a  neural  network, 
and to apply standard approaches like backpropagation in order to train such a network. 
This  way,   neuro - fuzzy   systems  combine  the  representational  advantages  of  fuzzy 
systems with the ﬂ exibility and adaptivity of neural networks. Interpretations of fuzzy 
membership include similarity, preference, and uncertainty. A primary motivation was 
to provide an interface between a numerical scale and a symbolic scale that is usually 

REVIEW  QUESTIONS  AND  PROBLEMS 

443

composed of linguistic terms. Thus, fuzzy sets have the capability to interface quantita-
tive data with qualitative knowledge structures expressed in terms of natural language. 
In general, due to their closeness to human reasoning, solutions obtained using fuzzy 
approaches are easy to understand and to apply. This provides the user with compre-
hensive information and often data summarization for grasping the essence of discovery 
from a large amount of information in a complex system.  

 14.8  

 REVIEW QUESTIONS AND PROBLEMS 

      1.    Find some examples of fuzzy variables in daily life.   

   2.    Show graphically and explain why the law of contradiction is violated in the fuzzy -

 set theory.   

   3.    The MF of a fuzzy set is deﬁ ned as

   µA x
( )

=


1


(



0

for 0

20

< <
x
≤ <
x

50

−

)

50 x /30 for 20
≥

for x

50

    (a)      What  will  be  a  linguistic  description  of  the  fuzzy  set A  if  x  is  the  variable   “ age ”   in 

years?  

  (b)      Give an analytical description for  μ  B (x) if B is a fuzzy set  “ age is close to 60 years. ”       

   4.    Assume you were told that the room temperature is around 70 degrees Fahrenheit. 

How you would represent this information? 
  (a)      by a set notation,  
  (b)      by a fuzzy set notation.      

   5.    Consider the fuzzy sets A, B, and C deﬁ ned on the interval x    =    [0, 10] with cor-

responding  μ  functions:

   µ

A

( )
x

=

/(
x x

+

2

)

µ

( )
x

B

=

−

x

2

µ

( )
x

C

=

x




1

2

/

24

for x

∈

0 4 89
[ ,
.

]

otherwise

 Determine analytically and graphically:
   (a)      A ′  and B ′   
  (b)      A    ∪    C and A    ∪    B  
  (c)      A    ∩    C and A    ∩    B  
  (d)      A    ∪    B    ∪    C  
  (e)      A    ∩    C ′   
  (f)      Calculate the  α  - cuts for A, B, and C if  α     =    0.2,  α     =    0.5, and  α     =    1.      

   6.    Consider two fuzzy sets with triangular MFs A(x, 1, 2, 3) and B(x, 2, 2, 4). Find 
their  intersection  and  union  graphically,  and  express  them  analytically  using  the 
min and max operators.   

  
  
444 

FUZZY  SETS  AND  FUZZY  LOGIC

   7.    If X    =    {3, 4, 5} and Y    =    {3, 4, 5, 6, 7}, and the binary fuzzy relation R    =     “ Y is 

much greater than X ”  is deﬁ ned by the analytical MF

   µR X Y
(

,

)

=

−

) (
Y X / X Y

+


(



0

+

2

)

if Y X

>

if Y X

≤

what will be corresponding relation matrix of R (for all discrete X and Y values)?   

   8.    Apply the extension principle to the fuzzy set

− +
   A 0.1/ 2 0.4/ 1 0.8/0 0.9/1 0.3/2

− +

+

+

=

where the mapping function f(x)    =    x 2     −    3.
   (a)      What is the resulting image B where B    =    f(A)?  
  (b)      Sketch this transformation graphically.      

   9.    Assume  that  the  proposition   “ if  x  is A  then  y  is  B ”   is  given  where A  and  B  are 

fuzzy sets:

=

   A 0.5/x
1

+

1/x

2

+

0.6/x

3

=
   B 1/y
1

+

0.4/y

2

 Given a fact expressed by the proposition  “ x is A * , ”  where

   A

* =

0.6/x
1

+

0.9/x

2

+

0.7/x

3

derive the conclusion in the form  “ y is B *  ”  using the generalized  modus ponens  
inference rule.   

   10.    Solve Problem number 9 by using

=

   A 0.6/x
1

+

1/x

+

0.9/x

3

1/y

2

2
+

=

   B 0.6/y
1

   A

* =

0.5/x
1

+

0.9/x

2

+

1/x

3

   11.    The test scores for the three students are given in the following table: 

   Math  

   Physics  

   Chemistry  

   Language  

  Henry  
  Lucy  
  John  

  66  
  91  
  80  

  91  
  88  
  88  

  95  
  80  
  80  

  83  
  73  
  78  

 Find the best student using multifactorial evaluation, if the weight factors for the 
subjects are given as the vector W    =    [0.3, 0.2, 0.1, 0.4].   

 
 
 
  
 
 
 
    
     
REFERENCES  FOR  FURTHER  STUDY 

445

   12.    Search the Web to ﬁ nd the basic characteristics of publicly available or commercial 
software tools that are based on fuzzy sets and fuzzy logic. Make a report of your 
search.      

  14.9  

 REFERENCES FOR FURTHER STUDY 

    Chen ,  Y.  ,   T.   Wang  ,   B.   Wang  ,   Z.   Li  ,  A Survey of Fuzzy Decision Tree Classiﬁ er ,  Fuzzy Information 

and Engineering , Vol.  1 , No.  2 ,  2009 , pp.  149  –  159 .   
 Decision - tree algorithm provides one of the most popular methodologies for symbolic knowl-
edge  acquisition.  The  resulting  knowledge,  a  symbolic  decision  tree  along  with  a  simple 
inference mechanism, has been praised for comprehensibility. The most comprehensible deci-
sion trees have been designed for perfect symbolic data. Over the years, additional method-
ologies  have  been  investigated  and  proposed  to  deal  with  continuous  or  multi - valued  data, 
and with missing or noisy features. Recently, with the growing popularity of fuzzy representa-
tion, some researchers have proposed to utilize fuzzy representation in decision trees to deal with 
similar situations. This paper presents a survey of current methods for Fuzzy Decision Tree (FDT) 
designment and the various existing issues. After considering potential advantages of FDT classi-
ﬁ ers over traditional decision - tree classiﬁ ers, we discuss the subjects of FDT including attribute 
selection criteria, inference for decision assignment, and stopping criteria.  

    Cox ,   E.  ,   Fuzzy  Modeling  and  Genetic  Algorithms  for  Data  Mining  and  Exploration ,   Morgan 

Kaufmann ,  San Francisco, CA ,  2005 .   
  Fuzzy Modeling and Genetic Algorithms for Data Mining and Exploration  is a handbook for 
analysts, engineers, and managers involved in developing data - mining models in business and 
government. As you will discover, fuzzy systems are extraordinarily valuable tools for rep-
resenting  and  manipulating  all  kinds  of  data,  and  genetic  algorithms  and  evolutionary  pro-
gramming  techniques  drawn  from  biology  provide  the  most  effective  means  for  designing 
and tuning these systems. You do not need a background in fuzzy modeling or genetic algo-
rithms  to  beneﬁ t,  for  this  book  provides  it,  along  with  detailed  instruction  in  methods  that 
you  can  immediately  put  to  work  in  your  own  projects. The  author  provides  many  diverse 
examples and also an extended example in which evolutionary strategies are used to create a 
complex scheduling system.  

    Laurent ,   A.  ,    M.    Lesot  ,  eds.,   Scalable  Fuzzy  Algorithms  for  Data  Management  and  Analysis, 

Methods and Design ,  IGI Global ,  Hershey, PA ,  2010 .   
 The book presents innovative, cutting - edge fuzzy techniques that highlight the relevance of 
fuzziness for huge data sets in the perspective of scalability issues, from both a theoretical 
and experimental point of view. It covers a wide scope of research areas including data rep-
resentation,  structuring  and  querying,  as  well  as  information  retrieval  and  data  mining.  It 
encompasses different forms of databases, including data warehouses, data cubes, tabular or 
relational  data,  and  many  applications,  among  which  are  music  warehouses,  video  mining, 
bioinformatics, semantic Web and data streams.  

    Li ,  H. X.  ,   V. C.   Yen  ,  Fuzzy Sets and Fuzzy Decision - Making ,  CRC Press, Inc. ,  Boca Raton ,  1995 .   
 The book emphasizes the applications of fuzzy - set theory in the ﬁ eld of management science 
and  decision  science,  introducing  and  formalizing  the  concept  of  fuzzy  decision  making. 
Many  interesting  methods  of  fuzzy  decision  making  are  developed  and  illustrated  with 
examples.  

446 

FUZZY  SETS  AND  FUZZY  LOGIC

    Pal ,  S. K.  ,   S.   Mitra  ,  Neuro - Fuzzy Pattern Recognition: Methods in Soft Computing ,  John Wiley 

& Sons, Inc. ,  New York ,  1999 .   
 The  authors  consolidate  a  wealth  of  information  previously  scattered  in  disparate  articles, 
journals, and edited volumes, explaining both the theory of neuro - fuzzy computing and the 
latest  methodologies  for  performing  different  pattern - recognition  tasks  using  neuro - fuzzy 
networks — classiﬁ cation,  feature  evaluation,  rule  generation,  and  knowledge  extraction. 
Special  emphasis  is  given  to  the  integration  of  neuro - fuzzy  methods  with  rough  sets  and 
genetic algorithms to ensure a more efﬁ cient recognition system.  

    Pedrycz ,  W.  ,   F.   Gomide  ,  An Introduction to Fuzzy Sets: Analysis and Design ,  The MIT Press , 

 Cambridge ,  1998 .   
 The  book  provides  a  highly  readable,  comprehensive,  self - contained,  updated,  and  well -
 organized presentation of the fuzzy - set technology. Both theoretical and practical aspects of 
the subject are given a coherent and balanced treatment. The reader is introduced to the main 
computational models, such as fuzzy modeling and rule - based computation, and to the fron-
tiers of the ﬁ eld at the conﬂ uence of fuzzy - set technology with other major methodologies of 
soft computing.   

   
  15 

VISUALIZATION METHODS     

  Chapter Objectives 

     (cid:127)       Recognize the importance of a visual - perception analysis in humans to discover 

appropriate data - visualization techniques.  

   (cid:127)       Distinguish between scientiﬁ c - visualization and information - visualization tech-

niques (IVT).  

   (cid:127)       Understand  the  basic  characteristics  of  geometric,  icon - based,  pixel - oriented, 

and hierarchical techniques in visualization of large data sets  

   (cid:127)       Explain  the  methods  of  parallel  coordinates  and  radial  visualization  for 

n - dimensional data sets.  

   (cid:127)       Analyze the requirements for advanced visualization systems in data mining.     

    How are humans capable of recognizing hundreds of faces? What is our  “ channel 
capacity ”  when dealing with the visual or any other of our senses? How many distinct 
visual icons and orientations can humans accurately perceive? It is important to factor 
all  these  cognitive  limitations  when  designing  a  visualization  technique  that  avoids 
delivering  ambiguous  or  misleading  information.  Categorization  lays  the  foundation 

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

447

 
448 

VISUALIZATION  METHODS

for a well - known cognitive technique: the  “ chunking ”  phenomena. How many chunks 
can you hang onto? That varies among people, but the typical range forms  “ the magical 
number seven, plus or minus two. ”  The process of reorganizing large amounts of data 
into  fewer  chunks  with  more  bits  of  information  per  chunk  is  known  in  cognitive 
science as  “ recoding. ”  We expand our comprehension abilities by reformatting prob-
lems into multiple dimensions or sequences of chunks, or by redeﬁ ning the problem in 
a way that invokes relative judgment, followed by a second focus of attention.  

   15.1  

  PERCEPTION AND VISUALIZATION 

 Perception is our chief means of knowing and understanding the world; images are the 
mental pictures produced by this understanding. In perception as well as art, a meaning-
ful  whole  is  created  by  the  relationship  of  the  parts  to  each  other.  Our  ability  to  see 
patterns in things and pull together parts into a meaningful whole is the key to percep-
tion and thought. As we view our environment, we are actually performing the enor-
mously  complex  task  of  deriving  meaning  out  of  essentially  separate  and  disparate 
sensory elements. The eye, unlike the camera, is not a mechanism for capturing images 
so much as it is a complex processing unit that detects changes, forms, and features, 
and  selectively  prepares  data  for  the  brain  to  interpret.  The  image  we  perceive  is  a 
mental one, the result of gleaning what remains constant while the eye scans. As we 
survey our three - dimensional (3 - D) ambient environment, properties such as contour, 
texture, and regularity allow us to discriminate objects and see them as constants. 

 Human  beings  do  not  normally  think  in  terms  of  data;  they  are  inspired  by  and 
think  in  terms  of  images — mental  pictures  of  a  given  situation — and  they  assimilate 
information  more  quickly  and  effectively  as  visual  images  than  as  textual  or  tabular 
forms. Human vision is still the most powerful means of sifting out irrelevant informa-
tion and detecting signiﬁ cant patterns. The effectiveness of this process is based on a 
picture ’ s submodalities (shape, color, luminance, motion, vectors, texture). They depict 
abstract information as a visual grammar that integrates different aspects of represented 
information. Visually presenting abstract information, using graphical metaphors in an 
immersive 2 - D or 3 - D environment, increases one ’ s ability to assimilate many dimen-
sions of the data in a broad and immediately comprehensible form. It converts aspects 
of  information  into  experiences  our  senses  and  mind  can  comprehend,  analyze,  and 
act upon. 

 We  have  heard  the  phrase   “ Seeing  is  believing ”   many  times,  although  merely 
seeing is not enough. When you understand what you see, seeing becomes believing. 
Recently, scientists discovered that seeing and understanding together enable humans 
to  discover  new  knowledge  with  deeper  insight  from  large  amounts  of  data.  The 
approach integrates the human mind ’ s exploratory abilities with the enormous process-
ing power of computers to form a powerful visualization environment that capitalizes 
on the best of both worlds. A computer - based visualization technique has to incorporate 
the computer less as a tool and more as a communication medium. The power of visu-
alization to exploit human perception offers both a challenge and an opportunity. The 
challenge is to avoid visualizing incorrect patterns leading to incorrect decisions and 
actions. The opportunity is to use knowledge about human perception when designing 

SCIENTIFIC  VISUALIZATION  AND  INFORMATION  VISUALIZATION  

449

visualizations. Visualization creates a feedback loop between perceptual stimuli and the 
user ’ s cognition. 

 Visual data - mining technology builds on visual and analytical processes developed 
in various disciplines including scientiﬁ c visualization, computer graphics, data mining, 
statistics, and machine learning with custom extensions that handle very large multidi-
mensional  data  sets  interactively. The  methodologies  are  based  on  both  functionality 
that  characterizes  structures  and  displays  data  and  human  capabilities  that  perceive 
patterns, exceptions, trends, and relationships.  

  SCIENTIFIC VISUALIZATION AND 

   15.2  
INFORMATION VISUALIZATION 

 Visualization is deﬁ ned in the dictionary as  “ a mental image. ”  In the ﬁ eld of computer 
graphics, the term has a much more speciﬁ c meaning. Technically, visualization con-
cerns itself with the display of behavior and, particularly, with making complex states 
of behavior comprehensible to the human eye. Computer visualization, in particular, is 
about using computer graphics and other techniques to think about more cases, more 
variables, and more relations. The goal is to think clearly, appropriately, with insight, 
and to act with conviction. Unlike presentations, visualizations are typically interactive 
and very often animated. 

 Because of the high rate of technological progress, the amount of data stored in 
databases  increases  rapidly.  This  proves  true  for  traditional  relational  databases  and 
complex 2 - D and 3 - D multimedia databases that store images, computer - aided design 
(CAD)  drawings,  geographic  information,  and  molecular  biology  structure.  Many  of 
the applications mentioned rely on very large databases consisting of millions of data 
objects  with  several  tens  to  a  few  hundred  dimensions.  When  confronted  with  the 
complexity of data, users face tough problems: Where do I start? What looks interesting 
here? Have I missed anything? What are the other ways to derive the answer? Are there 
other data available? People think iteratively and ask ad hoc questions of complex data 
while looking for insights. 

 Computation,  based  on  these  large  data  sets  and  databases,  creates  content. 
Visualization  makes  computation  and  its  content  accessible  to  humans.  Therefore, 
visual data mining uses visualization to augment the data - mining process. Some data -
 mining techniques and algorithms are difﬁ cult for decision makers to understand and 
use. Visualization can make the data and the mining results more accessible, allowing 
comparison and veriﬁ cation of results. Visualization can also be used to steer the data -
 mining algorithm. 

 It is useful to develop a taxonomy for data visualization, not only because it brings 
order  to  disjointed  techniques,  but  also  because  it  clariﬁ es  and  interprets  ideas  and 
purposes behind these techniques. Taxonomy may trigger the imagination to combine 
existing techniques or discover a totally new technique. 

 Visualization techniques can be classiﬁ ed in a number of ways. They can be clas-
siﬁ ed as to whether their focus is geometric or symbolic, whether the stimulus is 2 - D, 
3 - D, or n - dimensional, or whether the display is static or dynamic. Many visualization 
tasks  involve  detection  of  differences  in  data  rather  than  a  measurement  of  absolute 

450 

VISUALIZATION  METHODS

values. It is the well - known Weber ’ s Law that states that the likelihood of detection is 
proportional to the relative change, not the absolute change, of a graphical attribute. In 
general,  visualizations  can  be  used  to  explore  data,  to  conﬁ rm  a  hypothesis,  or  to 
manipulate a view. 

 In   exploratory  visualizations ,  the  user  does  not  necessarily  know  what  he/she  is 
looking for. This creates a dynamic scenario in which interaction is critical. The user 
is searching for structures or trends and is attempting to arrive at some hypothesis. In 
 conﬁ rmatory visualizations , the user has a hypothesis that needs only to be tested. This 
scenario is more stable and predictable. System parameters are often predetermined and 
visualization  tools  are  necessary  for  the  user  to  conﬁ rm  or  refute  the  hypothesis.  In 
 manipulative  (production)  visualizations ,  the  user  has  a  validated  hypothesis  and  so 
knows exactly what is to be presented. Therefore, he/she focuses on reﬁ ning the visu-
alization to optimize the presentation. This type is the most stable and predictable of 
all visualizations. 

 The accepted taxonomy in this book is primarily based on different approaches in 
visualization  caused  by  different  types  of  source  data.  Visualization  techniques  are 
divided  roughly  into  two  classes,  depending  on  whether  physical  data  are  involved. 
These two classes are  scientiﬁ c visualization  and  information visualization . 

  Scientiﬁ c visualization  focuses primarily on physical data such as the human body, 
the earth, and molecules. Scientiﬁ c visualization also deals with multidimensional data, 
but  most  of  the  data  sets  used  in  this  ﬁ eld  use  the  spatial  attributes  of  the  data  for 
visualization  purposes,  for  example,  computer - aided  tomography(CAT)  and  CAD. 
Also,  many  of  the  Geographical  Information  Systems  (GIS)  use  either  the  Cartesian 
coordinate system or some modiﬁ ed geographical coordinates to achieve a reasonable 
visualization of the data. 

  Information visualization  focuses on abstract, nonphysical data such as text, hier-
archies,  and  statistical  data.  Data - mining  techniques  are  primarily  oriented  toward 
information visualization. The challenge for nonphysical data is in designing a visual 
representation of multidimensional samples (where the number of dimensions is greater 
than  three).  Multidimensional - information  visualizations  present  data  that  are  not 
primarily  plenary  or  spatial.  One - ,  two - ,  and  three - dimensional,  but  also  temporal 
information – visualization  schemes  can  be  viewed  as  a  subset  of  multidimensional 
information  visualization.  One  approach  is  to  map  the  nonphysical  data  to  a  virtual 
object such as a cone tree, which can be manipulated as if it were a physical object. 
Another approach is to map the nonphysical data to the graphical properties of points, 
lines, and areas. 

 Using historical developments as criteria, we can divide IVT into two broad catego-
ries: traditional IVT and novel IVT. Traditional methods of 2 - D and 3 - D graphics offer 
an  opportunity  for  information  visualization,  even  though  these  techniques  are  more 
often used for presentation of physical data in scientiﬁ c visualization. Traditional visual 
metaphors are used for a single or a small number of dimensions, and they include:

   1.       bar charts  that show aggregations and frequencies;  
  2.       histograms  that show the distribution of variable values;  
  3.       line charts  for understanding trends in order;  

SCIENTIFIC  VISUALIZATION  AND  INFORMATION  VISUALIZATION  

451

  4.       pie charts  for visualizing fractions of a total;   
  5.       scatter plots  for bivariate analysis.    

 Color - coding is one of the most common traditional IVT methods for displaying 
a 1 - D set of values where each value is represented by a different color. This represen-
tation becomes a continuous tonal variation of color when real numbers are the values 
of a dimension. Normally, a color spectrum from blue to red is chosen, representing a 
natural variation from  “ cool ”  to  “ hot, ”  in other words, from the smallest to the highest 
values. 

 With the development of large data warehouses, data cubes became very popular 
IVT.  A   data  cube ,  the  raw - data  structure  in  a  multidimensional  database,  organizes 
information  along  a  sequence  of  categories.  The  categorizing  variables  are  called 
dimensions. The data, called measures, are stored in cells along given dimensions. The 
cube dimensions are organized into hierarchies and usually include a dimension repre-
senting  time.  The  hierarchical  levels  for  the  dimension  time  may  be  year,  quarter, 
month, day, and hour. Similar hierarchies could be deﬁ ned for other dimensions given 
in a data warehouse. Multidimensional databases in modern data warehouses automati-
cally  aggregate  measures  across  hierarchical  dimensions;  they  support  hierarchical 
navigation, expand and collapse dimensions, enable drill down, drill up, or drill across, 
and facilitate comparisons through time. In a transaction information in the database, 
the  cube  dimensions  might  be  product,  store,  department,  customer  number,  region, 
month, year. The dimensions are predeﬁ ned indices in a cube cell and the measures in 
a cell are roll - ups or aggregations over the transactions. They are usually sums but may 
include functions such as average, standard deviation, and percentage. 
 For example, the values for the dimensions in a database may be 

  1.      region: north, south, east, west;  
  2.      product: shoes, shirts;  
  3.      month: anuary, February, March,    . . .    , December.    

 Then, the cell corresponding to (north, shirt, February) is the total sales of shirts 

for the northern region for the month of February. 

 Novel IVT can simultaneously represent large data sets with many dimensions on 

one screen. The widely accepted classiﬁ cations of these new techniques are 

  1.      geometric - projection techniques,  
  2.      icon - based techniques,  
  3.      pixel - oriented techniques, and  
  4.      hierarchical techniques.    

  Geometric - projection techniques  aim to ﬁ nd interesting projections of multidimen-

sional data sets. We will present some illustrative examples of these techniques. 

 The  Scatter - Plot  Matrix Technique  is  an  approach  that  is  very  often  available  in 
new data - mining software tools. A grid of 2 - D scatter plots is the standard means of 

452 

VISUALIZATION  METHODS

Dimension1

        Dimension 2

   Dimension 3           Dimension 4 

Sample 

     Figure 15.1.      A 4 - dimensional survey plot.  

extending a standard 2 - D scatter plot to higher dimensions. If you have 10 - D data, a 
10    ×    10 array of scatter plots is used to provide a visualization of each dimension versus 
every other dimension. This is useful for looking at all possible two - way interactions 
or  correlations  between  dimensions.  Positive  and  negative  correlations,  but  only 
between  two  dimensions,  can  be  seen  easily.  The  standard  display  quickly  becomes 
inadequate for extremely large numbers of dimensions, and user interactions of zooming 
and panning are needed to interpret the scatter plots effectively. 

 The Survey Plot is a simple technique of extending an n - dimensional point (sample) 
in a line graph. Each dimension of the sample is represented on a separate axis in which 
the dimension ’ s value is a proportional line from the center of the axis. The principles 
of representation are given in Figure 15 .1 .   

 This  visualization  of  n - dimensional  data  allows  you  to  see  correlations  between 
any two variables, especially when the data are sorted according to a particular dimen-
sion. When color is used for different classes of samples, you can sometimes use a sort 
to see which dimensions are best at classifying data samples. This technique was evalu-
ated with different machine - learning data sets and it showed the ability to present exact 
IF - THEN rules in a set of samples. 

 The   Andrews ’ s  curves   technique  plots  each  n - dimensional  sample  as  a  curved 
line. This is an approach similar to a Fourier transformation of a data point. This tech-
nique uses the function f(t) in the time domain t to transform the n - dimensional point 
X    =    (x1, x2, x3,    . . .    , xn) into a continuous plot. The function is usually plotted in the 
interval  −  π     ≤    t    ≤     π . An example of the transforming function f(t) is

   f t
( )

=

x1/1.41 x2

+

sin( )
t

+

x3

cos( )
t

+

x4

sin(

2t

)

+

x5

cos(

2t

)

+…   

 One advantage of this visualization is that it can represent many dimensions; the 
disadvantage, however, is the computational time required to display each n - dimensional 
point for large data sets. 

 The class of geometric - projection techniques also includes techniques of explor-
atory statistics such as principal component analysis (PCA), factor analysis, and mul-
tidimensional scaling. Parallel coordinate – visualization technique and radial - visualization 
technique belong in this category of visualizations, and they are explained in the next 
sections. 

 Another class of techniques for visual data mining is the  icon - based techniques  or 
iconic - display  techniques. The  idea  is  to  map  each  multidimensional  data  item  to  an 

SCIENTIFIC  VISUALIZATION  AND  INFORMATION  VISUALIZATION  

453

   Literacy

       Life expectancy

        Population  

                     Number of cold days 

        Non-homicide  
        rate                                      Income 

High-school              
graduates 

California

        Vermont

New Hampshire 

     Figure 15.2.      A star display for data on seven quality - of - life measures for three states.  

icon. An example is the stick - ﬁ gure technique. It maps two dimensions to the display 
dimensions and the remaining dimensions are mapped to the angles and/or limb lengths 
of  the  stick - ﬁ gure  icon.  This  technique  limits  the  number  of  dimensions  that  can  be 
visualized. A variety of special symbols have been invented to convey simultaneously 
the variations on several dimensions for the same sample. In 2 - D displays, these include 
Chernoff ’ s  faces,  glyphs,  stars,  and  color  mapping.  Glyphs  represent  samples  as 
complex symbols whose features are functions of data. We think of glyphs as location -
 independent representations of samples. For a successful use of glyphs, however, some 
sort of suggestive layout is often essential, because comparison of glyph shapes is what 
this type of rendering primarily does. If glyphs are used to enhance a scatter plot, the 
scatter plot takes over the layout functions. Figure 15 .2  shows how the other icon - based 
technique, called a  star display,  is applied to quality of life measures for various states. 
Seven dimensions represent seven equidistant radiuses for a circle: one circle for each 
sample. Every dimension is normalized on interval [0, 1], where the value 0 is in the 
center of the circle and the value 1 is at the end of the corresponding radius. This rep-
resentation  is  convenient  for  a  relatively  large  number  of  dimensions  but  for  a  very 
small number of samples. It is usually used for comparative analyses of samples, and 
it may be included as a part of more complex visualizations.   

 The  other  approach  is  an  icon - based,  shape - coding  technique  that  visualizes  an 
arbitrary number of dimensions. The icon used in this approach maps each dimension 
to a small array of pixels and arranges the pixel arrays of each data item into a square 
or  a  rectangle. The  pixels  corresponding  to  each  of  the  dimensions  are  mapped  to  a 
gray scale or color according to the dimension ’ s data value. The small squares or rect-
angles corresponding to the data items or samples are then arranged successively in a 
line - by - line fashion. 

 The third class of visualization techniques for multidimensional data aims to map 
each data value to a colored pixel and present the data values belonging to each attribute 
in separate windows. Since the  pixel - oriented techniques  use only one pixel per data 

 
 
        
454 

VISUALIZATION  METHODS

value, the techniques allow a visualization of the largest amount of data that are pos-
sible on current displays (up to about 1,000,000 data values). If one pixel represents 
one  data  value,  the  main  question  is  how  to  arrange  the  pixels  on  the  screen. These 
techniques use different arrangements for different purposes. Finally, the  hierarchical 
techniques   of  visualization  subdivide  the  k - dimensional  space  and  present  the  sub-
spaces in a hierarchical fashion. For example, the lowest levels are 2 - D subspaces. A 
common example of hierarchical techniques is dimensional - stacking representation. 

  Dimensional  stacking   is  a  recursive - visualization  technique  for  displaying  high -
 dimensional data. Each dimension is discretized into a small number of bins, and the 
display area is broken into a grid of subimages. The number of subimages is based on 
the number of bins associated with the two  “ outer ”  dimensions that are user - speciﬁ ed. 
The  subimages  are  decomposed  further  based  on  the  number  of  bins  for  two  more 
dimensions.  This  decomposition  process  continues  recursively  until  all  dimensions 
have been assigned. 

 Some of the novel visual metaphors that combine data - visualization techniques are 

already built into advanced visualization tools, and they include:

   1.      Parabox .       It combines boxes, parallel coordinates, and bubble plots for visual-
izing n - dimensional data. It handles both continuous and categorical data. The 
reason for combining box and parallel - coordinate plots involves their relative 
strengths. Box plots work well for showing distribution summaries. The strength 
of  parallel  coordinates  is  their  ability  to  display  high - dimensional  outliers, 
individual cases with exceptional values. Details about this class of visualization 
techniques are given in Section  15.3 .  

  2.      Data Constellations .       A component for visualizing large graphs with thousands 
of nodes and links. Two tables parametrize Data Constellations, one correspond-
ing  to  nodes  and  another  to  links.  Different  layout  algorithms  dynamically 
position  the  nodes  so  that  patterns  emerge  (a  visual  interpretation  of  outliers, 
clusters, etc.).  

  3.      Data Sheet .       A dynamic scrollable text visualization that bridges the gap between 
text and graphics. The user can adjust the zoom factor, progressively displaying 
smaller  and  smaller  fonts,  eventually  switching  to  a  one - pixel  representation. 
This process is called smashing.  

  4.      Time Table .       a technique for showing thousands of time - stamped events.  
  5.      Multiscape .       A  landscape  visualization  that  encodes  information  using  3 - D 

 “ skyscrapers ”  on a 2 - D landscape.    

 An example of one of these novel visual representations is given in Figure 15 .3 , 
where  a  large  graph  is  visualized  using  the  Data  Constellations  technique  with  one 
possible graph - layout algorithm.   

 For  most  basic  visualization  techniques  that  endeavor  to  show  each  item  in  a 
data set, such as scatter plots or parallel coordinates, a massive number of items will 
overload the visualization, resulting in a clutter that both causes scalability problems 
and  hinders  the  user ’ s  understanding  of  its  structure  and  contents.  New  visualization 

PARALLEL  COORDINATES 

455

     Figure 15.3.      Data Constellations as a novel visual metaphor.  

techniques have been proposed to overcome data overload problem, and to introduce 
abstractions that reduce the amount of items to display either in data space or in visual 
space. The approach is based on coupling aggregation in data space with a correspond-
ing  visual  representation  of  the  aggregation  as  a  visual  entity  in  the  graphical  space. 
This visual aggregate can convey additional information about the underlying contents, 
such as an average value, minima and maxima, or even its data distribution. 

 Drawing visual representations of abstractions performed in data space allows for 
creating simpliﬁ ed versions of visualization while still retaining the general overview. 
By dynamically changing the abstraction parameters, the user can also retrieve details -
 on - demand. There are several algorithms to perform data aggregations in a visualization 
process. For example, given a set of data items,  hierarchical aggregation  is based on 
iteratively building a tree of aggregates either bottom - up or top - down. Each aggregate 
item consists of one or more children that are either the original data items (leaves) or 
aggregate items (nodes). The root of the tree is an aggregate item that represents the 
entire data set. One of the main visual aggregations for scatter plots involves hierarchi-
cal aggregations of data into hulls, as it is represented in Figure 15 .4 . Hulls are varia-
tions and extensions of rectangular boxes as aggregates. They show enhanced displayed 
dimensions by using 2 - D or 3 - D convex hulls instead of axis - aligned boxes as a con-
strained visual metric. Clearly, the beneﬁ t of a data aggregate hierarchy and correspond-
ing visual aggregates is that the resulting visualization can be adapted to the requirements 
of the human user as well as the technical limitations of the visualization platform.    

   15.3  

  PARALLEL COORDINATES 

 Geometric - projection  techniques  include  the  parallel  coordinate — visualization  tech-
nique, one of the most frequently used modern visualization tools. The basic idea is to 
map the k - dimensional space onto the two - display dimensions by using k equidistant 
axes parallel to one of the display axes. The axes correspond to the dimensions and are 
linearly scaled from the minimum to the maximum value of the corresponding dimen-
sion. Each data item is presented as a polygonal line, intersecting each of the axes at 
the point that corresponds to the value of the considered dimension. 

456 

VISUALIZATION  METHODS

     Figure 15.4.      Convex hull aggregation [Elmquist 2010].  

  TAB LE 15.1.     Database with Six Numeric 
Attributes 

   Sample number  

    Dimensions  

  1  
  2  
  3  
  4  

  A  
  1  
  3  
  2  
  4  

  B  
  5  
  1  
  2  
  2  

  C  
  10  
  3  
  1  
  1  

  D  
  3  
  1  
  2  
  3  

  E  
  3  
  2  
  4  
  1  

  F  
  5  
  2  
  2  
  2  

4 

5 

10 

3 

4 

5 

1
A

1
B

1
C

1
D

1
E

2 
F

     Figure 15.5.      Graphical representation of 6 - dimesional samples from the database given in 
Table  15.1  using a parallel coordinate visualization technique.  

 Suppose that a set of 6 - D samples, given in Table  15.1 , is a small relational data-
base. To visualize these data, it is necessary to determine the maximum and minimum 
values  for  each  dimension.  If  we  accept  that  these  values  are  determined  automati-
cally  based  on  a  stored  database,  then  graphical  representation  of  data  is  given  on 
Figure 15 .5 .     

 
 
 
 
 
    
PARALLEL  COORDINATES 

457

 The   anchored - visualization  perspective   focuses  on  displaying  data  with  an  arbi-
trary number of dimensions, for example, between four and 20, using and combining 
multidimensional - visualization techniques such as weighted Parabox, bubble plots, and 
parallel coordinates. These methods handle both continuous and categorical data. The 
reason for combining them involves their relative strengths. Box plots works well for 
showing distribution summaries. Parallel coordinates ’  strength is their ability to display 
high - dimensional outliers, individual cases with exceptional values. Bubble plots are 
used for categorical data and the size of the circles inside the bubbles shows the number 
of samples and their respective value. The dimensions are organized along a series of 
parallel axes, as with parallel - coordinate plots. Lines are drawn between the bubble and 
the  box  plots  connecting  the  dimensions  of  each  available  sample.  Combining  these 
techniques results in a visual component that excels the visual representations created 
using separate methodologies. 

 An  example  of  multidimensional  anchored  visualization,  based  on  a  simple  and 
small data set, is given in Table  15.2 . The total number of dimensions is ﬁ ve, two of 
them are categorical and three are numeric. Categorical dimensions are represented by 
bubble plots (one bubble for every value) and numeric dimensions by boxes. The circle 
inside the bubbles visually shows the percentage that the given value represents in a 
database.  Lines  inside  the  boxes  represent  mean  value  and  standard  deviation  for  a 
given numeric dimension. The resulting representation in Figure 15 .6  shows all six 5 - D 

  TABLE 15.2.     The Database for Visualization 

   Sample number  

    Dimensions  

  1  
  2  
  3  
  4  
  5  
  6  

  A  
  Low  
  Medium  
  High  
  Medium  
  Low  
  Low  

  B  
  Low  
  Medium  
  Medium  
  Low  
  Low  
  Medium  

High

High

7

  C  
  2  
  4  
  7  
  1  
  3  
  4  

5

  D  
  4  
  2  
  5  
  3  
  1  
  3  

9 

  E  
  3  
  1  
  9  
  5  
  2  
  2  

Med.

Med. 

Low

Low

Dimensions A

B

0
C

0
D

0 
E 

     Figure 15.6.      Parabox visualization of a database given in Table  15.2 .  

    
458 

VISUALIZATION  METHODS

samples as connecting lines. Although the database given in Table  15.2  is small, still, 
by  using  anchored  representation,  we  can  see  that  one  sample  is  an  outlier  for  both 
numeric and categorical dimensions.     

  The  circular - coordinates   method  is  a  simple  variation  of  parallel  coordinates,  in 
which the axes radiate from the center of a circle and extend to the perimeter. The line 
segments are longer on the outer part of the circle where higher data values are typically 
mapped,  whereas  inner - dimensional  values  toward  the  center  of  the  circle  are  more 
cluttered. This visualization is actually a star and glyphs visualization of the data super-
imposed on one another. Because of the asymmetry of lower (inner) data values from 
higher ones, certain patterns may be easier to detect with this visualization.  

   15.4  

  RADIAL VISUALIZATION 

 Radial visualization is a technique for representation of multidimensional data where 
the number of dimensions are signiﬁ cantly greater then three. Data dimensions are laid 
out as points equally spaced around the perimeter of a circle. For example, in the case 
of an 8 - D space, the distribution of dimensions will be given as in Figure 15 .7 .   

 A  model  of  springs  is  used  for  point  representation.  One  end  of  n  springs  (one 
spring for each of n dimensions) is attached to n perimeter points. The other end of the 
springs is attached to a data point. Spring constants can be used to represent values of 
dimensions for a given point. The spring constant K i  equals the value of the  i th coor-
dinate of the given n - dimensional point where i    =    1,    . . .    , n. Values for all dimensions 
are  normalized  to  the  interval  between  0  and  1.  Each  data  point  is  then  displayed  in 
2 - D under condition that the sum of the spring forces is equal to 0. The radial visualiza-
tion of a 4 - D point P(K 1 , K 2 , K 3 , K 4 ) with the corresponding spring force is given in 
Figure 15 .8 .   

 Using basic laws from physics, we can establish a relation between coordinates in 
an n - dimensional space and in 2 - D presentation. For our example of 4 - D representation 
given in Figure 15 .8 , point P is under the inﬂ uence of four forces, F 1 , F 2 , F 3 , and F 4 . 
Knowing that every one of these forces can be expressed as a product of a spring con-
stant and a distance, or in a vector form

=
   F K d

⋅

       D7

D5

D6 

D4

 D8

D1

D2

D3

     Figure 15.7.      Radial visualization for an 8 - dimensional space.  

  
RADIAL  VISUALIZATION 

459

       D

4(0, 1) 

F4

D

3(–1, 0)                                                 D1(1, 0) 

F3

F1

F2

)y,x(P

        D2(0, –1) 

     Figure 15.8.      Sum of the spring forces for the given point P is equal to 0.  

 it is possible to calculate this force for a given point. For example, force F 1  in Figure 
15 .8  is a product of a spring constant K 1  and a distance vector between points P(x, y) 
and D 1 (1,0):

   F K x 1 i yj
([

]

1=

−

+

1

)   

 The same analysis will give expressions for F 2 , F 3 , and F 4 . Using the basic relation 

between forces

we will obtain

   F
1

+

F
2

+

F
3

+

F
4

=  
0

+
   K x 1 i yj K xi

([

+

−

(

)

]

1

2

+

[

+
y 1 j K x 1 i yj K xi

] )

([

+

+

+

+

]

)

(

+

−
] )
y 1 j

[

=   
0

4

3

 Both  the  i  and  j  components  of  the  previous  vector  have  to  be  equal  to  0,  and 

therefore:

or

+
   K x 1 K x K x 1 K x

+ +
)

− +
)

(

(

=  
0

4

2

− =
+ +
)
   K y K y 1 K y K y 1
)

+

+

(

(

0

2

4

1

1

   x K K / K K K K

) (

(

2

3

3

1

)  

4

   y K K / K K K K

) (

(

3

2

1

2

)   

4

=

=

−

−

1

4

+

+

+

+

3

3

+

+

 These are the basic relations for representing a 4 - D point P * (K 1 ,K 2 ,K 3 ,K 4 ) in a 2 - D 
space P(x, y) using the radial - visualization technique. Similar procedures may be per-
formed to get transformations for other n - dimensional spaces. 

 We  can  analyze  the  behavior  of  n - dimensional  points  after  transformation  and 
representation with two dimensions. For example, if all n coordinates have the same 
value, the data point will lie exactly in the center of the circle. In our 4 - D space, if the 

 
460 

VISUALIZATION  METHODS

initial point is P 1  * (0.6, 0.6, 0.6, 0.6), then using relations for x and y its presentation 
will be P 1 (0, 0). If the n - dimensional point is a unit vector for one dimension, then the 
projected point will lie exactly at the ﬁ xed point on the edge of the circle (where the 
spring for that dimension is ﬁ xed). Point P 2  * (0, 0, 1, 0) will be represented as P 2 ( − 1, 0). 
Radial visualization represents a nonlinear transformation of the data, which preserves 
certain  symmetries.  This  technique  emphasizes  the  relations  between  dimensional 
values, not between separate, absolute values. Some additional features of radial visu-
alization include:

   1.      Points with approximately equal coordinate values will lie close to the center 
of the representational circle. For example, P 3  * (0.5, 0.6, 0.4, 0.5) will have 2 - D 
coordinates P 3 (0.05,  − 0.05).  

  2.      Points that have one or two coordinate values greater than the others lie closer 
to  the  origins  of  those  dimensions.  For  example,  P 4  * (0.1,  0.8,  0.6,   − 0.1)  will 
have  a  2 - D  representation  P 4 ( − 0.36,   − 0.64).  The  point  is  in  a  third  quadrant 
closer to D2 and D3, points where the spring is ﬁ xed for the second and third 
dimensions.  

  3.      An n - dimensional line will map to the line or in a special case to the point. For 
example, points P 5  * (0.3, 0.3, 0.3, 0.3), P 6  * (0.6, 0.6, 0.6, 0.6), and P 7  * (0.9, 0.9, 
0.9, 0.9) are on a line in a 4 - D space, and all three of them will be transformed 
into the same 2 - D point P 567 (0, 0).  

  4.      A sphere will map to an ellipse.  
  5.      An n - dimensional plane maps to a bounded polygon.    

 The  Gradviz method  is a simple extension of a radial visualization that places the 
dimensional  anchors  on  a  rectangular  grid  instead  of  the  perimeter  of  a  circle.  The 
spring forces work the same way. Dimensional labeling for  Gradviz  is difﬁ cult, but the 
number  of  dimensions  that  can  be  displayed  increases  signiﬁ cantly  in  comparison  to 
the Radviz technique. For example, in a typical Radviz display 50 seems to be a rea-
sonable limit to the points around a circle. However, in a grid layout supported by the 
Gradviz technique you can easily ﬁ t 50    ×    50 grid points or dimensions into the same 
area.  

   15.5  

  VISUALIZATION USING SELF - ORGANIZING MAPS ( SOM  s ) 

 SOM is often seen as a promising technique for exploratory analyses through visualiza-
tion of high - dimensional data. It visualizes a data structure of a high - dimensional data 
space  usually  as  a  2 - D  or  3 - D  geometrical  picture.  SOMs  are,  in  effect,  a  nonlinear 
form of PCA, and share similar goals to multidimensional scaling. PCA is much faster 
to  compute,  but  it  has  the  disadvantage,  compared  with  SOMs,  of  not  retaining  the 
topology of the higher dimensional space. 

 The topology of the data set in its n - dimensional space is captured by the SOM 
and  reﬂ ected  in  the  ordering  of  its  output  nodes. This  is  an  important  feature  of  the 

VISUALIZATION  USING  SELF-ORGANIZING  MAPS  (SOMs) 

461

SOM that allows the data to be projected onto a lower dimension space while roughly 
preserving the order of the data in its original space. Resultant SOMs are then visual-
ized using graphical representations. SOM algorithm may use different data - visualization 
techniques including a cell or U - matrix visualization (a distance matrix visualization), 
projections  (mesh  visualization),  visualization  of  component  planes  (in  a  multiple -
 linked view), and 2 - D and 3 - D surface plot of distance matrices. These representations 
use visual variables (size, value, texture, color, shape, orientation) added to the position 
property of the map elements. This allows exploration of relationships between samples. 
A  coordinate  system  enables  to  determine  distance  and  direction,  from  which  other 
relationships (size, shape, density, arrangement, etc.) may be derived. Multiple levels 
of  detail  allow  exploration  at  various  scales,  creating  the  potential  for  hierarchical 
grouping of items, regionalization, and other types of generalizations. Graphical repre-
sentations in SOMs are used to represent uncovered structure and patterns that may be 
hidden  in  the  data  set  and  to  support  understanding  and  knowledge  construction. An 
illustrative example is given in Figure 15 .9  where linear or nonlinear relationships are 
detected by the SOM.   

 For  years  there  has  been  visualization  of  primary  numeric  data  using  pie  charts, 
colored graphs, graphs over time, multidimensional analysis, Pareto charts, and so forth. 
The counterpart to numeric data is unstructured, textual data. Textual data are found in 
many places, but nowhere more prominently than on the Web. Unstructured electronic 
data include emails, email attachments, PDF ﬁ les, spread sheets, PowerPoint ﬁ les, text 
ﬁ les, and document ﬁ les. In this new environment, the end user faces massive amounts, 

(a)

(b)

)
c
(

)
d
(

     Figure 15.9.      Output maps generated by the SOM detect relationships in data. (a) 1 - D image 
map; (b) 2 - D image map; (c) nonlinear relationship; (d) linear relationship.  

462 

VISUALIZATION  METHODS

often  millions,  of  unstructured  documents.  The  end  user  cannot  read  them  all,  and 
especially,  there  is  no  way  he/she  could  manually  organize  or  summarize  them. 
Unstructured data run the less formal part of the organization, while structured data run 
the formal part of the organization. It is a good assumption, conﬁ rmed in many real -
 world applications, that as many business decisions are made in the unstructured envi-
ronment as in the structured environment. 

 The SOM is one efﬁ cient solution for the problems of unstructured visualization of 
documents and unstructured data. With a properly constructed SOM, you can analyze 
literally millions of unstructured documents that can be merged into a single SOM. The 
SOM deals not only with individual unstructured documents but relationships between 
documents  as  well.  The  SOM  may  show  text  that  is  correlated  to  other  text.  For 
example, in the medical ﬁ eld, working with medical patient records, this ability to cor-
relate is very attractive. The SOM also allows the analyst to see the larger picture as well 
as drilling down to the detailed picture. The SOM goes down to the individual stemmed -
 text level, and that is as accurate as textual processing can become. All these character-
istics have resulted in the growing popularity of SOM visualizations in order to assist 
visual inspection of complex high - dimensional data. For the end user the ﬂ exibility of 
the SOM algorithm is deﬁ ned through a number of parameters. For appropriate conﬁ gu-
ration  of  the  network,  and  tuning  the  visualization  output,  user - deﬁ ned  parameters 
include grid dimensions (2 - D, 3 - D), grid shape (rectangle, hexagon), number of output 
nodes, neighborhood function, heighborhood size, learning - rate function, initial weights 
in the network, way of learning and number of iterations, and order of input samples.  

   15.6  

  VISUALIZATION SYSTEMS FOR DATA MINING 

 Many organizations, particularly within the business community, have made signiﬁ cant 
investments in collecting, storing, and converting business information into results that 
can be used. Unfortunately, typical implementations of business  “ intelligence software ”  
have proven to be too complex for most users except for their core reporting and chart-
ing capabilities. Users ’  demands for multidimensional analysis, ﬁ ner data granularity, 
and multiple - data sources, simultaneously, all at Internet speed, require too much spe-
cialist intervention for broad utilization. The result is a report explosion in which liter-
ally hundreds of predeﬁ ned reports are generated and pushed throughout the organization. 
Every  report  produces  another.  Presentations  get  more  complex.  Data  are  exploding. 
The best opportunities and the most important decisions are often the hardest to see. 
This  is  in  direct  conﬂ ict  with  the  needs  of  frontline  decision  makers  and  knowledge 
workers who are demanding to be included in the analytical process. 

 Presenting information visually, in an environment that encourages the exploration 
of linked events, leads to deeper insights and more results that can be acted upon. Over 
the past decade, research on information visualization has focused on developing spe-
ciﬁ c visualization techniques. An essential task for the next period is to integrate these 
techniques into a larger system that supports work with information in an interactive 
way, through the three basic components:  foraging the data ,  thinking about data , and 
 acting on data . 

VISUALIZATION  SYSTEMS  FOR  DATA  MINING 

463

 The  vision  of  a  visual  data - mining  system  stems  from  the  following  principles: 
simplicity, visibility, user autonomy, reliability, reusability, availability, and security. A 
visual data - mining system must be syntactically simple to be useful. Simple does not 
mean trivial or non - powerful. Simple to learn means use of intuitive and friendly input 
mechanisms as well as instinctive and easy - to - interpret output knowledge. Simple to 
apply means an effective discourse between humans and information. Simple to retrieve 
or recall means a customized data structure that facilitates fast and reliable searches. 
Simple to execute means a minimum number of steps needed to achieve the results. In 
short, simple means the smallest, functionally sufﬁ cient system possible. 

 A genuinely visual data - mining system must not impose knowledge on its users, 
but instead guide them through the mining process to draw conclusions. Users should 
study the visual abstractions and gain insight instead of accepting an automated deci-
sion.  A  key  capability  in  visual  analysis,  called  visibility,  is  the  ability  to  focus  on 
particular regions of interest. There are two aspects of visibility: excluding and restoring 
data. The exclude process eliminates the unwanted data items from the display so that 
only the selected set is visible. The restore process brings all data back, making them 
visible again. 

 A reliable data - mining system must provide for estimated error or accuracy of the 
projected information in each step of the mining process. This error information can 
compensate for the deﬁ ciency that an imprecise analysis of data visualization can cause. 
A reusable, visual, data - mining system must be adaptable to a variety of environments 
to reduce the customization effort, provide assured performance, and improve system 
portability. A practical, visual, data - mining system must be generally and widely avail-
able. The quest for new knowledge or deeper insights into existing knowledge cannot 
be planned. It requires that the knowledge received from one domain adapt to another 
domain  through  physical  means  or  electronic  connections. A  complete,  visual,  data -
 mining system must include security measures to protect the data, the newly discovered 
knowledge, and the user ’ s identity because of various social issues. 

 Through data visualization we want to understand or get an overview of the whole 
or a part of the n - dimensional data, analyzing also some speciﬁ c cases. Visualization 
of multidimensional data helps decision makers to 

  1.      slice information into multiple dimensions and present information at various 

levels of granularity,  

  2.      view trends and develop historical tracers to show operations over time,  
  3.      produce pointers to synergies across multiple dimensions,  
  4.      provide  exception  analysis  and  identify  isolated  (needle  in  the  haystack) 

opportunities,  

  5.      monitor adversarial capabilities and developments,  
  6.      create indicators of duplicative efforts,  
  7.      conduct What - If Analysis and Cross - Analysis of variables in a data set.    

 Visualization tools transform raw experimental or simulated data into a form suit-
able  for  human  understanding.  Representations  can  take  on  many  different  forms, 

464 

VISUALIZATION  METHODS

depending on the nature of the original data and the information that is to be extracted. 
However, the visualization process that should be supported by modern, visualization -
 software tools can generally be subdivided into three main stages: data preprocessing, 
visualization mapping, and rendering. Through these three steps the tool has to answer 
the questions: What should be shown in a plot? How should one work with individual 
plots? How should multiple plots be organized? 

 Data preprocessing involves such diverse operations as interpolating irregular data, 
ﬁ ltering  and  smoothing  raw  data,  and  deriving  functions  for  measured  or  simulated 
quantities.  Visualization  mapping  is  the  most  crucial  stage  of  the  process,  involving 
design and adequate representation of the ﬁ ltered data, which efﬁ ciently conveys the 
relevant  and  meaningful  information.  Finally,  the  representation  is  often  rendered  to 
communicate information to the human user. 

 Data visualization is essential for understanding the concept of multidimensional 
spaces. It allows the user to explore the data in different ways and at different levels 
of abstraction to ﬁ nd the right level of details. Therefore, techniques are most useful if 
they  are  highly  interactive,  permit  direct  manipulation,  and  include  a  rapid  response 
time. The analyst must be able to navigate the data, change its grain (resolution), and 
alter its representation (symbols, colors, etc.). 

 Broadly  speaking,  the  problems  addressed  by  current  information - visualization 

tools and requirements for a new generation fall into the following classes:

   1.      Presentation  Graphics .       These  generally  consist  of  bars,  pies,  and  line  charts 
that are easily populated with static data and drop into printed reports or pre-
sentations.  The  next  generation  of  presentation  graphics  enriches  the  static 
displays with a 3 - D or projected n - dimensional information landscape. The user 
can then navigate through the landscape and animate it to display time - oriented 
information.  

  2.      Visual Interfaces for Information Access .       They are focused on enabling users 
to navigate through complex information spaces to locate and retrieve informa-
tion. Supported user tasks involve searching, backtracking, and history logging. 
User - interface techniques attempt to preserve user - context and support smooth 
transitions between locations.  

  3.      Full Visual Discovery and Analysis .       These systems combine the insights com-
municated by presentation graphics with an ability to probe, drill down, ﬁ lter, 
and manipulate the display to answer the  “ why ”  question as well as the  “ what ”  
question.  The  difference  between  answering  a   “ what ”   and  a   “ why ”   question 
involves  an  interactive  operation.  Therefore,  in  addition  to  the  visualization 
technique,  effective  data  exploration  requires  using  some   interaction   and 
 distortion   techniques. The   interaction  techniques   let  the  user  directly  interact 
with  the  visualization.  Examples  of  interaction  techniques  include  interactive 
mapping,  projection,  ﬁ ltering,  zooming,  and  interactive  linking  and  brushing. 
These techniques allow dynamic changes in the visualizations according to the 
exploration  objectives,  but  they  also  make  it  possible  to  relate  and  combine 
multiple,  independent  visualizations.  Note  that  connecting  multiple  visualiza-
tions  by  linking  and  brushing,  for  example,  provides  more  information  than 

VISUALIZATION  SYSTEMS  FOR  DATA  MINING 

465

considering  the  component  visualizations  independently.  The   distortion  tech-
niques   help  in  the  interactive  exploration  process  by  providing  a  means  for 
focusing while preserving an overview of the data. Distortion techniques show 
portions of the data with a high level of detail while other parts are shown with 
a much lower level of detail.    

 Three tasks are fundamental to data exploration with these new visualization tools:

   1.      Finding Gestalt .       Local and global linearities and nonlinearities, discontinuities, 
clusters,  outliers,  unusual  groups,  and  so  on  are  examples  of  gestalt  features 
that can be of interest. Focusing through individual views is the basic require-
ment  to  obtain  a  qualitative  exploration  of  data  using  visualization.  Focusing 
determines what gestalt of the data is seen. The meaning of focusing depends 
very much on the type of visualization technique chosen.  

  2.      Posing Queries .       This is a natural task after the initial gestalt features have been 
found, and the user requires query identiﬁ cation and characterization technique. 
Queries can concern individual cases as well as subsets of cases. The goal is 
essentially to ﬁ nd intelligible parts of the data. In graphical data analysis it is 
natural to pose queries graphically. For example, familiar brushing techniques 
such  as  coloring  or  otherwise  highlighting  a  subset  of  data  means  issuing  a 
query about this subset. It is desirable that the view where the query is posed 
and the view that present the response are linked. Ideally, responses to queries 
should be instantaneous.  

  3.      Making Comparisons .       Two types of comparisons are frequently made in prac-
tice. The  ﬁ rst  one  is  a  comparison  of  variables  or  projections  and  the  second 
one is a comparison of subsets of data. In the ﬁ rst case, one compares views 
 “ from different angles ” ; in the second, comparison is based on views  “ of dif-
ferent slices ”  of the data. In either case, it is likely that a large number of plots 
are generated, and therefore it is a challenge to organize the plots in such a way 
that meaningful comparisons are possible.    

 Visualization has been used routinely in data mining as a presentation tool to gen-
erate initial views, navigate data with complicated structures, and convey the results of 
an analysis. Generally, the analytical methods themselves do not involve visualization. 
The  loosely  coupled  relationships  between  visualization  and  analytical  data - mining 
techniques represent the majority of today ’ s state - of - the - art in visual data mining. The 
process - sandwich strategy, which interlaces analytical processes with graphical visual-
ization,  penalizes  both  procedures  with  the  other ’ s  deﬁ ciencies  and  limitations.  For 
example,  because  an  analytical  process  cannot  analyze  multimedia  data,  we  have  to 
give up the strength of visualization to study movies and music in a visual data - mining 
environment. A stronger strategy lies in tightly coupling the visualization and analytical 
processes  into  one  data - mining  tool.  Letting  human  visualization  participate  in  the 
decision making in analytical processes remains a major challenge. Certain mathemati-
cal steps within an analytical procedure may be substituted by human decisions based 
on visualization to allow the same procedure to analyze a broader scope of information. 

466 

VISUALIZATION  METHODS

B

µ

µ               y 

µ

µ

A

sretsulclaitnetoP

x

     Figure  15.10.      An  example  of  the  need  for  general  projections,  which  are  not  parallel  to 
axes, to improve clustering process.  

Visualization  supports  humans  in  dealing  with  decisions  that  can  no  longer  be 
automated. 

 For example, visualization techniques can be used for efﬁ cient process of  “ visual 
clustering. ”  The algorithm is based on ﬁ nding a set of projections P    =    [P 1 , P 2 ,    . . .    ,P k ] 
useful for separating the initial data into clusters. Each projection represents the histo-
gram  information  of  the  point  density  in  the  projected  space.  The  most  important 
information about a projection is whether it contains well - separated clusters. Note that 
well - separated clusters in one projection could result from more than one cluster in the 
original space. Figure 15 .10  shows an illustration of these projections. You can see that 
the axes ’  parallel projections do not preserve well the information necessary for cluster-
ing. Additional projections A and B, in Figure 15 .10 , deﬁ ne three clusters in the initial 
data set.   

 Visual techniques that preserve some characteristics of the data set can be invalu-
able  for  obtaining  good  separators  in  a  clustering  process.  In  contrast  to  dimension -
 reduction approaches such as PCAs, this visual approach does not require that a single 
projection  preserve  all  clusters.  In  the  projections,  some  clusters  may  overlap  and 
therefore not be distinguishable, such as projection A in Figure 15 .10 . The algorithm 
only needs projections that separate the data set into at least two subsets without divid-
ing any clusters. The subsets may then be reﬁ ned using other projections and possibly 
partitioned further based on separators in other projections. Based on the visual repre-
sentation of the projections, it is possible to ﬁ nd clusters with unexpected characteristics 
(shapes, dependencies) that would be very difﬁ cult or impossible to ﬁ nd by tuning the 
parameter settings of automatic - clustering algorithms. 

 In  general,  model  visualization  and  exploratory  data  analysis  (EDA)  are  data -
 mining tasks in which visualization techniques have played a major role. Model visu-
alization is the process of using visual techniques to make the discovered knowledge 
understandable  and  interpretable  by  humans.  Techniques  range  from  simple  scatter 
plots and histograms to sophisticated multidimensional visualizations and animations. 

REVIEW  QUESTIONS  AND  PROBLEMS 

467

These visualization techniques are being used not only to convey mining results more 
understandable to end users, but also to help them understand how the algorithm works. 
EDA, on the other hand, is the interactive exploration of usually graphical representa-
tions of a data set without heavy dependence on preconceived assumptions and models, 
thus attempting to identify interesting and previously unknown patterns. Visual data -
 exploration techniques are designed to take advantage of the powerful visual capabili-
ties of human beings. They can support users in formulating hypotheses about the data 
that may be useful in further stages of the mining process.  

 15.7  

 REVIEW QUESTIONS AND PROBLEMS 

       1.     Explain the power of n - dimensional visualization as a data - mining technique. What 

are the phases of data mining supported by data visualization?   

    2.     What are fundamental experiences in human perception we would build into effec-

tive visualization tools?   

    3.     Discuss 

the  differences  between  scientiﬁ c  visualization  and 

information 

visualization.   

    4.     The following is the data set X: 

   X:  

   Year  

  1996  
  1997  
  1998  
  1999  
  2000  
  2001  

   A  

  7  
  5  
  7  
  9  
  5  
  7  

   B  

  100  
  150  
  120  
  150  
  130  
  150  

 Although  the  following  visualization  techniques  are  not  explained  with  enough 
details in this book, use your knowledge from earlier studies of statistics and other 
courses to create 2 - D presentations.
   (a)      Show a bar chart for the variable A.  
  (b)      Show a histogram for the variable B.  
  (c)      Show a line chart for the variable B.  
  (d)      Show a pie chart for the variable A.  
  (e)      Show a scatter plot for A and B variables.      

    5.     Explain the concept of a data cube and where it is used for visualization of large 

data sets.   

    6.     Use  examples  to  discuss  the  differences  between  icon - based  and  pixel - oriented 

visualization techniques.   

    7.     Given 7 - D samples 

     
    
    
    
    
    
    
468 

VISUALIZATION  METHODS

   x 1   

  A  
  B  
  A  
  A  
  B  

   x 2   

  1  
  3  
  5  
  2  
  5  

   x 3   

  25  
  27  
  29  
  21  
  30  

   x 4   

   x 5   

   x 6   

   x 7   

  7  
  3  
  5  
  9  
  7  

  T  
  T  
  T  
  F  
  F  

  1  
  2  
  1  
  3  
  1  

  5  
  9  
  7  
  2  
  7  

       (a)      make a graphical representation of samples using the parallel - coordinates technique;  
  (b)      are there any outliers in the given data set?      

    8.     Derive formulas for radial visualization of 

  (a)      3 - D samples  
  (b)      8 - D samples  
  (c)      using the formulas derived in (a) represent samples (2, 8, 3) and (8, 0, 0).  
  (d)      using the formulas derived in (b) represent samples (2, 8, 3, 0, 7, 0, 0, 0) and (8, 8, 0, 

0, 0, 0, 0, 0).      

    9.     Implement a software tool supporting a radial - visualization technique.   

    10.     Explain the requirements for full visual discovery in advanced visualization tools.   

    11.     Search the Web to ﬁ nd the basic characteristics of publicly available or commercial 
software tools for visualization of n - dimensional samples. Document the results of 
your search.      

  15.8  

 REFERENCES FOR FURTHER STUDY 

    Draper ,   G.  M.  ,    L.  Y.    Livnat  ,    R.  F.    Riesenfeld  ,   A  Survey  of  Radial  Methods  for  Information 
Visualization ,   IEEE  Transaction  on  Visualization  and  Computer  Graphics ,  Vol.   15 ,  No.   5 , 
 2009 , pp.  759  –  776 .  
  Radial visualization, or the practice of displaying data in a circular or elliptical pattern, is an 
increasingly common technique in information visualization research. In spite of its preva-
lence, little work has been done to study this visualization paradigm as a methodology in its 
own  right.  We  provide  a  historical  review  of  radial  visualization,  tracing  it  to  its  roots  in 
centuries - old  statistical  graphics.  We  then  identify  the  types  of  problem  domains  to  which 
modern radial visualization techniques have been applied. A taxonomy for radial visualization 
is proposed in the form of seven design patterns encompassing nearly all recent works in this 
area. From an analysis of these patterns, we distill a series of design considerations that system 
builders  can  use  to  create  new  visualizations  that  address  aspects  of  the  design  space  that 
have  not  yet  been  explored.  It  is  hoped  that  our  taxonomy  will  provide  a  framework  for 
facilitating discourse among researchers and stimulate the development of additional theories 
and systems involving radial visualization as a distinct design metaphor.  

    Fayyad ,  V.  ,   G. G.   Grinstein  ,   A.   Wierse  ,  Information Visualization in Data Mining and Knowledge 

Discovery ,  Morgan Kaufmann ,  San Francisco, CA ,  2002 .  
  Leading researchers from the ﬁ elds of data mining, data visualization, and statistics present 
ﬁ ndings organized around topics introduced in two recent international knowledge - discovery 

REFERENCES  FOR  FURTHER  STUDY 

469

and data - mining workshops. The book introduces the concepts and components of visualiza-
tion, details current efforts to include visualization and user interaction in data mining, and 
explores the potential for further synthesis of data - mining algorithms and data - visualization 
techniques.  

    Ferreira de Oliveira ,  M. C.  ,   H.   Levkowitz  ,  From Visual Data Exploration to Visual Data Mining: 
A Survey ,  IEEE Transactions On Visualization And Computer Graphics , Vol.  9 , No.  3 ,  2003 , 
pp.  378  –  394 .  
  The authors survey work on the different uses of graphical mapping and interaction techniques 
for visual data mining of large data sets represented as table data. Basic terminology related 
to  data  mining,  data  sets,  and  visualization  is  introduced.  Previous  work  on  information 
visualization is reviewed in light of different categorizations of techniques and systems. The 
role  of  interaction  techniques  is  discussed,  in  addition  to  work  addressing  the  question  of 
selecting  and  evaluating  visualization  techniques.  We  review  some  representative  work  on 
the use of IVT in the context of mining data. This includes both visual - data exploration and 
visually expressing the outcome of speciﬁ c mining algorithms. We also review recent innova-
tive approaches that attempt to integrate visualization into the DM/KDD process, using it to 
enhance user interaction and comprehension.  

    Gallaghar ,   R.  S.  ,   Computer  Visualization:  Graphics  Techniques  for  Scientiﬁ c  and  Engineering 

Analysis ,  CRC Press ,  Boca Raton ,  1995 .  
  The  book  is  a  complete  reference  book  on  computer - graphic  techniques  for  scientiﬁ c  and 
engineering visualization. It explains the basic methods applied in different ﬁ elds to support 
an  understanding  of  complex,  volumetric,  multidimensional,  and  time - dependent  data. The 
practical computational aspects of visualization such as user interface, database architecture, 
and interaction with a model are also analyzed.  

    Spence ,  R.  ,  Information Visualization ,  Addison Wesley ,  Harlow, England ,  2001 .  

  This is the ﬁ rst fully integrated book on the emerging discipline of information visualization. 
Its  emphasis  is  on  real - world  examples  and  applications  of  computer - generated  interactive 
information visualization. The author also explains how these methods for visualizing infor-
mation support rapid learning and accurate decision making.  

    Tufte ,  E. R.  ,  Beautiful Evidence ,  2nd  edition,  Graphic Press, LLC ,  Cheshire, CT,   2007 .  

   Beautiful Evidence  is a masterpiece from a pioneer in the ﬁ eld of data visualization. It is not 
often an iconoclast comes along, trashes the old ways, and replaces them with an irresistible 
new interpretation. By teasing out the sublime from the seemingly mundane world of charts, 
graphs, and tables, Tufte has proven to a generation of graphic designers that great thinking 
begets great presentation. In  Beautiful Evidence , his fourth work on analytical design, Tufte 
digs  more  deeply  into  art  and  science  to  reveal  very  old  connections  between  truth  and 
beauty — all the way from Galileo to Google.   

 
 
 APPENDIX A     

      This summary of some recognized journals, conferences, blog sites, data - mining tools, 
and  data  sets  is  being  provided  to  help  readers  to  communicate  with  other  users  of 
data - mining technology, and to receive information about trends and new applications 
in the ﬁ eld. It could be especially useful for students who are starting to work in data 
mining and trying to ﬁ nd appropriate information or solve current class - oriented tasks. 
This list is not intended to endorse any speciﬁ c Web site, and the reader has to be aware 
that this is only a small sample of possible resources on the Internet.   

   A.1  

  DATA - MINING JOURNALS 

    1.      Data Mining and Knowledge Discovery (DMKD)    

  http://www.kluweronline.com/issn/1384 - 5810/  

  DMKD  is a premier technical publication in the Knowledge Discovery and Data 
Mining  (KDD)  ﬁ eld,  providing  a  resource  collecting  common  relevant  methods  and 
techniques and a forum for unifying the diverse constituent research communities. The 
journal  publishes  original  technical  papers  in  both  the  research  and  practice  of  data 
mining  and  knowledge  discovery  surveys  and  tutorials  of  important  areas  and  tech-
niques,  and  detailed  descriptions  of  signiﬁ cant  applications.  The  scope  of   DMKD  
includes (1)  theory and foundational issues including  data and knowledge representa-
tion, uncertainty management, algorithmic complexity, and statistics over massive data 
sets; (2)  data mining methods  such as classiﬁ cation, clustering, probabilistic modeling, 
prediction  and  estimation,  dependency  analysis,  search,  and  optimization;  (3)  a lgo-
rithms  for spatial, textual, and multimedia data mining, scalability to large databases, 
parallel  and  distributed  data - mining  techniques,  and  automated  discovery  agents;  (4) 
 knowledge discovery proc ess including data preprocessing, evaluating, consolidating, 
and explaining discovered knowledge, data and knowledge visualization, and interac-
tive data exploration and discovery; and (5)  application issues  such as application case 
studies,  data - mining  systems  and  tools,  details  of  successes  and  failures  of  KDD, 
resource/knowledge discovery on the Web, and privacy and security.

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

470

DATA-MINING  JOURNALS 

471

   2.      IEEE Transactions on Knowledge and Data Engineering (TKDE)    

  http://www.computer.org/tkde/  

 The  IEEE TKDE  is an archival journal published monthly. The information pub-
lished in this journal is designed to inform researchers, developers, managers, strategic 
planners, users, and others interested in state - of - the - art and state - of - the - practice activi-
ties in the knowledge and data - engineering area. We are interested in well - deﬁ ned theo-
retical  results  and  empirical  studies  that  have  potential  impact  on  the  acquisition, 
management, storage, and graceful degeneration of knowledge and data, as well as in 
provision of knowledge and data services. Speciﬁ c topics include, but are not limited 
to, (1) artiﬁ cial intelligence (AI) techniques, including speech, voice, graphics, images, 
and documents; (2) knowledge and data - engineering tools and techniques; (3) parallel 
and distributed processing; (4) real - time distributed; (5) system architectures, integra-
tion, and modeling; (6) database design, modeling, and management; (7) query design 
and implementation languages; (8) distributed database control; (9) algorithms for data 
and knowledge management; (10) performance evaluation of algorithms and systems; 
(11)  data - communications  aspects;  (12)  system  applications  and  experience;  (13) 
knowledge - based and expert systems; and (14) integrity, security, and fault tolerance.

   3.      Knowledge and Information Systems (KAIS)    
  http://www.cs.uvm.edu/ ∼ kais/  

  KAIS   is  a  peer - reviewed  archival  journal  published  by  Springer.  It  provides  an 
international  forum  for  researchers  and  professionals  to  share  their  knowledge  and 
report new advances on all topics related to knowledge systems and advanced informa-
tion  systems.  The  journal  focuses  on  knowledge  systems  and  advanced  information 
systems, including their theoretical foundations, infrastructure, enabling technologies, 
and  emerging  applications.  In  addition  to  archival  papers,  the  journal  also  publishes 
signiﬁ cant  ongoing  research  in  the  form  of  short  papers  and  very  short  papers  on 
 “ visions and directions. ” 

   4.      IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI)    

  http://computer.org/tpami/  

  IEEE TPAMI  is a scholarly archival journal published monthly. Its editorial board 
strives to present most important research results in areas within  TPAMI  ’ s scope. This 
includes all traditional areas of computer vision and image understanding, all traditional 
areas of pattern analysis and recognition, and selected areas of machine intelligence. 
Areas such as machine learning, search techniques, document and handwriting analysis, 
medical - image analysis, video and image sequence analysis, content - based retrieval of 
image and video, face and gesture recognition, and relevant specialized hardware and/
or software architectures are also covered.

   5.      Machine Learning    

  http://www.kluweronline.com/issn/0885 - 6125/  

  Machine  Learning   is  an  international  forum  for  research  on  computational 
approaches to learning. The journal publishes articles reporting substantive results on 

472 

APPENDIX  A

a wide range of learning methods applied to a variety of learning problems. It features 
papers  that  describe  research  on  problems  and  methods,  applications  research,  and 
issues of research methodology as well as papers making claims about learning prob-
lems  or  methods  provide  solid  support  via  empirical  studies,  theoretical  analysis,  or 
comparison  to  psychological  phenomena.  Application  papers  show  the  process  of 
applying learning methods to solve important applications problems. Research meth-
odology  papers  improve  how  machine - learning  research  is  conducted.  All  papers 
describe  the  supporting  evidence  in  ways  that  can  be  veriﬁ ed  or  replicated  by  other 
researchers. The papers also detail the learning component clearly and discuss assump-
tions regarding knowledge representation and the performance task.

   6.      Journal of Machine Learning Research (JMLR)    

  http://jmlr.csail.mit.edu  

 The  JMLR  provides an international forum for the electronic and paper publication 
of high - quality scholarly articles in all areas of machine learning. All published papers 
are freely available online. JMLR has a commitment to rigorous yet rapid reviewing. 
JMLR provides a venue for papers on machine learning featuring new algorithms with 
empirical,  theoretical,  psychological,  or  biological  justiﬁ cation;  experimental  and/or 
theoretical  studies  yielding  new  insights  into  the  design  and  behavior  of  learning  in 
intelligent systems; accounts of applications of existing techniques that shed light on 
the strengths and weaknesses of the methods; formalization of new learning tasks (e.g., 
in the context of new applications) and of methods for assessing performance on those 
tasks;  development  of  new  analytical  frameworks  that  advance  theoretical  studies  of 
practical - learning methods; computational models of data from natural learning systems 
at the behavioral or neural level; or extremely well - written surveys of existing work.

   7.      ACM Transactions on Knowledge Discovery from Data (TKDD)    

  http://tkdd.cs.uiuc.edu/index.html  

 The   ACM  TKDD   addresses  a  full  range  of  research  in  the  knowledge  discovery 
and  analysis  of  diverse  forms  of  data.  Such  subjects  include  scalable  and  effective 
algorithms for data mining and data warehousing, mining data streams, mining multi-
media data, mining high - dimensional data, mining text, Web, and semi - structured data, 
mining  spatial  and  temporal  data,  data  mining  for  community  generation,  social -
 network analysis, and graph structured data, security and privacy issues in data mining, 
visual, interactive and online data mining, preprocessing and postprocessing for data 
mining, robust and scalable statistical methods, data - mining languages, foundations of 
data mining, KDD framework and process, and novel applications and infrastructures 
exploiting data - mining technology.

   8.      Journal of Intelligent Information Systems (JIIS)    

  http://www.springerlink.com/content/0925 - 9902  

 The  JIIS: Integrating Artiﬁ cial Intelligence and Database Technologies  fosters and 
presents research and development results focused on the integration of AI and database 

DATA-MINING  CONFERENCES 

473

technologies  to  create  next  generation  information  systems — intelligent  information 
systems.  JIIS  provides a forum wherein academics, researchers, and practitioners may 
publish high - quality, original and state - of - the - art papers describing theoretical aspects, 
systems  architectures,  analysis  and  design  tools  and  techniques,  and  implementation 
experiences  in  intelligent  information  systems.  Articles  published  in   JIIS   include 
research papers, invited papers, meeting, workshop and conference announcements and 
reports, survey and tutorial articles, and book reviews. Topics include foundations and 
principles  of  data,  information,  and  knowledge  models;  and  methodologies  for  IIS 
analysis, design, implementation, validation, maintenance and evolution.

   9.      Statistical Analysis and Data Mining    

  http://www.amstat.org/publications/sadm.cfm  

 The  Statistical Analysis and Data Mining  addresses the broad area of data analysis, 
including  data - mining  algorithms,  statistical  approaches,  and  practical  applications. 
Topics  include  problems  involving  massive  and  complex  data  sets,  solutions  using 
innovative data - mining algorithms and/or novel statistical approaches, and the objective 
evaluation of analyses and solutions. Of special interest are articles that describe ana-
lytical techniques and discuss their application to real problems in such a way that they 
are  accessible  and  beneﬁ cial  to  domain  experts  across  science,  engineering,  and 
commerce.

   10.      Intelligent Data Analysis    

  http://www.iospress.nl/html/1088467x.php  

  Intelligent Data Analysis  provides a forum for the examination of issues related to 
the research and applications of AI techniques in data analysis across a variety of dis-
ciplines. These techniques include (but are not limited to) all areas of data visualization, 
data preprocessing (fusion, editing, transformation, ﬁ ltering, sampling), data engineer-
ing, database mining techniques, tools and applications, use of domain knowledge in 
data  analysis,  evolutionary  algorithms,  machine  learning,  neural  nets,  fuzzy  logic, 
statistical  pattern  recognition,  knowledge  ﬁ ltering,  and  postprocessing.  In  particular, 
we prefer papers that discuss development of new AI - related data analysis architectures, 
methodologies, and techniques and their applications to various domains. Papers pub-
lished in this journal are geared heavily toward applications, with an anticipated split 
of 70% of the papers published being application - oriented research, and the remaining 
30% containing more theoretical research.  

   A.2  

  DATA - MINING CONFERENCES 

    1.      SIAM International Conference on Data Mining, SDM    

  http://www.siam.org/meetings/  

 This  conference  provides  a  venue  for  researchers  who  are  addressing  extracting 
knowledge from large datasets that requires the use of sophisticated, high - performance 

474 

APPENDIX  A

and  principled  analysis  techniques  and  algorithms,  based  on  sound  theoretical  and 
statistical foundations. It also provides an ideal setting for graduate students and others 
new  to  the  ﬁ eld  to  learn  about  cutting - edge  research  by  hearing  outstanding  invited 
speakers and attending presentations and tutorials (included with conference registra-
tion). A set of focused workshops are also held in the conference. The proceedings of 
the conference are published in archival form, and are also made available on the  SIAM  
Web site.

   2.      The ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD)    

  http://sigkdd.org/conferences.php  

 The annual ACM SIGKDD conference is the premier international forum for data -
 mining researchers and practitioners from academia, industry, and government to share 
their  ideas,  research  results,  and  experiences.  It  features  keynote  presentations,  oral 
paper presentations, poster sessions, workshops, tutorials, panels, exhibits, and demon-
strations. Authors can submit their original work either to SIGKDD Research track or 
SIGKDD Industry/Government track. The research track accepts papers on all aspects 
of knowledge discovery and data mining overlapping with topics from machine learn-
ing,  statistics,  databases,  and  pattern  recognition.  Papers  are  expected  to  describe 
innovative  ideas  and  solutions  that  are  rigorously  evaluated  and  well  presented. The 
Industrial/Government  track  highlights  challenges,  lessons,  concerns,  and  research 
issues arising out of deploying applications of KDD technology. The focus is on pro-
moting the exchange of ideas between researchers and practitioners of data mining.

   3.      IEEE International Conference on Data Mining (ICDM)    

  http://www.cs.uvm.edu/ ∼ icdm/  

 The  IEEE ICDM  has established itself as the world ’ s premier research conference 
in data mining. The conference provides a leading forum for presentation of original 
research results, as well as exchange and dissemination of innovative, practical devel-
opment experiences. The conference covers all aspects of data mining, including algo-
rithms, software and systems, and applications. In addition, ICDM draws researchers 
and  application  developers  from  a  wide  range  of  data  mining - related  areas  such  as 
statistics, machine learning, pattern recognition, databases and data warehousing, data 
visualization, knowledge - based systems, and high - performance computing. By promot-
ing novel, high - quality research ﬁ ndings, and innovative solutions to challenging data -
 mining problems, the conference seeks to continuously advance the state - of - the - art in 
data  mining.  Besides  the  technical  program,  the  conference  will  feature  workshops, 
tutorials, panels, and the  ICDM  data - mining contest.

   4.      International Conference on Machine Learning and Applications (ICMLA)    

  http://www.icmla - conference.org/  

 The aim of the conference is to bring researchers working in the areas of machine 
learning  and  applications  together.  The  conference  will  cover  both  theoretical  and 

DATA-MINING  CONFERENCES 

475

experimental  research  results.  Submission  of  machine - learning  papers  describing 
machine - learning applications in ﬁ elds like medicine, biology, industry, manufacturing, 
security, education, virtual environments, game playing, and problem solving is strongly 
encouraged.

   5.      The  World  Congress  in  Computer  Science  Computer  Engineering  and  Applied 

Computing (WORLDCOMP)    

  http://www.world - academy - of - science.org/  

  WORLDCOMP  is the largest annual gathering of researchers in computer science, 
computer  engineering,  and  applied  computing.  It  assembles  a  spectrum  of  afﬁ liated 
research conferences, workshops, and symposiums into a coordinated research meeting 
held  in  a  common  place  at  a  common  time.  This  model  facilitates  communication 
among researchers in different ﬁ elds of computer science and computer engineering. 
The WORLDCOMP is composed of more than 20 major conferences. Each conference 
will  have  its  own  proceedings. All  conference  proceedings/books  are  considered  for 
inclusion  in  major  database  indexes  that  are  designed  to  provide  easy  access  to  the 
current literature of the sciences (database examples are DBLP, ISI Thomson Scientiﬁ c, 
IEE INSPEC).

   6.      IADIS European Conference on Data Mining (ECDM)    

  http://www.datamining - conf.org/  

 The  ECDM  is aimed to gather researchers and application developers from a wide 
range of data mining - related areas such as statistics, computational intelligence, pattern 
recognition,  databases,  and  visualization.   ECDM   aims  to  advance  the  state - of - the - art 
in  the  data - mining  ﬁ eld  and  its  various  real - world  applications.   ECDM   will  provide 
opportunities  for  technical  collaboration  among  data  mining  and  machine - learning 
researchers around the globe.

   7.      Neural Information Processing Systems Conference (NIPS)    

  http://nips.cc/  

 The  NIPS  Foundation  is  a  nonproﬁ t  corporation  whose  purpose  is  to  foster  the 
exchange  of  research  on  neural  information - processing  systems  in  their  biological, 
technological, mathematical, and theoretical aspects. Neural information processing is 
a ﬁ eld that beneﬁ ts from a combined view of biological, physical, mathematical, and 
computational sciences. 

 The primary focus of the NIPS Foundation is the presentation of a continuing series 
of  professional  meetings  known  as  the  Neural  Information  Processing  Systems 
Conference, held over the years at various locations in the United States and Canada. 
 The NIPS Conference features a single - track program, with contributions from a 
large  number  of  intellectual  communities.  Presentation  topics  include  algorithms 
and  architectures;  applications;  brain  imaging;  cognitive  science  and AI;  control  and 

476 

APPENDIX  A

reinforcement learning; emerging technologies; learning theory; neuroscience; speech 
and signal processing; and visual processing.

   8.      European  Conference  on  Machine  Learning  and  Principles  and  Practice  of 

Knowledge Discovery in Databases (ECML PKDD)    

  http://www.ecmlpkdd.org/  

 The  ECML PKDD  is one of the leading academic conferences on machine learning 

and knowledge discovery, held in Europe every year. 

  ECML  PKDD   is  a  merger  of  two  European  conferences,  ECML  and  PKDD.  In 
2008 the conferences were merged into one conference, and the division into traditional 
ECML topics and traditional PKDD topics was removed.

   9.      Association for the Advancement of Artiﬁ cial Intelligence (AAAI) Conference    

  http://www.aaai.org/  

 Founded  in  1979,  the  AAAI,  formerly  the  American  Association  for  Artiﬁ cial 
Intelligence, is a nonproﬁ t scientiﬁ c society devoted to advancing the scientiﬁ c under-
standing  of  the  mechanisms  underlying  thought  and  intelligent  behavior  and  their 
embodiment  in  machines.  AAAI  also  aims  to  increase  public  understanding  of  AI, 
improve the teaching and training of AI practitioners, and provide guidance for research 
planners and funders concerning the importance and potential of current AI develop-
ments and future directions. 

 Major AAAI activities include organizing and sponsoring conferences, symposia, 
and  workshops,  publishing  a  quarterly  magazine  for  all  members,  publishing  books, 
proceedings,  and  reports,  and  awarding  grants,  scholarships,  and  other  honors.  The 
purpose of the AAAI conference is to promote research in AI and scientiﬁ c exchange 
among AI researchers, practitioners, scientists, and engineers in related disciplines.

   10.      International Conference on Very Large Data Base (VLDB)    

  http://www.vldb.org/  

 VLDB  Endowment  Inc.  is  a  nonproﬁ t  organization  incorporated  in  the  United 
States for the sole purpose of promoting and exchanging scholarly work in databases 
and  related  ﬁ elds  throughout  the  world.  Since  1992,  the  Endowment  has  started  to 
publish  a  quarterly  journal,  the  VLDB  Journal,  for  disseminating  archival  research 
results, which has become one of the most successful journals in the database area. The 
VLDB Journal is published in collaboration with Springer - Verlag. On various activities, 
the Endowment closely cooperates with ACM SIGMOD. 

 VLDB  conference  is  a  premier  annual  international  forum  for  data  management 
and database researchers, vendors, practitioners, application developers, and users. The 
conference features research talks, tutorials, demonstrations, and workshops. It covers 
current  issues  in  data  management,  database  and  information  systems  research.  Data 
management  and  databases  remain  among  the  main  technological  cornerstones  of 
emerging applications of the twenty - ﬁ rst century.  

DATA-MINING  FORUMS/BLOGS 

477

   A.3  

  DATA - MINING FORUMS/BLOGS 

    1.      KDnuggets Forums    

  http://www.kdnuggets.com/phpBB/index.php  

 Good resource for sharing experience and asking questions.

   2.      Data Mining    

  http://dataminingwarehousing.blogspot.com/  

 This blog is helpful for data - mining beginners. It presents basic data - mining con-

cepts with examples and applications.

   3.      Data Mining and Predictive Analytics    

  http://abbottanalytics.blogspot.com/  

 The posts on this blog cover topics related to data mining and predictive analytics 

from the perspectives of both research and industry.

   4.      AI, Data Mining, Machine Learning, and Other things    

  http://blog.markus - breitenbach.com/  

 This blog discusses machine learning with emphasis on AI and statistics.

   5.      Geeking with Greg    

  http://glinden.blogspot.com   

 This blog focuses on the topic of personalization and related research.

   6.      Data Miners Blog    

  http://blog.data - miners.com/  

 The  posts  on  this  blog  provide  industry - oriented  reﬂ ections  on  topics  from  data 

analysis and visualization.

   7.      Data - Mining Research    

  http://www.dataminingblog.com/  

 This blog provides a venue for exchanging ideas and comments about data - mining 

techniques and applications.

   8.      Data Wrangling    

  http://www.datawrangling.com/  

 This  blog  provides  across  the  board  posts  on  news  and  technology  related  to 

machine learning and data mining.

478 

APPENDIX  A

   9.      Intelligent Machines    

  http://www.damienfrancois.be/blog/  

 This blog is dedicated to artiﬁ cial intelligence and machine learning, and focuses 

on applications in business, science and every - day life.

   10.      Mininglabs    

  http://www.mininglabs.com/  

 This blog is established by a group of French independent researchers in the ﬁ eld 
of data mining, analyzing and data visualization. They are mostly interested in analyz-
ing data coming from the internet at large (Web, peer - to - peer networks).

   11.      Machine Learning (Theory)    

  http://hunch.net/  

 A  blog  dedicated  to  the  various  aspects  of  machine  learning  theory  and 

applications.  

   A.4  

  DATA SETS 

  This  section  describes  a  number  of  freely  available  data  sets  ready  for  use  in  data -
 mining algorithms. We selected a few examples for students who are starting to learn 
data mining and they would like to practice traditional data - mining tasks. A majority 
of these data sets are hosted on the UCI Machine Learning Repository. For more data 
sets look up this repository at   http://archive.ics.uci.edu/ml/index.html . 

   A.4.1  

  Classiﬁ cation 

  Iris Data Set.       http://archive.ics.uci.edu/ml/datasets/Iris  
 The Iris Data Set is a small data set often used in machine learning and data mining. 
It includes 150 data points each representing three different kinds of iris. The task is 
to learn to classify iris based on four measurements. This data set was used by R. A. 
Fisher in 1936 as an example for discriminant analysis.  

  Adult Data Set.       http://archive.ics.uci.edu/ml/datasets/Adult  
 The Adult Data Set contains 48,842 samples extracted from the U.S. Census. The 
task is to classify individuals as having an income that does or does not exceed $50,000/
year based on factors such as age, education, race, sex, and native country.  

  Breast  Cancer  Wisconsin  (Diagnostic)  Data  Set.       http://archive.ics.uci.edu/

ml/datasets/Breast + Cancer + Wisconsin + %28Diagnostic%29  

 This data set consists of a number of measurements taken over a  “ digitized image 
of a ﬁ ne needle aspirate (FNA) of a breast mass. ”  There are 569 samples. The task is 
to classify each data point as benign or malignant.   

DATA  SETS 

479

   A.4.2  

  Clustering 

  Bag of Words Data Set.       http://archive.ics.uci.edu/ml/datasets/Bag + of + Words  
 Word counts have been extracted from ﬁ ve document sources: Enron Emails, NIPS 
full papers, KOS blog entries, NYTimes news articles and Pubmed abstracts. The task 
is to cluster the documents used in this data set based on the word counts found. One 
may compare the output clusters with the sources from which each document came.  

   US   Census  Data  (1990)  Data  Set.       http://archive.ics.uci.edu/ml/datasets/

US + Census + Data + %281990%29  

 This data set is a one percent sample from the 1990 Public Use Microdata Samples 

(PUMS). It contains 2,458,285 records and 68 attributes.   

   A.4.3  

  Regression 

  Auto  MPG  Data Set.       http://archive.ics.uci.edu/ml/datasets/Auto + MPG  
 This data set provides a number of attributes of cars that can be used to attempt to 
predict the  “ city - cycle fuel consumption in miles per gallon. ”  There are 398 data points 
and eight attributes.  

  Computer  Hardware  Data 

Computer + Hardware  

Set.       http://archive.ics.uci.edu/ml/datasets/

 This data set provides a number of CPU attributes that can be used to predict rela-

tive CPU performance. It contains 209 data points and 10 attributes.   

   A.4.4  

  Web Mining 

  Anonymous  Microsoft  Web  Data.       http://archive.ics.uci.edu/ml/datasets/

Anonymous + Microsoft + Web + Data  

 This  data  set  contains  page  visits  for  a  number  of  anonymous  users  who  visited 
 www.microsoft.com . The task is to predict future categories of pages a user will visit 
based on the Web pages previously visited.  

   KDD  Cup 2000.       http://www.sigkdd.org  
 This  Web  site  contains  ﬁ ve  tasks  used  in  a  data - mining  competition  run  yearly 
called KDD Cup. KDD Cup 2000 uses clickstream and purchase data obtained from 
Gazelle.com. Gazelle.com sold  legwear  and  legcare  products and closed their online 
store that same year. This Web site provides links to papers and posters of the winners 
of the various tasks and outlines their effective methods. Additionally, the description 
of the tasks provides great insight into original approaches to using data mining with 
clickstream data.   

   A.4.5  

  Text Mining 

  Reuters - 21578  Text  Categorization  Collection.       http://kdd.ics.uci.edu/

databases/reuters21578/reuters21578.html  

480 

APPENDIX  A

 This is a collection of news articles that appeared on Reuters newswire in 1987. 
All of the news articles have been categorized. The categorization provides opportuni-
ties to test text classiﬁ cation or clustering methodologies.  

  20 Newsgroups.       http://people.csail.mit.edu/jrennie/20Newsgroups/  
 The 20 Newsgroups data set contains 20,000 newsgroup documents. These docu-
ments are divided nearly evenly among 20 different newsgroups. Similar to the Reuters 
collection, this data set provides opportunities for text classiﬁ cation and clustering.   

   A.4.6  

  Time Series 

  Dodgers  Loop  Sensor  Data  Set.       http://archive.ics.uci.edu/ml/datasets/

Dodgers + Loop + Sensor  

 This data set provides the number of cars counted by a sensor every 5   min over 25 
weeks. The  sensor  was  for  the  Glendale  on  ramp  for  the  101  North  Freeway  in  Los 
Angeles.  The  goal  of  this  data  was  to   “ predict  the  presence  of  a  baseball  game  at 
Dodgers stadium. ”   

  Australia Gun Deaths.       http://robjhyndman.com/TSDL/crime.html  
 These  data  give  the  yearly  death  rates  in Australia  for  gun - related  and  non - gun -

 related homicides and suicides for the years 1915 – 2004.   

   A.4.7  

  Data for Association Rule Mining 

   BMS  -  POS .       http://www.sigkdd.org/kddcup  
 This data set gives the category for each product purchased from a large electronics 
retailer.  It  covers  several  years  worth  of  point  of  sales  data.  This  data  set  contains 
515,597 transactions and 1,657 distinct items.  

   BMS  - Web V iew1.       http://www.sigkdd.org/kddcup  
 This data set contains several months of clickstream sessions for Gazelle.com. A 
transaction is deﬁ ned in this data set as the detail pages viewed per session. This data 
set contains 59,602 transactions and 497 distinct items.    

   A.5  

  COMERCIALLY AND PUBLICLY AVAILABLE TOOLS 

  This  summary  of  some  publicly  available  commercial  data - mining  products  is  being 
provided  to  help  readers  better  understand  what  software  tools  can  be  found  on  the 
market and what their features are. It is not intended to endorse or critique any speciﬁ c 
product.  Potential  users  will  need  to  decide  for  themselves  the  suitability  of  each 
product for their speciﬁ c applications and data - mining environments. This is primarily 
intended as a starting point from which users can obtain more information. There is a 
constant stream of new products appearing in the market and hence this list is by no 
means  comprehensive.  Because  these  changes  are  very  frequent,  the  author  suggests 

COMERCIALLY  AND  PUBLICLY  AVAILABLE  TOOLS 

481

two  Web  sites  for  information  about  the  latest  tools  and  their  performances:    http://
www.kdnuggets.com   and   http://www.knowledgestorm.com . 

   A.5.1  

  Free Software 

   DataLab 

   –       Publisher: Epina Software Labs ( www.lohninger.com/datalab/en_home.html )  
   –       DataLab, a complete and powerful data mining tool with a unique data explora-
tion process, with a focus on marketing and interoperability with SAS. There is 
a public version for students.   

  DBMiner 

   –       Publisher: Simon Fraser University ( http://ddm.cs.sfu.ca )  
   –       DBMiner is a publicly available tool for data mining. It is a multiple - strategy 
tool  and  it  supports  methodologies  such  as  clustering,  association  rules,  sum-
marization,  and  visualization.  DBMiner  uses  Microsoft  SQL  Server  7.0  Plato 
and runs on different Windows platforms.   

  GenIQ Model 

   –       Publisher: DM STAT - 1 Consulting ( www.geniqmodel.com )  
   –       GenIQ  Model  uses  machine  learning  for  regression  tasks;  automatically  per-
forms variable selection, and new variable construction, and then speciﬁ es the 
model equation to  “ optimize the decile table. ”    

  NETMAP 

   –       Publisher:  http://sourceforge.net/projects/netmap   
   –       NETMAP is a general - purpose, information - visualization tool. It is most effec-
tive for large, qualitative, text - based data sets. It runs on Unix workstations.   

  RapidMiner 

   –       Publisher: Rapid - I ( http://rapid - i.com )  
   –       Rapid - I  provides  software,  solutions,  and  services  in  the  ﬁ elds  of  predictive 
analytics, data mining, and text mining. The company concentrates on automatic 
intelligent analyses on a large - scale base, that is, for large amounts of structured 
data - like  database  systems  and  unstructured  data - like  texts.  The  open - source 
data - mining  specialist  Rapid - I  enables  other  companies  to  use  leading - edge 
technologies for data mining and business intelligence. The discovery and lever-
age of unused business intelligence from existing data enables better informed 
decisions and allows for process optimization.   

482 

  SIPNA 

APPENDIX  A

   –       Publisher:  http://eric.univ - lyon2.fr/ ∼ ricco/sipina.html   
   –       Sipina - W is publicly available software that includes different traditional data -
 mining techniques such as CART, Elisee, ID3, C4.5, and some new methods for 
generating decision trees.   

  SNNS 

   –       Publisher: University of Stuttart ( http://www.nada.kth.se/ ∼ orre/snns - manual/ )  
   –       SNNS is a publicly available software. It is a simulation environment for research 
on and application of artiﬁ cial neural networks. The environment is available on 
Unix and Windows platforms.   

  TiMBL 

   –       Publisher: Tilburg University ( http://ilk.uvt.nl/timbl/ )  
   –       TiMBL is a publicly available software. It includes several memory - based learn-
ing techniques for discrete data. A representation of the training set is explicitly 
stored in memory, and new cases are classiﬁ ed by extrapolation from the most 
similar cases.   

  TOOLDIAG 

   –       Publisher:  http://sites.google.com/site/tooldiag/Home   
   –       TOOLDIAG is a publicly available tool for data mining. It consists of several 
programs  in  C  for  statistical  pattern  recognition  of  multivariate  numeric  data. 
The tool is primary oriented toward classiﬁ cation problems.   

  Weka 

   –       Publisher: University of Waikato ( http://www.cs.waikato.ac.nz/ml/weka/ )  
   –       Weka is a software environment that integrates several machine - learning tools 
within a common framework and a uniform GUI. Classiﬁ cation and summariza-
tion are the main data - mining tasks supported by the Weka system.   

  Web Utilization Miner WUM 

   –       Publisher:  http://hypknowsys.sourceforge.net/   
   –       WUM 6.0 is a publicly available integrated environment for Web - log prepara-

tion, querying, and visualization of summarized activities on a Web site.     

COMERCIALLY  AND  PUBLICLY  AVAILABLE  TOOLS 

483

   A.5.2  

  Commercial Software  WITH  Trial Version 

   Alice d ’ Isoft 

   –       Vendor: Isoft ( www.alice - soft.com )  
   –       ISoft  provides  a  complete  range  of  tools  and  services  dedicated  to  analytical 
CRM, behavioral analysis, data modeling and analysis, Data Mining and Data 
Morphing.   

  ANGOSS ’  suite 

   –       Vendor: Angoss Software Corp. ( www.angoss.com )  
   –       ANGOSS ’ suite  consists  of  KnowledgeSTUDIO ®   and  KnowledgeSEEKER ® . 
KnowledgeSTUDIO ®   is  an  advanced  data - mining  and  predictive  analy-
tics  suite  for  all  phases  of  the  model  development  and  deployment  cycle —
 proﬁ ling, exploration, modeling, implementation, scoring, validation, monitoring 
and  building  scorecards — all  in  a  high - performance  visual  environment. 
KnowledgeSTUDIO  is  widely  used  by  marketing,  sales,  and  risk  analysts 
providing business users and expert analysts alike with a powerful, scalable, and 
complete  data - mining  solution.  KnowledgeSEEKER ®   is  a  single - strategy 
desktop  or  client/server  tool  relying  on  a  tree - based  methodology  for  data 
mining. It provides a nice GUI for model building and letting the user explore 
data. It also allows users to export the discovered data model as text, SQL query, 
or Prolog program. It runs on Windows and Unix platforms, and accepts data 
from a variety of sources.   

  Autoclass III 

   –       Vendor:  www.openchannelsoftware.com/projects/AUTOCLASS_III/   
   –       Autoclass III is an unsupervised Bayesian classiﬁ cation system for independent 
data. It seeks a maximum posterior probability to provide a simple approach to 
problems  such  as  classiﬁ cation,  clustering,  and  general  mixture  separation.  It 
works on Unix platforms.   

  BayesiaLab 

   –       Vendor: Bayesia ( www.bayesia.com )  
   –       BayesiaLab  is  a  complete  and  powerful  data - mining  tool  based  on  Bayesian 
networks, including data preparation, missing values imputation, data and vari-
ables clustering, and unsupervised and supervised learning.   

  Data Applied 

   –       Vendor: Data Applied ( http://data - applied.com )  
   –       Data  Applied,  offers  a  comprehensive  suite  of  web - based  data  mining  tech-

niques, an XML web API, and rich data visualizations.   

484 

  DataEngine 

APPENDIX  A

   –       Vendor: MIT GmbH ( www.dataengine.de )  
   –       DataEngine is a multiple - strategy data - mining tool for data modeling, combining 
conventional data - analysis methods with fuzzy technology, neural networks, and 
advanced statistical techniques. It works on the Windows platform.   

  Evolver ™  

   –       Vendor: Palisade Corp. ( www.palisade.com )  
   –       Evolver is a single - strategy tool. It uses genetic - algorithm technology to solve 
complex optimization problems. This tool runs on all Windows platforms and it 
is based on data stored in Microsoft Excel tables.   

  GhostMiner System 

   –       Vendor: FQS Poland ( www.fqs.pl )  
   –       GhostMiner, complete data mining suite, including k - nearest neighbors, neural 

nets, decision tree, neurofuzzy, SVM, PCA, clustering, and visualization.   

  KXEN Analytic 

   –       Vendor: KXEN Inc. ( www.kxen.com )  
   –       KXEN  (Knowledge  eXtraction  ENgines),  providing  Vapnik  SVM  (Support 
Vector  Machines)  tools,  including  data  preparation,  segmentation,  time  series, 
and SVM classiﬁ ers.   

  NeuroSolutions 

   –       Vendor: NeuroDimension Inc. ( www.neurosolutions.com )  
   –       NeuroSolutions combines a modular, icon - based network design interface with 
an  implementation  of  advanced  learning  procedures,  such  as  recurrent  back-
propagation and backpropagation through time, and it solves data - mining prob-
lems such as classiﬁ cation, prediction, and function approximation. Some other 
notable  features  include  C +  +   source  code  generation,  customized  components 
through DLLs, a comprehensive macro language, and Visual Basic accessibility 
through OLE Automation. The tool runs on all Windows platforms.   

  Oracle Data Mining 

   –       Vendor: Oracle ( www.oracle.com )  
   –       Oracle  Data  Mining  (ODM) — an  option  to  Oracle  Database  11   g  Enterprise 
Edition — enables  customers  to  produce  actionable  predictive  information  and 
build integrated business intelligence applications. Using data - mining function-
ality embedded in Oracle Database 11   g, customers can ﬁ nd patterns and insights 

COMERCIALLY  AND  PUBLICLY  AVAILABLE  TOOLS 

485

hidden in their data. Application developers can quickly automate the discovery 
and  distribution  of  new  business  intelligence — predictions,  patterns  and 
discoveries — throughout their organization.   

  Optimus RP 

   –       Vendor: Golden Helix Inc. ( www.goldenhelix.com )  
   –       Optimus RP, uses Formal Inference - based Recursive Modeling (recursive parti-
tioning based on dynamic programming) to ﬁ nd complex relationships in data 
and to build highly accurate predictive and segmentation models.   

  Partek Software 

   –       Vendor: Partek Inc. ( www.partek.com )  
   –       Partek Software is a multiple - strategy data - mining product. It is based on several 
methodologies  including  statistical  techniques,  neural  networks,  fuzzy  logic, 
genetic algorithms, and data visualization. It runs on UNIX platforms.   

  Rialto ™  

   –       Vendor: Exeura ( www.exeura.com )  
   –       Exeura Rialto ™  provides comprehensive support for the entire data mining and 

analytics lifecycle at an affordable price in a single, easy - to - use tool.   

  Salford Predictive Miner 

   –       Vendor: Salford Systems ( http://salford - systems.com )  
   –       Salford  Predictive  Miner  (SPM)  includes  CART ® ,  MARS,  TreeNet,  and 
RandomForests,  and  powerful  new  automation  and  modeling  capabilities. 
CART ®   is  a  robust,  easy - to - use  decision  tree  that  automatically  sifts  large, 
complex databases, searching for and isolating signiﬁ cant patterns and relation-
ships. Multivariate Adaptive Regression Splines (MARS) focuses on the devel-
opment and deployment of accurate and easy - to - understand regression models. 
TreeNet demonstrates remarkable performance for both regression and classiﬁ -
cation and can work with varying sizes of data sets, from small to huge, while 
readily managing a large number of columns. RandomForests is best suited for 
the analysis of complex data structures embedded in small to moderate data sets 
containing typically less than 10,000 rows but allowing for more than 1 million 
columns. RandomForests has therefore been enthusiastically endorsed by many 
biomedical and pharmaceutical researchers.   

  STATISTICA Data Miner 

   –       Vendor: Statsoft ( www.statsoft.com )  
   –       STATISTICA  Data  Miner  contains  the  most  comprehensive  selection  of 
data - mining  methods  available  on  the  market,  for  example,  by  far  the  most 

486 

APPENDIX  A

comprehensive selection of clustering techniques, neural networks architectures, 
classiﬁ cation/regression trees (also called recursive partitioning methods), mul-
tivariate modeling (including MARSplines, Support Vector Machines), associa-
tion  and  sequence  analysis  (an  optional  add - on),  and  many  other  predictive 
techniques,  even  methods  for  advanced/true  simulation  and  optimization  of 
models are provided. It also provides the largest selection of graphics and visu-
alization procedures of any competing products, to enable effective data explora-
tion and visual data mining.   

  Synapse 

   –       Vendor: Peltarion ( www.peltarion.com )  
   –       Synapse,  a  development  environment  for  neural  networks  and  other  adaptive 
systems, supporting the entire development cycle from data import and prepro-
cessing  via  model  construction  and  training  to  evaluation  and  deployment; 
allows deployment as. NET components.   

  SOMine 

   –       Vendor: Viscovery ( www.viscovery.net )  
   –       This  single - strategy  data - mining  tool  is  based  on  self - organizing  maps  and 
is  uniquely  capable  of  visualizing  multidimensional  data.  SOMine  supports 
clustering, classiﬁ cation, and visualization processes. It works on all Windows 
platforms.   

  TIBCO Spotﬁ re ®  Professional 

   –       Vendor: TIBCO Software Inc. ( www.spotﬁ re.tibco.com )  
   –       TIBCO  Spotﬁ re ®   Professional  makes  it  easy  to  build  and  deploy  reusable 
analytic  applications  over  the  Web,  or  perform  pure  ad  hoc  analytics,  driven 
on - the - ﬂ y  by  your  own  knowledge,  intuition,  and  desire  to  answer  the  next 
question. Spotﬁ re analytics does all this by letting you interactively query, visu-
alize, aggregate, ﬁ lter, and drill into data sets of virtually any size. Ultimately 
you will reach faster insights with Spotﬁ re and bring clarity to business issues 
or  opportunities  in  a  way  that  gets  all  the  decision  makers  on  the  same  page 
quickly.     

   A.5.3  

  Commercial Software  WITHOUT  Trial Version 

   AdvancedMiner 

   –       Vendor: StatConsulting ( www.statconsulting.eu )  
   –       AdvancedMiner is a platform for data mining and analysis, featuring modeling 
interface  (OOP  script,  latest  GUI  design,  advanced  visualization)  and  grid 
computing.   

COMERCIALLY  AND  PUBLICLY  AVAILABLE  TOOLS 

487

  Afﬁ nium Model 

   –       Vendor: Unica Corp. ( www.unica.com )  
   –       Afﬁ nium Model (from Unica), includes valuator, proﬁ ler, response modeler, and 
cross - seller.  Unica  provides  innovative  marketing  solutions  that  turn  your 
passion for marketing into business success. Our unique interactive marketing 
approach incorporates customer and Web analytics, centralized decision, cross -
 channel execution, and integrated marketing operations. More than 1000 orga-
nizations worldwide depend on Unica.   

  IBM SPSS Modeler Professional 

   –       Vendor: SPSS Inc., an IBM company ( www.spss.com )  
   –       IBM SPSS Modeler Professional has optimization techniques for large data sets, 
including  boosting  and  bagging,  which  improve  model  stability  and  accuracy. 
It  also  enhanced  visualization  for  key  algorithms,  including  neural  net  and 
decision  tree.  In  particular,  new  interactive  visualization  for  key  algorithms 
and  ensemble  models  is  offered  in  order  to  make  results  easier  to  understand 
and communicate.   

  DataDetective 

   –       Vendor: Sentient Information Systems ( www.sentient.nl )  
   –       DataDetective, the powerful yet easy to use data - mining platform and the crime 

analysis software of choice for the Dutch police.   

  DeltaMaster 

   –       Vendor: Bissantz  &  Company GmbH ( www.bissantz.com )  
   –       Delta  Miner  is  a  multiple - strategy  tool  supporting  clustering,  summarization, 
deviation - detection,  and  visualization  processes. A  common  application  is  the 
analysis of ﬁ nancial controlling data. It runs on Windows platforms and it inte-
grates new search techniques and  “ business intelligence ”  methodologies into an 
OLAP front end.   

  EWA Systems 

   –       Vendor: EWA Systems Inc. ( www.ewasystems.com )  
   –       EWA Systems provide enterprise analytics solutions: Math and statistics librar-
ies, data mining, text mining, optimization, visualization, and rules engine soft-
ware  are  all  available  from  one  coordinated  source.  EWA  Systems ’   ability 
to  tackle  such  a  broad  range  of  analytical  solutions  means  our  clients  gain 
efﬁ ciencies in purchasing software that ﬁ ts together modularly, as well as incur-
ring  decreased  consulting  costs.  Our  tools  have  been  deployed  worldwide  in 

488 

APPENDIX  A

industries as diverse as ﬁ nancial analysis, e - commerce, manufacturing and edu-
cation  where  their  outstanding  performance  and  quality  is  unrivaled. Whether 
you are using a single PC or a supercomputer, EWA Systems has the numerical 
software capabilities to ﬁ t your need.   

  FastStats ™  

   –       Vendor: APTECO Limited ( www.apteco.com )  
   –       FastStats  Suite,  marketing  analysis  products,  including  data  mining,  customer 

proﬁ ling, and campaign management.   

  IBM Intelligent Miner 

   –       Vendor: IBM ( www.ibm.com )  
   –       DB2 Data Warehouse Edition (DWE) is a suite of products that combines the 
strength of DB2 Universal Database ™  (DB2 UDB) with the powerful business 
intelligence infrastructure from IBM ® . DB2 Data Warehouse Edition provides 
a  comprehensive  business  intelligence  platform  with  the  tools  your  enterprise 
and partners need to deploy and build next generation analytic solutions.   

  KnowledgeMiner 

   –       Vendor: KnowledgeMiner Software ( www.knowledgeminer.com )  
   –       KnowledgeMiner, a self - organizing modeling tool that uses GMDH neural nets 

and AI to easily extract knowledge from data. (MacOS)   

  MATLAB NN Toolbox 

   –       Vendor: Mathworks Inc. ( www.mathworks.com )  
   –       A MATLAB extension implements an Engineering environment for research in 
neural  networks  and  its  design,  simulation,  and  application.  It  offers  various 
network architectures and different learning strategies. Classiﬁ cation and func-
tion approximations are typical data - mining problems that can be solved using 
this tool. It runs on Windows, Mac, and Unix platforms.   

  Predictive Data Mining Suite 

   –       Vendor: Predictive Dynamix ( www.predx.com )  
   –       Predictive  Data  Mining  Suite  integrates  graphical  and  statistical  data  analysis 
with modeling algorithms including neural networks, clustering, fuzzy systems, 
and genetic algorithms.   

  Enterprise Miner 

   –       Vendor: SAS Institute Inc. ( www.sas.com )  
   –       SAS (Enterprise Miner) represents one of the most comprehensive sets of inte-
grated  tools  for  data  mining.  It  also  offers  a  variety  of  data  manipulation  and 
transformation features. In addition to statistical methods, the SAS Data Mining 

WEB  SITE  LINKS 

489

Solution  employs  neural  networks,  decision  trees,  and  SAS  Web  hound  that 
analyzes Web - site trafﬁ c. It runs on Windows and Unix platforms and it provides 
a  user - friendly  GUI  front  end  to  the  Sample,  Explore,  Modify,  Model, Assess 
(SEMMA).   

  SPAD 

   –       Vendor: Coheris ( www.coheris.fr )  
   –       SPAD, provides powerful exploratory analyses and data - mining tools, including 
PCA,  clustering,  interactive  decision  trees,  discriminant  analyses,  neural  net-
works, text mining and more, all via user - friendly GUI.   

  Viscovery Data Mining Suite 

   –       Vendor: Viscovery ( www.viscovery.net )  
   –       The Viscovery ®  Data Mining Suite offers a selection of software for predictive 
analytics  and  data  mining  designed  to  comprehensively  address  the  needs  of 
business  and  technical  users.  Workﬂ ows  support  the  generation  of  high -
 performance predictive models that may be integrated in real - time and updated 
automatically.  The  Viscovery  Data  Mining  Suite  comprises  the  modules 
— Proﬁ ler,  Predictor,  Scheduler,  Decision  Maker,  One(2)One  Engine — for  the 
realization of predictive analytics and data mining applications.   

  Warehouse Miner 

   –       Vendor: Teradata Corp. ( www.teradata.com )  
   –       Warehouse Miner provides different statistical analyses, decision - tree methods, 
and  regression  methodologies  for  in - place  mining  on  a  Teradata  database -
 management system.      

   A.6  

  WEB SITE LINKS 

   A.6.1  

  General Web Sites 

   Web Site  

   www.ics.uci.edu   

   www.almaden.ibm.com/cs/
quest/   

   www.cs.cmu.edu/Groups/AI/
html   
   www.cs.reading.ac.uk/
people/dwc/ai.html   

   Description  

  A comprehensive machine - learning site. Popular for its large 
repository of standard data sets and machine - learning 
programs for experimental evaluation.  
  An online resource for research in data mining using IBM 
Intelligent Miner. It contains Synthetic Data Generation 
Codes for associations, sequential patterns, and classiﬁ cation.  
  This address collects ﬁ les, programs, and publications of 
interest to the AI research community.  
  An online resource to AI programs, software, data sets, 
bibliographies, and links.  

(Continued )

      
490 

APPENDIX  A

   Web Site  

   www.datamining.org   

   http://archive.ics.uci.edu/ml/   

   www.jair.org   

   www.kdnuggets.com   

   www.springerlink.com/
content/1384_5810   

   www.stat.uﬂ .edu/vlib/
statistics.html   
   otal.umd.edu/Olive/Multi - D.
html   

   Description  

  This is a site run by a group of users and international 
data - mining tool providers. It is geared more for business 
users, and it provides links to many data - mining sites.  
  Repositories focusing on the scientiﬁ c study of machine 
learning.  
   Journal of AI Research:  The journal includes research articles, 
technical notes, surveys, and expository articles in the ﬁ eld 
of machine learning.  
  This site contains information about data - mining activities and 
pointers to past and current research. It maintains a guide to 
commercial -  and public - domain tools for data mining. It also 
provides links to companies supporting software, consulting, 
and data - mining services.  
   Journal of Data Mining  &  Knowledge Discovery:  The journal 
consolidates papers in both the research and practice of 
knowledge discovery, surveys of implementation techniques 
and application papers.  
  An up - to - date online resource to statistical software, data sets, 
and links.  
  A list of projects and products for multidimensional 
visualization.  

   A.6.2  

  Web Sites for Data - Mining Software Tools 

   Web Site  

   www.statconsulting.eu   
   www.unica.com   
   www.dazsi.com   
   www.alice - soft.com   
   www.openchannelsoftware.com   
   www.bayesia.com   
   kmi.open.ac.uk/projects/bkd/   
   www.prevision.com/bmr.html   
   http://salford - systems.com/cart.php   
   www.spss.com/clementine   
   www.oracle.com/technology/documentation/
darwin.html   
   www.data - applied.com   
   www.sentient.nl/?dden   
   www.dataengine.de/english/sp/index.htm   
   www.datamining.com   

   Data - Mining Tool  

  AdvancedMiner  
  Afﬁ nium Model  
  AgentBase/Marketeer  
  Alice d ’ Isoft  
  Autoclass III  
  BayesiaLab  
  Bayesian Knowledge Discoverer  
  BMR  
  CART  
  Clementine  
  Darwin  

  Data Applied  
  DataDetective  
  DataEngine  
  Data Mining Suite  

      
WEB  SITE  LINKS 

491

   Web Site  

   www.cwi.nl/ ∼ marcel/ds.html   
   www.dbminer.com   
   www.hnc.com   
   www.datamind.com   
   www.cirrusrec.com   
   www.neovista.com   
   www.bissantz.de   
   www.pilotsw.com   
   www.palisade.com/   
   www.dataengine.de/english/sp/index.htm   
   www.exeura.com/home.php?lan = en   
   www.fairisaac.com/ﬁ c/en/our - approach/
enterprise - decision - management   
   www.apteco.com   
   www.urbanscience.com   
   www.geniqmodel.com/   
   www.fqs.pl/business_intelligence/products/
ghostminer   
   www.goldenhelix.com   
   www.software.ibm.com   
   www.spotﬁ re.tibco.com/products/s - plus/
statistical - analysis - software.aspx   
   www.acknosoft.com   
   www.ncr.com   
   www.dialogis.de   
   www.dialogis.de   
   www.angoss.com   
   www.kxen.com   
   www.mathworks.com/products/neuralnet   
   www.sgi.com   
   www.alta - oh.com   
   www.neurosolutions.com   
   www.neuralware.com/   
   www.nd.com/products.htm   
   www.wardsystems.com/   
   www.ultranet.com/ ∼ unica   
   www.printable.com   
   www.predx.com   
   www.rapid - i.com   
   www.sas.com   
   www.cognos.com   
   www.eric.univ - lyon2.fr/ ∼ ricco/sipina.html   
   www.nada.kth.se/ ∼ orre/snns - manual   
   www.spss.com   
   www.spotﬁ re.tibco.com/products/s - plus/
statistical - analysis - software.aspx   

   Data - Mining Tool  

  Data Surveyor  
  DBMiner  
  DataBase Mining Marksman  
  DataMind  
  Datasage  
  Decision series  
  Delta Miner  
  Discovery  
  Evolver  
  EWA Systems  
  Exeura RialtoTM  
  Fair  

  FastStats Suite  
  GainSmarts  
  GenIQ Model  
  GhostMiner  

  Golden Helix Optimus RP  
  Intelligent Miner  
  Insightful Miner  

  KATE Tools  
  Knowledge Discovery Workbench  
  Kepler  
  KnowledgeMiner  
  Knowledge Seeker  
  KXEN  
  Matlab neural network toolbox  
  MineSet  
  NETMAP  
  Neuro Net  
  NeuralWorks Professional II/PLUS  
  NeuroSolutions v3.0  
  NeuroShell2/NeuroWindows  
  PRW  
  Powerhouse  
  Predictive Data Mining Suite  
  RapidMiner  
  SAS Enterprise Miner  
  Scenario  
  Sipina - W  
  SNNS  
  SPSS  
  S - Plus  

(Continued )

492 

   Web Site  

   www.slp.fr   
   www.syllogic.nl   
   www.mathsoft.com/splus.html   
   www.fernuni - hagen.de/bwlor/forsch.htm   
   www.prevision.com/strategist.html   
   www.eudaptics.co.at/   
   www.incontext.ca   
   www.mitgmbh.de   
   www.wizsoft.com   

APPENDIX  A

   Data - Mining Tool  

  STATlab  

  Syllogic  
  S - Plus  
  SPIRIT  
  Strategist  
  Viscovery © SOMine  
  WebAnalyzer  
  WINROSA  
  WizWhy  

   A.6.3  

  Data - Mining Vendors 

   Data - Mining Vendor  

   Address  

  Angoss Software 
International LTC.  

  Attar Software USA  

  Business Objects, 
Inc.  

  Cognos Corp.  

  DataMind Corp.  

  HNC Software Inc.  

  HyperParallel  

  IBM Corp.  

  Integral Solutions 
Ltd.  

  Isoft  

  NeoVista Solutions, 
Inc.  
  Neural Applications 
Corp.  
  NeuralWare Inc.  

  Pilot Software, Inc.  

  34 St. Patrick Street, Suite 200, 
Toronto, Ontario, Canada M5T 
1V1  
  Two Deerfoot Trial on Partridge 
Hill, Harward, MA 01451, USA  
  20813 Stevens Creek Blvd., Suite 
100, Cupertino, CA 95014, USA  

  67 S. Bedford St., Suite 200 W., 
Burlington, MA 01803, USA  
  2121 S. El Camino Real, Suite 
1200, San Mateo, CA 94403, USA  
  5930 Cornerstone Court West, San 
Diego, CA 92121, USA  
  282 Second Street, 3 rd  Floor, San 
Francisco, CA 94105, USA  

  Old Orchard Road, Armonk, NY 
10504, USA  
  Berk House, Basing View, 
Basingstoke, Hampshire RG21 
4RG, UK  
  Chemin da Moulon, F - 91190 Gif 
sur Yvette, France  
  10710 N. Tantau Ave., Cupertino, 
CA 95014, USA  
  2600 Crosspark Rd., Coralville, IA 
52241, USA  
  202 Park West Drive, Pittsburgh, PA 
15275, USA  
  One Canal Park, Cambridge, MA 
02141, USA  

  Red Brick Systems, 
Inc.  

  485 Alberto Way, Los Gatos, CA 
95032, USA  

   Web Site  

   www.angoss.com   

   www.attar.com   

   www.businessobjects.com   

   www.cognos.com   

   www.datamindcorp.com   

   www.hnc.com   

   www.hyperparallel.com   

   www.ibm.com   

   www.isl.co.uk   

   e - mail :  infor.isoft.fr   

   www.neovista.com   

   www.neural.com   

   www.neuralware.com   

   www.pilotsw.com   

   www.redbrick.com   

     
             
WEB  SITE  LINKS 

493

   Data - Mining Vendor  

   Address  

  Silicon Graphics 
Computer Systems  
  SPSS, Inc.  

  SAS Institute Inc.  

  Thinking Machine 
Corp.  
  Trajecta  

  Daisy Analysis Ltd.  

  Visible Decisions, 
Inc.  

  Maxus Systems 
International Inc.  
  United Information 
Systems, Inc.  
  ALTA Analytics, Inc.  

  Visualize, Inc.  

  Data Description, 
Inc.  
  i2 Ltd.  

  Harlequin Inc.  

  Advanced Visual 
Systems, Inc.  
  ORION Scientiﬁ c 
Systems  
  Belmont Research, 
Inc.  
  Spotﬁ re, Inc.  

  Precision Computing, 
Inc.  
  Information 
Technology Institute  
  NCO Natural 
Computing  
  Imagix Corp.  

  2011 N. Shoreline Blvd., Mountain 
View, CA 94043, USA  
  444 N. Michigan Ave., Chicago, IL 
60611 - 3962, USA  
  SAS Campus Dr., Cary, NC 
27513 - 2414, USA  
  14 Crosby Dr., Bedford, MA 01730, 
USA  
  611 S. Congress, Suite 420, Austin, 
TX 78704, USA  
  East Green Farm, Great Bradley, 
Newmarket, Suffolk CB8 9LU, 
UK  
  200 Front Street West, Suite 2203, 
P.O.Box 35, Toronto, Ont M5V 
3K2, Canada  
  610 River Terrace, Hoboken, NJ 
07030, USA,  
  10401 Fernwood Road, #200, 
Bethesda, MD 20817, USA  
  929 Eastwind Dr., Suite 203, 

Westerville, OH 43081, USA  
  1819 East Morten, Suite 210, 
Phoenix, AZ 85020, USA  
  840 Hanshaw Road, Suite 9, Ithaca, 
NY 14850, USA  
  Breaks House, Mill Court, Great 
Shelford, Cambridge, CB2, SLD, 
UK  
  One Cambridge Center, 8 th  Floor, 
Cambridge, MA 02142, USA  
  300 Fifth Avenue, Waltham, MA 
02154, USA  
  19800 Mac Arthur Blvd., Suite 480, 
Irvine, CA 92612, USA  
  84 Sherman St., Cambridge, MA 
02140, USA  
  28 State Street, Suite 1100, Boston, 
MA 02109, USA  
  P. O  >  Box 1193, Sierra Vista, AZ 
85636, USA  
  11 Science Park Road, Singapore 
Science Park II, Singapore 117685  
  Deurtschherrnufer 31, 60594 
Frankfurt, Germany  
  6025 White Oak Lane, San Luis 
Obispo, CA 93401, USA  

   Web Site  

   www.sgi.com   

   www.spss.com   

   www.sas.com   

   www.think.com   

   www.trajecta.com   

   www.daisy.co.uk   

   www.vdi.com   

   www.maxussystems.com   

   www.unitedis.com/   

   www.alta - oh.com   

   www.visualizetech.com   

   www.datadesk.com   

   www.i2.co.uk   

   www.harlequin.com   

   www.avs.com   

   www.orionsci.com   

   www.belmont.com/   

   www.ivee.com   

   www.crimelink.com   

   jsaic.iti.gov.sg/projects/   

   www.asoc.com   

   www.imagix.com   

(Continued )

494 

APPENDIX  A

   Data - Mining Vendor  

   Address  

  Helsinki University 
of Technology  

  Amtec Engineering, 
Inc.  
  IBM - Haifa Research 
Laboratory  
  Infospace, Inc.  

  Research Systems, 
Inc.  
  GR - FX Pty Limited  

  Analytic 
Technologies  
  The GIFIC Corp.  

  Inxight Software Inc.  

  ThemeMedia Inc.  

  Neovision 
Hypersystems, Inc.  
  Artiﬁ cial Intelligence 

Software SpA  
  SRA International, 
Inc.  
  Quadstone Ltd.  

  Data Junction Corp.  

  Semio Corp.  

  Visual Numerics, Inc.  

  Perspecta, Inc  

  Dynamic Diagrams  

  Presearch Inc.  

  InContext Systems  

  Neural Networks Research Center, 
P. O. Box 1000, FIN - 02015 HUT, 
Finland  
  P. O. Box 3633, Bellevue, WA 
98009 - 3633, USA  
  Matam, Haifa 31905, Israel  

  181 2 nd  Avenue, Suite 218, San 
Mateo, CA 94401, USA  
  2995 Wilderness Place, Boulder, 
CO 80301, USA  
  P. O. Box 2121, Clovelly, NSW, 
2031, Australia  
  104 Pond Street, Natick, MA 01760, 
USA  
  405 Atlantic Street, Melbourne 
Beach, FL 32951, USA  
  3400 Hillview Avenue, Palo Alto, 
CA 94304, USA  
  8383 158 th  Avenue NE, Suite 320, 
Redmond, WA 98052, USA  
  50 Broadway, 34 th  Floor, New York, 
NY 10004, USA  
  Via Carlo Esterle, 9 - 20132 Milano, 
Italy  
  2000 15 th  Street, Arlington, VA 
22201, USA  
  16 Chester Street, Edinburgh, EH3 
7RA, Scotland  
  2201 Northland Drive, Austin, TX 
78756, USA  
  1730 South Amphlett Blvd. #101, 
San Mateo, CA 94402, USA  
  9990 Richmond Ave., Suite 400, 
Houston, TX 77042 - 4548, USA  
  600 Townsend Street, Suite 170E, 
San Francisco, CA 94103 - 4945, 
USA  
  12 Bassett Street, Providence, RI 
02903, USA  
  8500 Executive Park Avenue, 
Fairfax, VA 22031, USA  
  6733 Mississauga Road, 7 th  ﬂ oor, 
Mississauga, Ontario L5N 6J5 
Canada  

   Web Site  

   websom.hut.ﬁ    

   www.amtec.com   

   www.ibm.com/java/mapuccino   

   www.infospace - inc.com   

   www.rsinc.com   

   www.gr - fx.com   

   analytictech.com   

   www.giﬁ c.com   

   www.inxight.com   

   www.thememediacom   

   www.neovision.com   

   www.iunet.it/ais   

   www.knowledgediscovery.com   

   www.quadstone.co.uk   

   www.datajunction.com   

   www.semio.com   

   www.vni.com   

   www.perspecta.com   

   www.dynamicdiagrams.com   

   www.presearch.com   

   www.incontext.ca   

WEB  SITE  LINKS 

495

   Data - Mining Vendor  

   Address  

   Web Site  

  Cygron Research  &  
Development, Ltd.  
  NetScout Systems, 
Inc.  
  Advanced Visual 
Systems  
  Alta Analytics, Inc  

  Szeged, Pf.: 727, H - 6701 Hungary  

   www.tiszanet.hu/cygron/   

  4 Technology Park Drive, Westford, 
MA 01886, USA  
  300 Fifth Ave., Waltham, MA 
02154, USA  
  555 Metro Place North, Suite 175, 
Dublin, OH 43017, USA  

   www.frontier.com   

   www.avs.com   

   www.alta - oh.com   

   Data - Mining Vendor  

  MapInfo Corp.  

  Information Builders, Inc.  

  Prism Solutions, Inc.  

  Oracle Corp.  

  Evolutionary Technologies, Inc.  

  Information Advantage, Inc.  

  IntelligenceWare, Inc.  

  Microsoft Corporation  

  Computer Associates 
International, Inc.  

   Address  

   Web Site/Phone Number  

  1 Global View, Troy, NY 
12180, USA  
  1250 Broadway, 30 th  Floor, 
New York, NY 10001 - 3782, 
USA  
  1000 Hamlin Court, Sunnyvale, 
CA 94089, USA  
  500 Oracle Parkway, Redwood 
Shores, CA 94086, USA  
  4301 Westbank Drive, Austin, 
TX 78746, USA  
  12900 Whitewater Drive, Suite 
100, Minnetonka, MN 55343, 
USA  
  55933 W. Century Blvd., Suite 
900, Los Angeles, CA 90045, 
USA  
  One Microsoft Way, Redmond, 
WA 98052, USA  

  One Computer Associates 
Plaza, Islandia, NY 11788 -
 7000, USA  

   www.mapinfo.com   

  Phone: 212 - 736 - 4433  

  Phone: 408 - 752 - 1888  

  Phone: 800 - 633 - 0583  

  Phone: 512 - 327 - 6994  

  Phone: 612 - 938 - 7015  

  Phone: 310 - 216 - 6177  

  Phone: 206 - 882 - 8080  

  Phone: 516 - 342 - 5224  

 APPENDIX B 
 DATA - MINING APPLICATIONS     

     Many businesses and scientiﬁ c communities are currently employing data - mining tech-
nology. Their number continues to grow, as more and more data - mining success stories 
become known. Here we present a small collection of real - life examples of data - mining 
implementations from the business and scientiﬁ c world. We also present some pitfalls 
of data mining to make readers aware that this process needs to be applied with care 
and  knowledge  (both,  about  the  application  domain  and  about  the  methodology)  to 
obtain useful results. 

 In the previous chapters of this book, we have studied the principles and methods 
of data mining. Since data mining is a young discipline with wide and diverse applica-
tions, there is a still a serious gap between the general principles of data mining and 
the  domain - speciﬁ c  knowledge  required  to  apply  it  effectively.  In  this  appendix,  we 
examine  a  few  application  domains  illustrated  by  the  results  of  data - mining  systems 
that have been implemented.  

   B.1  

  DATA MINING FOR FINANCIAL DATA ANALYSIS 

 Most banks and ﬁ nancial institutions offer a wide variety of banking services such as 
checking, savings, business and individual customer transactions, investment services, 
credits, and loans. Financial data, collected in the banking and ﬁ nancial industry, are 
often relatively complete, reliable, and of a high quality, which facilitates systematic 
data analysis and data mining to improve a company ’ s competitiveness. 

 In the banking industry, data mining is used heavily in the areas of modeling and 
predicting credit fraud, in evaluating risk, in performing trend analyses, in analyzing 
proﬁ tability,  as  well  as  in  helping  with  direct - marketing  campaigns.  In  the  ﬁ nancial 
markets, neural networks have been used in forecasting stock prices, options trading, 
rating  bonds,  portfolio  management,  commodity - price  prediction,  and  mergers  and 
acquisitions  analyses;  it  has  also  been  used  in  forecasting  ﬁ nancial  disasters.  Daiwa 
Securities, NEC Corporation, Carl  &  Associates, LBS Capital Management, Walkrich 

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

496

DATA  MINING  FOR  FINANCIAL  DATA  ANALYSIS 

497

Investment Advisors, and O ’ Sallivan Brothers Investments are only a few of the ﬁ nan-
cial companies who use neural - network technology for data mining. A wide range of 
successful business applications has been reported, although the retrieval of technical 
details is not always easy. The number of investment companies and banks that mine 
data is far more extensive than the list mentioned earlier, but you will not often ﬁ nd 
them willing to be referenced. Usually, they have policies not to discuss it. Therefore, 
ﬁ nding  articles  about  banking  companies  who  use  data  mining  is  not  an  easy  task, 
unless  you  look  at  the  SEC  reports  of  some  of  the  data - mining  companies  who  sell 
their tools and services. There, you will ﬁ nd customers such as Bank of America, First 
USA Bank, Wells Fargo Bank, and U.S. Bancorp. 

 The  widespread  use  of  data  mining  in  banking  has  not  been  unnoticed.   Bank 
Systems  &  Technology  commented that data mining was the most important application 
in ﬁ nancial services in 1996. For example, fraud costs industries billions of dollars, so 
it is not surprising to see that systems have been developed to combat fraudulent activi-
ties in such areas as credit card, stock market, and other ﬁ nancial transactions. Fraud 
is  an  extremely  serious  problem  for  credit - card  companies.  For  example,  Visa  and 
MasterCard lost over $700 million in 1995 from fraud. A neural network - based credit 
card fraud - detection system implemented in Capital One has been able to cut the com-
pany ’ s losses from fraud by more than 50%. Several successful data - mining systems 
are  explained  here  to  support  the  importance  of  data - mining  technology  in  ﬁ nancial 
institutions.

   U.S. Treasury Department  

  Worth particular mention is a system developed by the Financial Crimes Enforcement 
Network  (FINCEN)  of  the  U.S.  Treasury  Department  called   “ FAIS. ”   FAIS  detects 
potential  money - laundering  activities  from  a  large  number  of  big  cash  transactions. 
The Bank Secrecy Act of 1971 required the reporting of all cash transactions greater 
than  $10,000,  and  these  transactions,  of  about  14  million  a  year,  are  the  basis  for 
detecting suspicious ﬁ nancial activities. By combining user expertise with the system ’ s 
rule - based  reasoner,  visualization  facilities,  and  association - analysis  module,  FIAS 
uncovers previously unknown and potentially high - value leads for possible investiga-
tion.  The  reports  generated  by  the  FIAS  application  have  helped  FINCEN  uncover 
more than 400 cases of money - laundering activities, involving more than $1 billion in 
potentially laundered funds. In addition, FAIS is reported to be able to discover crimi-
nal  activities  that  law  enforcement  in  the  ﬁ eld  would  otherwise  miss,  for  example, 
connections in cases involving nearly 300 individuals, more than 80 front operations, 
and thousands of cash transactions.  

  Mellon Bank, USA  

  Mellon Bank has used the data on existing credit - card customers to characterize their 
behavior and they try to predict what they will do next. Using IBM Intelligent Miner, 
Mellon  developed  a  credit  card - attrition  model  to  predict  which  customers  will  stop 
using Mellon ’ s credit card in the next few months. Based on the prediction results, the 
bank can take marketing actions to retain these customers ’  loyalty.  

498 

APPENDIX B  DATA-MINING  APPLICATIONS

  Capital One Financial Group  

  Financial companies are one of the biggest users of data - mining technology. One such 
user is Capital One Financial Corp., one of the nation ’ s largest credit - card issuers. It 
offers  3000  ﬁ nancial  products,  including  secured,  joint,  co - branded,  and  college -
 student cards. Using data - mining techniques, the company tries to help market and sell 
the most appropriate ﬁ nancial product to 150 million potential prospects residing in 
its  over  2 - terabyte  Oracle - based  data  warehouse.  Even  after  a  customer  has  signed 
up, Capital One continues to use data mining for tracking the ongoing proﬁ tability and 
other characteristics of each of its customers. The use of data mining and other strate-
gies has helped Capital One expand from $1 billion to $12.8 billion in managed loans 
over 8 years. An additional successful data - mining application at Capital One is fraud 
detection.  

  American Express  

  Another example of data mining is at American Express, where data warehousing and 
data  mining  are  being  used  to  cut  spending. American  Express  has  created  a  single 
Microsoft SQL Server database by merging its worldwide purchasing system, corporate 
purchasing card, and corporate - card databases. This allows American Express to ﬁ nd 
exceptions and patterns to target for cost cutting. One of the main applications is loan 
application screening. American Express used statistical methods to divide loan appli-
cations into three categories: those that should deﬁ nitely be accepted, those that should 
deﬁ nitely be rejected, and those which required a human expert to judge. The human 
experts could correctly predict if an applicant would, or would not, default on the loan 
in only about 50% of the cases. Machine learning produced rules that were much more 
accurate — correctly predicting default in 70% of the cases — and that were immediately 
put into use.  

  MetLife, Inc.  

  MetLife ’ s Intelligent Text Analyzer has been developed to help automate the underwrit-
ing  of  260,000  life  insurance  applications  received  by  the  company  every  year. 
Automation is difﬁ cult because the applications include many free - form text ﬁ elds. The 
use of keywords or simple parsing techniques to understand the text ﬁ elds has proven 
to be inadequate, while the application of full semantic natural - language processing 
was  perceived  to  be  too  complex  and  unnecessary.  As  a  compromise  solution,  the 
 “ information - extraction ”   approach  was  used  in  which  the  input  text  is  skimmed  for 
speciﬁ c information relevant to the particular application. The system currently pro-
cesses 20,000 life - insurance applications a month and it is reported that 89% of the 
text ﬁ elds processed by the system exceed the established conﬁ dence - level threshold.  

  Bank of America (USA)  

  Bank of America is one of the world ’ s largest ﬁ nancial institutions. With approximately 
59 million consumer and small business relationships, 6,000 retail banking ofﬁ ces and 
more than 18,000 ATMs, Bank of America is among the world ’ s leading wealth man-
agement companies and is a global leader in corporate and investment banking and 

DATA  MINING  FOR  THE  TELECOMUNICATIONS  INDUSTRY 

499

trading across a broad range of asset classes. Bank of America identiﬁ ed savings of 
$4.8 million in2 years (a 400% return on investment) from use of a credit risk manage-
ment system provided by SAS institute consultants and based on statistical and data -
 mining analytics [ “ Predicting Returns from the Use of Data Mining to Support CRM, ”   
 http://insight.nau.edu/WhitePapers.asp  ].  They  have  also  developed  proﬁ les  of  most 
valuable accounts, with relationship managers being assigned to the top 10% of the 
bank ’ s  customers  in  order  to  identify  opportunities  to  sell  them  additional  services 
[ “ Using Data Mining on the Road to Successful BI, Part 3, ”  Information Management 
Special  Reports,  Oct.  2004].  Recently,  to  retain  deposits,  the  Global  Wealth  and 
Investment Management division has used KXEN Analytic Framework in identifying 
clients likely to move assets and then creating offers conducive to retention [ “ KXEN 
Analytic Framework, ”  Information Management Magazine, July/Aug 2009].     

   B.2  

  DATA MINING FOR THE TELECOMUNICATIONS INDUSTRY 

 The  telecommunication  industry  has  quickly  evolved  from  offering  local  and  long -
 distance  telephone  services  to  providing  many  other  comprehensive  communication 
services  including  voice,  fax,  pager,  cellular  phone,  images,  e - mail,  computer,  and 
Web - data transmission, and other data trafﬁ c. The integration of telecommunications, 
computer networks, Internet, and numerous others means of communication and com-
puting is under way. The U.S. Telecommunication Act of 1996 allowed Regional Bell 
Operating  Companies  to  enter  the  long - distance  market  as  well  as  offer   “ cable - like ”  
services.  The  European  Liberalization  of  Telecommunications  Services  has  been 
effective  from  the  beginning  of  1998.  Besides  deregulation,  there  has  been  a  sale 
by the FCC of airwaves to companies pioneering new ways to communicate. The cel-
lular  industry  is  rapidly  taking  on  a  life  of  its  own. With  all  this  deregulation  of  the 
telecommunication  industry,  the  market  is  expanding  rapidly  and  becoming  highly 
competitive. 

 The  hypercompetitive  nature  of  the  industry  has  created  a  need  to  understand 
customers,  to  keep  them,  and  to  model  effective  ways  to  market  new  products. This 
creates a great demand for data mining to help understand the new business involved, 
identify  telecommunication  patterns,  catch  fraudulent  activities,  make  better  use  of 
resources,  and  improve  the  quality  of  services.  In  general,  the  telecommunications 
industry is interested in answering some strategic questions through data - mining appli-
cations such as:

    •       How does one retain customers and keep them loyal as competitors offer special 

offers and reduced rates?  

   •       Which customers are most likely to churn?  
   •       What  characteristics  indicate  high - risk  investments,  such  as  investing  in  new 

ﬁ ber - optic lines?  

   •       How does one predict whether customers will buy additional products like cel-

lular services, call waiting, or basic services?  

   •       What characteristics differentiate our products from those of our competitors?    

500 

APPENDIX B  DATA-MINING  APPLICATIONS

 Companies like AT & T, AirTouch Communications, and AMS Mobile Communication 
Industry  Group  have  announced  the  use  of  data  mining  to  improve  their  marketing 
activities.  There  are  several  companies  including  Lightbridge  and  Verizon  that  use 
data - mining technology to look at cellular fraud for the telecommunications industry. 
Another trend has been to use advanced visualization techniques to model and analyze 
wireless - telecommunication networks. Selected examples of data - mining applications 
in the telecommunication industry follow.

   Cablevision Systems, Inc.  

  Cablevision Systems Inc., a cable TV provider from New York, was concerned about 
its competitiveness after deregulation allowed telecom companies into the cable indus-
try. As  a  consequence,  it  decided  that  it  needed  a  central  data  repository  so  that  its 
marketing  people  could  have  faster  and  more  accurate  access  to  data.  Using  data 
mining, the marketing people at Cablevision were able to identify nine primary cus-
tomer segments among the company ’ s 2.8 million customers. This included customers 
in the segment that are likely to  “ switch ”  to another provider. Cablevision also focused 
on those segments most likely to buy its offerings for new services. The company has 
used data mining to compare the proﬁ les of two sets of targeted customers — those who 
bought new services and those who did not. This has led the company to make some 
changes  in  its  messages  to  customers,  which,  in  turn,  has  led  to  a  30%  increase  in 
targeted customers signing up for new services  

  Worldcom  

  Worldcom is another company that has found great value in data mining. By mining 
databases  of  its  customer - service  and  telemarketing  data,  Worldcom  has  discovered 
new ways to sell voice and data services. For example, it has found that people who 
buy two or more services were likely to be relatively loyal customers. It also found that 
people were willing to buy packages of products such as long - distance, cellular - phone, 
Internet,  and  other  services.  Consequently,  Worldcom  started  to  offer  more  such 
packages.  

  BBC TV  

  TV - program schedulers would like to know the likely audience for a proposed program 
and  the  best  time  to  show  it.  The  data  for  audience  prediction  are  fairly  complex. 
Factors, which determine the audience share gained by a particular program, include 
not only the characteristics of the program itself and the time at which is shown, but 
also  the  nature  of  the  competing  programs  in  other  channels.  Using  Clementine, 
Integral Solutions Limited developed a system to predict television audiences for the 
BBC. The prediction accuracy was reported to be the same as that achieved by the best 
performance of BBC ’ s planners.  

  Bell Atlantic  

  Bell Atlantic developed telephone technician dispatch system. When a customer reports 
a telephone problem to Bell Atlantic, the company must decide what type of technician 

DATA  MINING  FOR  THE  RETAIL  INDUSTRY 

501

to dispatch to resolve the issue. Starting in 1991, this decision was made using a hand -
 crafted expert system, but in 1999 it was replaced by another set of rules created with 
machine learning. The learned rules save Bell Atlantic more than 10 million dollars 
per year because they make fewer erroneous decisions. In addition, the original expert 
system  had  reached  a  stage  in  its  evolution  where  it  could  not  be  maintained  cost -
 effectively. Because the learned system was built by training it on examples, it is easy 
to maintain and to adapt to regional differences and changing cost structures.     

   B.3  

  DATA MINING FOR THE RETAIL INDUSTRY 

 Slim margins have pushed retailers into data warehousing earlier than other industries. 
Retailers have seen improved decision - support processes leading directly to improved 
efﬁ ciency  in  inventory  management  and  ﬁ nancial  forecasting.  The  early  adoption  of 
data warehousing by retailers has allowed them a better opportunity to take advantage 
of data mining. The retail industry is a major application area for data mining since it 
collects huge amounts of data on sales, customer - shopping history, goods transporta-
tion, consumption patterns, and service records, and so on. The quantity of data col-
lected  continues  to  expand  rapidly,  especially  due  to  the  increasing  availability  and 
popularity of business conducted on the Web, or e - commerce. Today, many stores also 
have Web sites where customers can make purchases online. A variety of sources and 
types of retail data provide a rich source for data mining. 

 Retail data mining can help identify customer - buying behaviors, discover customer -
 shopping patterns and trends, improve the quality of customer services, achieve better 
customer retention and satisfaction, enhance goods consumption, design more effective 
goods transportation and distribution policies, and, in general, reduce the cost of busi-
ness and increase proﬁ tability. In the forefront of applications that have been adopted 
by the retail industry are direct - marketing applications. The direct - mailing industry is 
an  area  where  data  mining  is  widely  used. Almost  every  type  of  retailer  uses  direct 
marketing, including catalogers, consumer retail chains, grocers, publishers, B2B mar-
keters, and packaged goods manufacturers. The claim could be made that every Fortune 
500 company has used some level of data mining in their direct - marketing campaigns. 
Large  retail  chains  and  groceries  stores  use  vast  amounts  of  sale  data  that  are 
 “ information - rich. ”  Direct marketers are mainly concerned about customer segmenta-
tion, which is a clustering or classiﬁ cation problem. 

 Retailers  are  interested  in  creating  data - mining  models  to  answer  questions 

such as:

    •       What  are  the  best  types  of  advertisements  to  reach  certain  segments  of 

customers?  

   •       What is the optimal timing at which to send mailers?  
   •       What is the latest product trend?  
   •       What types of products can be sold together?  
   •       How does one retain proﬁ table customers?  
   •       What are the signiﬁ cant customer segments that buy products?    

502 

APPENDIX B  DATA-MINING  APPLICATIONS

 Data mining helps to model and identify the traits of proﬁ table customers, and it 
also helps to reveal the  “ hidden relationship ”  in data that standard - query processes have 
not found. IBM has used data mining for several retailers to analyze shopping patterns 
within stores based on point - of - sale (POS) information. For example, one retail company 
with $2 billion in revenue, 300,000 UPC codes, and 129 stores in 15 states found some 
interesting results:  “  . . .    we found that people who were coming into the shop gravitated 
to the left - hand side of the store for promotional items, and they were not necessarily 
shopping the whole store. ”  Such information is used to change promotional activities 
and provide a better understanding of how to lay out a store in order to optimize sales. 
Additional real - world examples of data - mining systems in retail industry follow.

   Safeway, UK  

  Grocery chains have been another big user of data - mining technology. Safeway is one 
such grocery chain with more than $10 billion in sales. It uses Intelligent Miner from 
IBM to continually extract business knowledge from its product - transaction data. For 
example, the data - mining system found that the top - spending 25% customers very often 
purchased a particular cheese product ranked below 200 in sales. Normally, without 
the data - mining results, the product would have been discontinued. But the extracted 
rule  showed  that  discontinuation  would  disappoint  the  best  customers,  and  Safeway 
continues to order this cheese, although it is ranked low in sales. Thanks to data mining, 
Safeway is also able to generate customized mailing to its customers by applying the 
sequence - discovery function of Intelligent Miner, allowing the company to maintain its 
competitive edge.  

  RS Components, UK  

  RS Components, a UK - based distributor of technical products such as electronic and 
electrical  components  and  instrumentation,  has  used  the  IBM  Intelligent  Miner  to 
develop  a  system  to  do  cross  selling  (suggested  related  products  on  the  phone  when 
customers  ask  for  one  set  of  products),  and  in  warehouse  product  allocation.  The 
company had one warehouse in Corby before 1995 and decided to open another in the 
Midlands to expand its business. The problem was how to split the products into these 
two  warehouses  so  that  the  number  of  partial  orders  and  split  shipments  could  be 
minimized. Remarkably, the percentage of split orders is just about 6% after using the 
patterns found by the system, much better than expected.  

  Kroger Co. (USA)  

  The Kroger is the largest grocery store chain in the United States. Forty percent of all 
U.S households have one of Kroger ’ s loyalty cards. The Kroger is trying to drive loyalty 
for life with their customers. In particular, their customers are rewarded with offers on 
what they buy instead of trying to be sold something else. In other words, each of them 
could  receive  coupons  different  from  each  other,  not  the  same  coupons.  In  order  to 
match  the  best  customers  with  the  right  coupons,  the  Kroger  analyses  customers ’  
behavior  using  the  data - mining  techniques.  For  instance,  one  recent  mailing  was 
customized  to  95%  of  the  intended  recipients.  Such  business  strategy  for  looking  at 
customers  to  win  customers  for  life  makes  the  Kroger  beat  their  largest  competitor, 

DATA  MINING  IN  HEALTH  CARE  AND  BIOMEDICAL  RESEARCH 

503

Walmart,  for  the  last  6  years  largely.  [  http://www.kypost.com/dpp/news/region
_central_cincinnati/downtown/data - mining - is - big - business - for - kroger - %26 - getting
 - bigger - all - the - time  ]  

  Korea Customs Service (South Korea)  

  The  Korea  Customs  Service  (KCS)  is  a  government  agency  established  to  secure 
national revenues by controlling imports and exports for the economic development of 
South Korea and to protect domestic industry through contraband control. It is respon-
sible  for  the  customs  clearance  of  imported  goods  as  well  as  tax  collection  at  the 
customs border. For detecting illegal cargo, they implemented a system using SAS for 
fraud detection, based on its widespread use and trustworthy reputation in the data -
 mining ﬁ eld. This system enabled more speciﬁ c and accurate sorting of illegal cargo. 
For instance, the number of potentially illegal factors increased from 77 to 163. As a 
result,  the  detection  rate  for  important  items,  as  well  as  the  total  rate,  increased  by 
more than 20% [  http://www.sas.com/success/kcs.html  ].     

   B.4  

  DATA MINING IN HEALTH CARE AND BIOMEDICAL RESEARCH 

 With the amount of information and issues in the health - care industry, not to mention 
the  pharmaceutical  industry  and  biomedical  research,  opportunities  for  data - mining 
applications  are  extremely  widespread,  and  beneﬁ ts  from  the  results  are  enormous. 
Storing  patients ’   records  in  electronic  format  and  the  development  in  medical -
 information  systems  cause  a  large  amount  of  clinical  data  to  be  available  online. 
Regularities,  trends,  and  surprising  events  extracted  from  these  data  by  data - mining 
methods  are  important  in  assisting  clinicians  to  make  informed  decisions,  thereby 
improving health services. 

 Clinicians evaluate a patient ’ s condition over time. The analysis of large quantities 
of  time - stamped  data  will  provide  doctors  with  important  information  regarding  the 
progress of the disease. Therefore, systems capable of performing temporal abstraction 
and reasoning become crucial in this context. Although the use of temporal - reasoning 
methods requires an intensive knowledge - acquisition effort, data mining has been used 
in  many  successful  medical  applications,  including  data  validation  in  intensive  care, 
the monitoring of children ’ s growth, analysis of a diabetic patient ’ s data, the monitoring 
of heart - transplant patients, and intelligent anesthesia monitoring. 

 Data mining has been used extensively in the medical industry. Data visualization 
and artiﬁ cial neural networks are especially important areas of data mining applicable 
in  the  medical  ﬁ eld.  For  example,  NeuroMedicalSystems  used  neural  networks  to 
perform a pap smear diagnostic aid. Vysis Company uses neural networks to perform 
protein analyses for drug development. The University of Rochester Cancer Center and 
the Oxford Transplant Center use KnowledgeSeeker, a decision tree - based technology, 
to help with their research in oncology. 

 The  past  decade  has  seen  an  explosive  growth  in  biomedical  research,  ranging 
from the development of new pharmaceuticals and advances in cancer therapies to the 
identiﬁ cation  and  study  of  the  human  genome.  The  logic  behind  investigating  the 

504 

APPENDIX B  DATA-MINING  APPLICATIONS

genetic  causes  of  diseases  is  that  once  the  molecular  bases  of  diseases  are  known, 
precisely targeted medical interventions for diagnostics, prevention, and treatment of 
the  disease  themselves  can  be  developed.  Much  of  the  work  occurs  in  the  context 
of the development of new pharmaceutical products that can be used to ﬁ ght a host of 
diseases ranging from various cancers to degenerative disorders such as Alzheimer ’ s 
Disease. 

 A  great  deal  of  biomedical  research  has  focused  on  DNA - data  analysis,  and  the 
results have led to the discovery of genetic causes for many diseases and disabilities. 
An  important  focus  in  genome  research  is  the  study  of  DNA  sequences  since  such 
sequences  form  the  foundation  of  the  genetic  codes  of  all  living  organisms. What  is 
DNA? Deoxyribonucleic acid, or DNA, forms the foundation for all living organisms. 
DNA contains the instructions that tell cells how to behave and is the primary mecha-
nism that permits us to transfer our genes to our offspring. DNA is built in sequences 
that form the foundations of our genetic codes, and that are critical for understanding 
how our genes behave. Each gene comprises a series of building blocks called nucleo-
tides. When these nucleotides are combined, they form long, twisted, and paired DNA 
sequences  or  chains.  Unraveling  these  sequences  has  become  a  challenge  since  the 
1950s  when  the  structure  of  the  DNA  was  ﬁ rst  understood.  If  we  understand  DNA 
sequences, theoretically, we will be able to identify and predict faults, weaknesses, or 
other  factors  in  our  genes  that  can  affect  our  lives.  Getting  a  better  grasp  of  DNA 
sequences could potentially lead to improved procedures to treat cancer, birth defects, 
and other pathological processes. Data - mining technologies are only one weapon in the 
arsenal used to understand these types of data, and the use of visualization and clas-
siﬁ cation techniques is playing a crucial role in these activities. 

 It is estimated that humans have around 100,000 genes, each one having DNA that 
encodes a unique protein specialized for a function or a set of functions. Genes control-
ling production of hemoglobin, regulation of insulin, and susceptibility to Huntington ’ s 
chorea are among those that have been isolated in recent years. There are seemingly 
endless varieties of ways in which nucleotides can be ordered and sequenced to form 
distinct genes. Any one gene might comprise a sequence containing hundreds of thou-
sands of individual nucleotides arranged in a particular order. Furthermore, the process 
of DNA sequencing used to extract genetic information from cells and tissues usually 
produces only fragments of genes. It has been difﬁ cult to tell using traditional methods 
where  these  fragments  ﬁ t  into  the  overall  complete  sequence  from  which  they  are 
drawn. Genetic scientists face the difﬁ cult task of trying to interpret these sequences 
and form hypotheses about which genes they might belong to, and the disease processes 
that they may control. The task of identifying good candidate gene sequences for further 
research and development is like ﬁ nding a needle in a haystack. There can be hundreds 
of candidates for any given disease being studied. Therefore, companies must decide 
which sequences are the most promising ones to pursue for further development. How 
do they determine which ones would make good therapeutic targets? Historically, this 
has been a process based largely on trial and error. For every lead that eventually turns 
into a successful pharmaceutical intervention that is effective in clinical settings, there 
are dozens of others that do not produce the anticipated results. This is a research area 
that is crying out for innovations that can help to make these analytical processes more 

DATA  MINING  IN  HEALTH  CARE  AND  BIOMEDICAL  RESEARCH 

505

efﬁ cient.  Since  pattern  analysis,  data  visualization,  and  similarity - search  techniques 
have  been  developed  in  data  mining,  this  ﬁ eld  has  become  a  powerful  infrastructure 
for further research and discovery in DNA sequences. We will describe one attempt to 
innovate the process of mapping human genomes that has been undertaken by Incyte 
Pharmaceuticals, Inc. in cooperation with Silicon Graphics.

   Incyte Pharmaceuticals, Inc.  

  Incyte Pharmaceuticals is a publicly held company founded in 1991, and it is involved 
in high - throughput DNA sequencing and development of software, databases, and other 
products to support the analysis of genetic information. The ﬁ rst component of their 
activities is a large database called LiveSeq that contains more than 3 million human -
 gene sequences and expression records. Clients of the company buy a subscription to 
the database and receive monthly updates that include all of the new sequences identi-
ﬁ ed since the last update. All of these sequences can be considered as candidate genes 
that might be important for future genome mapping. This information has been derived 
from DNA sequencing and bioanalysis of gene fragments extracted from cell and tissue 
samples.  The  tissue  libraries  contain  different  types  of  tissues  including  normal  and 
diseased tissues, which are very important for comparison and analyses.  

  To  help  impose  a  conceptual  structure  of  the  massive  amount  of  information 
contained in LifeSeq, the data has been coded and linked to several levels. Therefore, 
DNA sequences can be grouped into many different categories, depending on the level 
of  generalization.  LifeSeq  has  been  organized  to  permit  comparisons  of  classes  of 
sequence  information  within  a  hypothesis - testing  mode.  For  example,  a  researcher 
could compare gene sequences isolated from diseased and non - diseased tissue from an 
organ. One of the most important tools that are provided in LifeSeq is a measure of 
similarity among sequences that are derived from speciﬁ c sources. If there is a differ-
ence between two tissue groups for any available sequences, this might indicate that 
these sequences should be explored more fully. Sequences occurring more frequently 
in the diseased sample might reﬂ ect genetic factors in the disease process. On the other 
hand, sequences occurring more frequently in the non - diseased sample might indicate 
mechanisms that protect the body from the disease.  

  Although it has proved invaluable to the company and their clients in its current 
incarnation,  additional  features  are  being  planned  and  implemented  to  extend  the 
LifeSeq functionality into research areas such as  

   •        identifying co - occurring gene sequences,   
   •        tying genes to disease stage, and   
   •        using LifeSeq to predict molecular toxicology.     

  Although the LifeSeq database is an invaluable research resource, queries to the data-
base often produce very large data sets that are difﬁ cult to analyze in text format. For 
this reason, Incyte developed the LifeSeq 3 - D application that provides visualization 
of data sets, and also allows users to cluster or classify and display information about 
genes. The 3 - D version has been developed using the Silicon Graphics MineSet tool. 
This version has customized functions that let researchers explore data from LifeSeq 
and  discover  novel  genes  within  the  context  of  targeted  protein  functions  and  tissue 
types.  

506 

APPENDIX B  DATA-MINING  APPLICATIONS

  Maine Medical Center (USA)  

  Maine Medical Center — a teaching hospital and the major community hospital for the 
Portland,  Maine,  area — has  been  named  in  the  U.S.  News  and  World  Report  Best 
Hospitals list twice in orthopedics and heart care. In order to improve quality of patient 
care in measurable ways, Maine Medical Center has used scorecards as key perfor-
mance indicators. Using SAS, the hospital creates balanced scorecards that measure 
everything from staff hand washing compliance to whether a congestive heart patient 
is actually offered a ﬂ u vaccination. One hundred percent of heart failure patients are 
getting quality care as benchmarked by national organizations, and a medication error 
reduction process has improved by 35%.  

   http://www.sas.com/success/mainemedicalcenter.html   
  In November 2009, the Central Maine Medical Group (CMMG) announced the 
launch of a prevention and screening campaign called  “ Saving Lives Through Evidence -
 Based Medicine. ”  The new initiative is employed to redesign the ways that it works as 
a team of providers to make certain that each of our patients undergoes the necessary 
screening  tests  identiﬁ ed  by  the  current  medical  literature  using  data - mining  tech-
niques. In particular, data - mining process identiﬁ es someone at risk for an undetected 
health problem   http://www.cmmc.org/news.taf  ].     

   B.5  

  DATA MINING IN SCIENCE AND ENGINEERING 

 Enormous amounts of data have been generated in science and engineering, for example, 
in cosmology, molecular biology, and chemical engineering. In cosmology, advanced 
computational tools are needed to help astronomers understand the origin of large - scale 
cosmological  structures  as  well  as  the  formation  and  evolution  of  their  astrophysical 
components  (galaxies,  quasars,  and  clusters).  Over  3  terabytes  of  image  data  have 
been collected by the Digital Palomar Observatory Sky Survey, which contain on the 
order of 2 billion sky objects. It has been a challenging task for astronomers to catalog 
the entire data set, that is, a record of the sky location of each object and its correspond-
ing classiﬁ cation such as a star or a galaxy. The Sky Image Cataloguing and Analysis 
Tool (SKICAT) has been developed to automate this task. The SKICAT system inte-
grates methods from machine learning, image processing, classiﬁ cation, and databases, 
and it is reported to be able to classify objects, replacing visual classiﬁ cation, with high 
accuracy. 

 In molecular biology, recent technological advances are applied in such areas as 
molecular genetics, protein sequencing, and macro - molecular structure determination 
as  was  mentioned  earlier.  Artiﬁ cial  neural  networks  and  some  advanced  statistical 
methods have shown particular promise in these applications. In chemical engineering, 
advanced models have been used to describe the interaction among various chemical 
processes, and also new tools have been developed to obtain a visualization of these 
structures  and  processes.  Let  us  have  a  brief  look  at  a  few  important  cases  of  data -
 mining applications in engineering problems. Pavilion Technologies ’  Process Insights, 
an  application - development  tool  that  combines  neural  networks,  fuzzy  logic,  and 
statistical methods has been successfully used by Eastman Kodak and other companies 
to develop chemical manufacturing and control applications to reduce waste, improve 

DATA  MINING  IN  SCIENCE  AND  ENGINEERING 

507

product quality, and increase plant throughput. Historical process data is used to build 
a predictive model of plant behavior and this model is then used to change the control 
set points in the plant for optimization. 

 DataEnginee  is  another  data - mining  tool  that  has  been  used  in  a  wide  range  of 
engineering applications, especially in the process industry. The basic components of 
the tool are neural networks, fuzzy logic, and advanced graphical user interfaces. The 
tool has been applied to process analysis in the chemical, steel, and rubber industries, 
resulting in a saving in input materials and improvements in quality and productivity. 
Successful  data - mining  applications  in  some  industrial  complexes  and  engineering 
environments follow.

   Boeing  

  To  improve  its  manufacturing  process,  Boeing  has  successfully  applied  machine -
 learning algorithms to the discovery of informative and useful rules from its plant data. 
In particular, it has been found that it is more beneﬁ cial to seek concise predictive rules 
that  cover  small  subsets  of  the  data,  rather  than  generate  general  decision  trees.  A 
variety of rules were extracted to predict such events as when a manufactured part is 
likely to fail inspection or when a delay will occur at a particular machine. These rules 
have been found to facilitate the identiﬁ cation of relatively rare but potentially impor-
tant anomalies.  

  R.R. Donnelly  

  This is an interesting application of data - mining technology in printing press control. 
During  rotogravure  printing,  grooves  sometimes  develop  on  the  printing  cylinder, 
ruining the ﬁ nal product. This phenomenon is known as banding. The printing company 
R.R. Donnelly hired a consultant for advice on how to reduce its banding problems, 
and at the same time used machine learning to create rules for determining the process 
parameters (e.g., the viscosity of the ink) to reduce banding. The learned rules were 
superior to the consultant ’ s advice in that they were more speciﬁ c to the plant where 
the training data was collected and they ﬁ lled gaps in the consultant ’ s advice and thus 
were more complete. In fact, one learned rule contradicted the consultant ’ s advice and 
proved to be correct. The learned rules have been in everyday use in the Donnelly plant 
in  Gallatin,  Tennessee,  for  over  a  decade  and  have  reduced  the  number  of  banding 
occurrences from 538 to 26.  

  Southern California Gas Company  

  The Southern California Gas Company is using SAS software as a strategic marketing 
tool. The company maintains a data mart called the Customer Marketing Information 
Database  that  contains  internal  billing  and  order  data  along  with  external  demo-
graphic data. According to the company, it has saved hundreds of thousands of dollars 
by identifying and discarding ineffective marketing practices.  

  WebWatcher  

  Despite the best effort of Web designers, we all have had the experience of not being 
able  to  ﬁ nd  a  certain  Web  page  we  want.  A  bad  design  for  a  commercial  Web  site 

508 

APPENDIX B  DATA-MINING  APPLICATIONS

obviously means the loss of customers. One challenge for the data - mining community 
has been the creation of  “ adaptive Web sites ” ; Web sites that automatically improve 
their organization and presentation by learning from user - access patterns. One early 
attempt  is  WebWatcher,  an  operational  tour  guide  for  the  WWW.  It  learns  to  predict 
what  links  users  will  follow  on  a  particular  page,  highlight  the  links  along  the  way, 
and learn from experience to improve its advice - giving skills. The prediction is based 
on  many  previous  access  patterns  and  the  current  user ’ s  stated  interests.  It  has  also 
been reported that Microsoft is to include in its electronic - commerce system a feature 
called Intelligent Cross Sell that can be used to analyze the activity of shoppers on a 
Web site and automatically adapt the site to that user ’ s preferences.  

  AbitibiBowater Inc. (Canada)  

  AbitibiBowater  Inc.  is  a  pulp  and  paper  manufacturer  headquartered  in  Montreal, 
Quebec, Canada. The pulp and paper, a key component of the forest products industry, 
is  a  major  contributor  to  Canada ’ s  economy.  In  addition  to  market  pulp,  the  sector 
produces  newsprint,  specialty  papers,  paperboard,  building  board  and  other  paper 
products. It is the largest industrial energy consumer, representing 23% of industrial 
energy  consumption  in  Canada. AbitibiBowater  Inc.  used  data - mining  techniques  to 
detect  a  period  of  high  performance  and  reduce  energy  consumption  in  the  paper 
making process, so that they recognized that lower temporary consumption is caused 
by the reduced set point for chip preheating and cleaning of the heating tower on the 
reject  reﬁ ners.  AbitibiBowater  Inc.  was  able  to  reproduce  the  process  conditions 
required  to  maintain  steam  recovery.  This  has  saved AbitibiBowater  200  gigajoules  1  
 daily — the  equivalent  of  $600,000  a  year.  [Head  Up  CIPEC  (Canadian  Industry 
Program for Energy Conservation) new letter: Aug. 15, 2009 Vol. XIII, No.15]  

  eHarmony  

  The eHarmony dating service, which rather than matching prospective partners on the 
basis of their stated preferences, uses statistical analysis to match prospective partners, 
based on a 29 - parameter model derived from 5000 successful marriages. Its competi-
tors  such  as  Perfectmatch  use  different  models,  such  as  the  Jungian  Meyers - Briggs 
personality typing technique to parameterize individuals entered into their database. 
It is worth observing that while the process of matching partners may amount to little 
more than data retrieval using some complex set of rules, the process of determining 
what these rules need to be involves often complex knowledge discovery and mining 
techniques.  

  The maintenance of military platforms  

  Another  area  where  data - mining  techniques  offer  promising  gains  in  efﬁ ciency  is  in 
the  maintenance  of  military  platforms.  Good  and  analytically  based  maintenance 
programs, with the Amberley Ageing Aircraft Program for the F - 111 a good example, 

  1       A  gigajoule  (GJ)  is  a  metric  term  used  for  measuring  energy  use.  For  example,  1   GJ  is  equivalent  to 
the amount of energy available from either: 277.8   kWh of electricity, or 26.1   m 3  of natural gas, or 25.8   L of 
heating oil. 

PITFALLS  OF  DATA  MINING 

509

systematically analyze component failure statistics to identify components with wear 
out or other failure rate problems. They can then be removed from the ﬂ eet by replace-
ment with new or reengineered and thus more reliable components. This type of analy-
sis is a simple rule - based approach, where the rule is simply the frequency of faults in 
speciﬁ c components.     

   B.6  

  PITFALLS OF DATA MINING 

 Despite the above and many other success stories often presented by vendors and con-
sultants  to  show  the  beneﬁ ts  that  data  mining  provides,  this  technology  has  several 
pitfalls.  When  used  improperly,  data  mining  can  generate  lots  of   “ garbage. ”  As  one 
professor  from  MIT  pointed  out:   “ Given  enough  time,  enough  attempts,  and  enough 
imagination,  almost  any  set  of  data  can  be  teased  out  of  any  conclusion. ”   David  J. 
Lainweber, managing director of First Quadrant Corp. in Pasadena, California, gives 
an example of the pitfalls of data mining. Working with a United Nations data set, he 
found that historically, butter production in Bangladesh is the single best predictor of 
the Standard  &  Poor ’ s 500 - stock index. This example is similar to another absurd cor-
relation that is heard yearly around Super Bowl time — a win by the NFC team implies 
a rise in stock prices. Peter Coy, Business Week ’ s associate economics editor, warns of 
four pitfalls in data mining:

   1.      It is tempting to develop a theory to ﬁ t an oddity found in the data.  
  2.      One  can  ﬁ nd  evidence  to  support  any  preconception  if  you  let  the  computer 

churn long enough.  

  3.      A ﬁ nding makes more sense if there is a plausible theory for it. But a beguiling 

story can disguise weaknesses in the data.  

  4.      The  more  factors  or  features  in  a  data  set  the  computer  considers,  the  more 

likely the program will ﬁ nd a relationship, valid or not.    

 It  is  crucial  to  realize  that  data  mining  can  involve  a  great  deal  of  planning  and 
preparation. Just having a large amount of data alone is no guarantee of the success of 
a data - mining project. In the words of one senior product manager from Oracle:  “ Be 
prepared  to  generate  a  lot  of  garbage  until  you  hit  something  that  is  actionable  and 
meaningful for your business. ” 

   This appendix is certainly not an inclusive list of all data - mining activities, but it does 
provide  examples  of  how  data - mining  technology  is  employed  today.  We  expect  that 
new generations of data - mining tools and methodologies will increase and extend the 
spectrum of application domains.     

    
       
 BIBLIOGRAPHY        

  CHAPTER 1 

    Adriaans ,  P.  ,   D.   Zantinge  ,  Data Mining ,  Addison - Wesley Publ. Co. ,  New York ,  1996 .  
    Agosta ,  L.  ,  The Essential Guide to Data Warehousing ,  Prentice Hall, Inc. ,  Upper Saddle River, 

NJ ,  2000 .  

    An ,  A.  ,   C.   Chun  ,   N.   Shan  ,   N.   Cercone  ,   W.   Ziarko  ,  Applying Knowledge Discovery to Predict 

Watter - Supply Consumption ,  IEEE Expert , July/August  1997 , pp.  72  –  78 .  

    Barquin ,  R.  ,   H.   Edelstein  ,  Building, Using, and Managing the Data Warehouse ,  Prentice Hall, 

Inc. ,  Upper Saddle River, NJ ,  1997 .  

    Ben ,   H.  ,    E.    King  ,   How  to  Prepare  for  Data  Mining ,   http://www.b - eye - network.com/chan-

nels/1415/view/10880 , July  2009 .  

    Berson ,  A.  ,   S.   Smith  ,   K.   Thearling  ,  Building Data Mining Applications for CRM ,  McGraw - Hill , 

 New York ,  2000 .  

    Bischoff ,   J.  ,   T.   Alexander  ,   Data  Warehouse:  Practical Advice  from  the  Experts ,   Prentice  Hall, 

Inc. ,  Upper Saddle River, NJ ,  1997 .  

    Brachman ,   R.  J.  ,    T.    Khabaza  ,    W.    Kloesgen  ,    G.  S.    Shapiro  ,    E.    Simoudis  ,   Mining  Business 

Databases ,  CACM , Vol.  39 , No.  11 ,  1996 , pp.  42  –  48 .  

    De Ville ,  B.  ,  Managing the Data Mining Project ,  Microsoft Data Mining ,  2001 , pp.  93  –  116 .  
    Djoko ,  S.  ,   D. J.   Cook  ,   L. B.   Holder  ,  An Empirical Study of Domain Knowledge and Its Beneﬁ ts 
to Substructure Discovery ,  IEEE Transactions on Knowledge and Data Engineering , Vol.  9 , 
No.  4 ,  1997 , pp.  575  –  585 .  

    Fayyad ,  U.  ,   G. P.   Shapiro  ,   P.   Smyth  ,  The KDD Process for Extracting Useful Knowledge from 

Volumes of Data ,  CACM , Vol.  39 , No.  11 ,  1966 , pp.  27  –  34 .  

    Fayyad ,   U.  M.  ,    G.    Piatetsky - Shapiro  ,    P.    Smith  ,    R.    Uthurusamy  ,  eds.,   Advances  in  Knowledge 

Discovery and Data Mining ,  AAAI Press/MIT Press ,  Cambridge ,  1996a .  

    Fayyad ,  U.  ,   G. P.   Shapiro  ,   P.   Smyth  ,  From Data Mining to Knowledge Discovery in Databases , 

 AI Magazine , Fall  1996b , pp.  37  –  53 .  

    Friedland ,   L.  ,   Accessing  the  Data  Warehouse:  Designing  Tools  to  Facilitate  Business 

Understanding ,  Interactions , January – February  1998 , pp.  25  –  36 .  

    Ganti ,  V.  ,   J.   Gehrke  ,   R.   Ramakrishnan  ,  Mining Very Large Databases ,  Computer , Vol.  32 , No. 

 8 ,  1999 , pp.  38  –  45 .  

    Groth ,  R.  ,  Data Mining: A Hands - On Approach for Business Professionals ,  Prentice Hall, Inc. , 

 Upper Saddle River, NJ ,  1998 .  

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

510

BIBLIOGRAPHY 

511

    Han ,  J.  ,   M.   Kamber  ,  Data Mining: Concepts and Techniques ,  2nd  edition,  Morgan Kaufmann , 

 San Francisco, CA ,  2006 .  

    Kaudel ,  A.  ,    M.    Last  ,    H.    Bunke  ,  eds.,   Data  Mining  and  Computational  Intelligence ,   Physica -

 Verlag ,  Heidelberg, Germany ,  2001 .  

    Kriegel ,  H. P.  , et al.,  Future Trends in Data Mining ,  Data Mining and Knowledge Discovery , Vol. 

 15 ,  2007 , pp.  87  –  97 .  

    Lavrac ,  N.  , et al.,  Introduction: Lessons Learned from Data Mining Applications and Collaborative 

Problem Solving ,  Machine Learning , Vol.  57 ,  2004 , pp.  13  –  34 .  

   Maxus Systems International ,  What Is Data Mining ,  Internal Documentation,   http://www.maxus-

systems.com/datamining.html .  

    Olson ,   D.  L.  ,   Data  mining  in  business  services ,   Service  Business ,  Springer  Berlin/Heidelberg, 

Vol.  1 , No.  3 ,  2007 , pp.  181  –  193 .  

    Pyle ,  D.  ,  Getting the Initial Model: Basic Practices of Data Mining ,  Business Modeling and Data 

Mining ,  2003 , pp.  361  –  425 .  

    Ramakrishnan ,  N.  ,   A. Y.   Grama  ,  Data Mining: From Serendipity to Science ,  Computer , Vol.  32 , 

No.  8 ,  1999 , pp.  34  –  37 .  

    Shapiro ,  G. P.  ,  The Data - Mining Industry Coming of Age ,  IEEE Intelligent Systems , November/

December  1999 , pp.  32  –  33 .  

    Thomsen ,  E.  ,  OLAP Solution: Building Multidimensional Information System ,  John Wiley ,  New 

York ,  1997 .  

    Thuraisingham ,  B.  ,  Data Mining: Technologies, Techniques, Tools, and Trends ,  CRC Press LLC , 

 Boca Raton, FL ,  1999 .  

    Tsur ,  S.  ,  Data Mining in the Bioinformatics Domain ,  Proceedings of the 26th YLDB Conference , 

Cairo, Egypt,  2000 , pp.  711  –  714 .  

   Two  Crows  Corp. ,   Introduction  to  Data  Mining  and  Knowledge  Discovery ,   Two  Crows 

Corporation ,  Maryland ,  2005 .  

    Waltz ,  D.  ,   S. J.   Hong  ,  Data Mining: A Long Term Dream ,  IEEE Intelligent Systems , November/

December  1999 , pp.  30  –  34 .   

  CHAPTER 2 

    Adriaans ,  P.  ,   D.   Zantinge  ,  Data Mining ,  Addison - Wesley Publ. Co. ,  New York ,  1996 .  
    Anand ,   S.  S.  ,    D.  A.    Bell  ,    J.  G.    Hughes  ,   The  Role  of  Domain  Knowledge  in  Data  Mining , 

 Proceedings of the CIKM ’ 95 Conference , Baltimore,  1995 , pp.  37  –  43 .  

    Barquin ,  R.  ,   H.   Edelstein  ,  Building, Using, and Managing the Data Warehouse ,  Prentice Hall, 

Inc. ,  Upper Saddle River, NJ ,  1997 .  

    Ben ,   H.  ,    E.    King  ,   How  to  Prepare  for  Data  Mining ,   http://www.b - eye - network.com/channels/

1415/view/10880 , July  2009 .  

    Berson ,  A.  ,   S.   Smith  ,   K.   Thearling  ,  Building Data Mining Applications for CRM ,  McGraw - Hill , 

 New York ,  2000 .  

    Bischoff ,   J.  ,   T.   Alexander  ,   Data  Warehouse:  Practical Advice  from  the  Experts ,   Prentice  Hall, 

Inc. ,  Upper Saddle River, NJ ,  1997 .  

    Boriah ,   S.  ,   V.    Chandola  ,   V.    Kumar  ,   Similarity  Measures  for  Categorical  Data: A  Comparative 

Evaluation ,  SIAM Conference ,  2008 , pp.  243  –  254 .  

512 

BIBLIOGRAPHY

    Brachman ,   R.  J.  ,    T.    Khabaza  ,    W.    Kloesgen  ,    G.  S.    Shapiro  ,    E.    Simoudis  ,   Mining  Business 

Databases ,  CACM , Vol.  39 , No.  11 ,  1996 , pp.  42  –  48 .  

    Chen ,   C.  H.  ,    L.  F.    Pau  ,    P.  S.  P.   Wang  ,   Handbook  of  Pattern  Recognition   &   Computer  Vision , 

 World Scientiﬁ c Publ. Co. ,  Singapore ,  1993 .  

    Clark ,   W.  A.  V.  ,    M.  C.    Deurloo  ,   Categorical  Modeling/Automatic  Interaction  Detection , 

 Encyclopedia of Social Measurement ,  2005 , pp.  251  –  258 .  

    Dwinnell ,  W.  ,  Data Cleansing: An Automated Approach ,  PC AI , March/April  2001 , pp  21  –  23 .  
    Fayyad ,   U.  M.  ,    G.    Piatetsky - Shapiro  ,    P.    Smith  ,    R.    Uthurusamy  ,  eds.,   Advances  in  Knowledge 

Discovery and Data Mining ,  AAAI Press/MIT Press ,  Cambridge ,  1996a .  

    Fayyad ,  U.  ,   D.   Haussier  ,   P.   Stolorz  ,  Mining Scientiﬁ c Data ,  CACM , Vol.  39 , No.  11 ,  1966b , pp. 

 51  –  57 .  

    Ganti ,  V.  ,   J.   Gehrke  ,   R.   Ramakrishnan  ,  Mining Very Large Databases ,  Computer , Vol.  32 , No. 

 8 ,  1999 , pp.  38  –  45 .  

    Groth ,  R.  ,  Data Mining: A Hands - On Approach for Business Professionals ,  Prentice hall, Inc. , 

 Upper Saddle River, NJ ,  1998 .  

    Han ,  J.  ,   M.   Kamber  ,  Data Mining: Concepts and Techniques ,  2nd  edition,  Morgan Kaufmann , 

 San Francisco, CA ,  2006 .  

    Liu ,   H.  ,    H.    Motoda  ,  eds.,   Feature  Extraction,  Construction  and  Selection:  A  Data  Mining 

Perspective ,  Kluwer Academic Publishers ,  Boston, MA ,  1998 .  

    Liu ,   H.  ,    H.    Motoda  ,   Feature  Selection  for  Knowledge  Discovery  and  Data  Mining ,  Second 

Printing,  Kluwer Academic Publishers ,  Boston ,  2000 .  

    Pass ,  S.  ,  Discovering Value in a Mountain of Data ,  OR/MS Today , October  1997 ,  24  –  28 .  
    Pyle ,  D.  ,  Data Preparation for Data Mining ,  Morgan Kaufmann Publ. Inc. ,  New York ,  1999 .  
    Refaat ,  M.  ,  Treatment of Missing Values ,  Data Preparation for Data Mining Using SAS ,  2007 , 

pp.  171  –  206 .  

    Tan ,   P. - N.  ,    M.    Steinbach  ,    V.    Kumar  ,   Introduction  to  Data  Mining ,   Pearson  Addison - Wesley , 

 Boston ,  2006 .  

    Weiss ,   S.  M.  ,    N.    Indurkhya  ,   Predictive  Data  Mining:  A  Practical  Guide ,   Morgan  Kaufman 

Publishers, Inc. ,  San Francisco ,  1998 .  

    Westphal ,   C.  ,    T.    Blaxton  ,   Data  Mining  Solutions:  Methods  and  Tools  for  Solving  Real - World 

Problems ,  John Wiley & Sons, Inc. ,  New York ,  1998 .  

    Witten ,  I. H.  ,   E.   Frank  ,  Data Mining: Practical Machine Learning Tools and Techniques ,  2nd  

edition,  Elsevier Inc. ,  St. Louis, MO ,  2005 .   

  CHAPTER 3 

    Adriaans ,  P.  ,   D.   Zantinge  ,  Data Mining ,  Addison - Wesley Publ. Co. ,  New York ,  1996 .  
    Berson ,  A.  ,   S.   Smith  ,   K.   Thearling  ,  Building Data Mining Applications for CRM ,  McGraw - Hill , 

 New York ,  2000 .  

    Brachman ,   R.  J.  ,    T.    Khabaza  ,    W.    Kloesgen  ,    G.  S.    Shapiro  ,    E.    Simoudis  ,   Mining  Business 

Databases ,  CACM , Vol.  39 , No.  11 ,  1996 , pp.  42  –  48 .  

    Chen ,  C. H.  ,   L. F.   Pau  ,   P. S. P.   Wang  ,  Handbook of Pattern Recognition and Computer Vision , 

 World Scientiﬁ c Publ. Co. ,  Singapore ,  1993 .  

    Clark ,   W.  A.  V.  ,    M.  C.    Deurloo  ,   Categorical  Modeling/Automatic  Interaction  Detection , 

 Encyclopedia of Social Measurement ,  2005 , pp.  251  –  258 .  

BIBLIOGRAPHY 

513

    Dwinnell ,  W.  ,  Data Cleansing: An Automated Approach ,  PC AI , March/April  2001 , pp.  21  –  23 .  
    Eddy ,   W.  F.  ,   Large  Data  Sets  in  Statistical  Computing ,  in   International  Encyclopedia  of  the 
Social  &  Behavioral Sciences ,   N. J.   Smelser  ,   P. B.   Battes  , ed.,  Pergamon ,  Oxford ,  2004 , pp. 
 8382  –  8386 .  

    Fayyad ,   U.  M.  ,    G.    Piatetsky - Shapiro  ,    P.    Smith  ,    R.    Uthurusamy  ,  eds.,   Advances  in  Knowledge 

Discovery and Data Mining ,  AAAI Press/MIT Press ,  Cambridge ,  1996 .  

    Groth ,  R.  ,  Data Mining: A Hands - On Approach for Business Professionals ,  Prentice Hall, Inc. , 

 Upper Saddle River, NJ ,  1998 .  

    Han ,  J.  ,   M.   Kamber  ,  Data Mining: Concepts and Techniques ,  2nd  edition,  Morgan Kaufmann , 

 San Francisco, CA ,  2006 .  

    Jain ,  A.  ,   R. P. W.   Duin  ,   J.   Mao  ,  Statistical Pattern Recognition ,  IEEE Transactions on Pattern 

Analysis and Machine Intelligence , Vol.  22 , No.  1 ,  2000 , pp.  4  –  37 .  

    Kennedy ,  R. L.  , et al.  Solving Data Mining Problems through Pattern Recognition ,  Prentice Hall , 

 Upper Saddle River, NJ ,  1998 .  

    Kil ,   D.  H.  ,    F.  B.    Shin  ,   Pattern  Recognition  and  Prediction  with  Applications  to  Signal 

Characterization ,  AIP Press ,  Woodburg, NY ,  1996 .  

    Liu ,   H.  ,    H.    Motoda  ,  eds.,   Feature  Extraction,  Construction  and  Selection:  A  Data  Mining 

Perspective ,  Kluwer Academic Publishers ,  Boston, MA ,  1998 .  

    Liu ,   H.  ,    H.    Motoda  ,   Feature  Selection  for  Knowledge  Discovery  and  Data  Mining ,  Second 

Printing,  Kluwer Academic Publishers ,  Boston ,  2000 .  

    Liu ,  H.  ,   H.   Motoda  , eds.,  Instance Selection and Construction for Data Mining ,  Kluwer Academic 

Publishers ,  Boston, MA ,  2001 .  

    Maimon ,  O.  ,   M.   Last  ,  Knowledge Discovery and Data Mining: The Info - Fuzzy Network (IFN) 

Methodology ,  Kluwer Academic Publishers ,  Boston, MA ,  2001 .  

    Pyle ,  D.  ,  Data Preparation for Data Mining ,  Morgan Kaufmann Publ. Inc. ,  New York ,  1999 .  
    Sun ,   Y.  ,   Iterative  RELIEF  for  Feature  Weighting:  Algorithms,  Theories,  and  Applications , 
 IEEE  Transactions  on  Pattern  Analysis  and  Machine  Intelligence ,  Vol.   29 ,  No.   6 ,   2007 , 
pp.  1035  –  1051 .  

    Sun ,  Y.  ,   D.   Wu  ,  Feature Extraction through Local Learning ,  Proceedings of the 21st International 

Conference on Machine Learning , Banff, Canada,  2004 .  

    Sun ,  Y.  ,   D.   Wu  ,  A RELIEF Based Feature Extraction Algorithm ,  Proc. of the 8th SIAM Intl. Conf. 

Data Mining ,  2008 .  

    Tan ,   P. - N.  ,    M.    Steinbach  ,    V.    Kumar  ,   Introduction  to  Data  Mining ,   Pearson  Addison - Wesley , 

 Boston ,  2006 .  

    Wang ,   Y.  ,    F.    Makedon  ,   Application  of  Relief - F  Feature  Filtering  Algorithm  to  Selecting 
Informative Genes for Cancer Classiﬁ cation Using Microarray Data ,  2004 IEEE Computational 
Systems Bioinformatics Conference (CSB'04) , Stanford, CA, August  2004 .  

    Weiss ,   S.  M.  ,    N.    Indurkhya  ,   Predictive  Data  Mining:  A  Practical  Guide ,   Morgan  Kaufman 

Publishers, Inc. ,  San Francisco, CA ,  1998 .  

    Westphal ,   C.  ,    T.    Blaxton  ,   Data  Mining  Solutions:  Methods  and  Tools  for  Solving  Real - World 

Problems ,  John Wiley & Sons, Inc. ,  New York ,  1998 .  

    Witten ,  I. H.  ,   E.   Frank  ,  Data Mining: Practical Machine Learning Tools and Techniques ,  2nd  

edition,  Elsevier Inc. ,  St. Louis, MO ,  2005 .  

    Yang ,  Q.  ,   X.   Wu  ,  10 Challenging Problems in Data Mining Research ,  International Journal of 

Information Technology and Decision Making , Vol.  5 , No.  4 ,  2006 , pp.  597  –  604 .   

514 

  CHAPTER 4 

BIBLIOGRAPHY

    Alpaydin ,  E.  ,  Introduction to Machine Learning ,  2nd  edition,  The MIT Press ,  Cambridge ,  2010 .  
    Berbaum ,   K.  S.  ,    D.  D.    Dorfman  ,    E.  A.    Franken    Jr.  ,   Measuring  Observer  Performance  by 
ROC  Analysis:  Indications  and  Complications ,   Investigative  Radiology ,  Vol.   2A ,   1989 , 
pp.  228  –  233 .  

    Berthold ,   M.  ,    D.  J.    Hand  ,  eds.,   Intelligent  Data  Analysis — An  Introduction ,   Springer ,   Berlin , 

 1999 .  

    Bow ,  S.  ,  Pattern Recognition and Image Preprocessing ,  Marcel Dekker ,  New York ,  1992 .  
    Cherkassky ,  V.  ,   F.   Mulier  ,  Learning from Data: Concepts, Theory and Methods ,  John Wiley & 

Sons, Inc. ,  New York ,  1998 .  

    Diettrich ,   T.  G.  ,   Machine - Learning  Research:  Four  Current  Directions ,   AI  Magazine ,  Winter 

 1997 , pp.  97  –  136 .  

    Engel ,  A.  ,   C.   Van den Broeck  ,  Statistical Mechanics of Learning ,  Cambridge University Press , 

 Cambridge, UK ,  2001 .  

    Gunopulos ,  D.  ,   R.   Khardon  ,   H.   Mannila  ,   H.   Toivonen  ,  Data Mining, Hypergraph Traversals, and 

Machine Learning ,  Proceedings of PODS ’ 97 Conference , Tucson,  1997 , pp.  209  –  216 .  

    Hand ,   D.  ,    H.    Mannila  ,    P.    Smyth  ,   Principles  of  Data  Mining ,   The  MIT  Press ,   Cambridge , 

 2001 .  

    Hearst ,  M.  ,  Support Vector Machines ,  IEEE Intelligent Systems , July/August  1998 , pp.  18  –  28 .  
    Hilderman ,   R.  J.  ,    H.  J.    Hamilton  ,   Knowledge  Discovery  and  Measures  of  Interest ,   Kluwer 

Academic Publishers ,  Boston, MA ,  2001 .  

    Hirji ,  K. K.  ,  Exploring Data Mining Implementation ,  CACM , Vol.  44 , No.  7 ,  2001 , pp.  87  –  93 .  
    Hsu ,  C.  ,   C.   Chang  ,   C.   Lin  ,  A Practical Guide to Support Vector Classiﬁ cation ,  http://www.csie.

ntu.edu.tw/ ∼ cjlin/papers/guide/guide.pdf ,  2009 .  

    Jackson ,   J.  ,   Data  Mining:  A  Conceptual  Overview ,   Communications  of  the  Association  for 

Information Systems , Vol.  8 ,  2002 , pp.  267  –  296 .  

    Kennedy ,   R.  L.  ,  et  al.,   Solving  Data  Mining  Problems  through  Pattern  Recognition ,   Prentice 

Hall ,  Upper Saddle River, NJ ,  1998 .  

    Kitts ,  B.  ,   G.   Melli  ,   K.   Rexer  , eds.,  Data Mining Case Studies ,  Proceedings of the First International 

Workshop on Data Mining Case Studies ,  2005 .  

    Kukar ,   M.  ,   Quality  Assessment  of  Individual  Classiﬁ cations  in  Machine  Learning  and  Data 

Mining ,  Knowledge and Information Systems , Vol.  9 , No.  3 ,  2006 , pp.  364  –  384 .  

    Lavrac ,  N.  , et al.,  Introduction: Lessons Learned from Data Mining Applications and Collaborative 

Problem Solving ,  Machine Learning , Vol.  57 ,  2004 , pp.  13  –  34 .  

    Leondes ,  C. T.  ,  Knowledge - Based Systems: Techniques and Applications ,  Academic Press ,  San 

Diego ,  2000 .  

    Luger ,  G. F.  ,   W. A.   Stubbleﬁ eld  ,  Artiﬁ cial Intelligence: Structures and Strategies for Complex 

Problem Solving ,  Addison Wesley Longman, Inc. ,  Harlow, UK ,  1998 .  

    Metz ,   C.  E.  ,    B. A.    Herman  ,    C. A.    Roe  ,   Statistical  Comparison  of  Two  ROC - Curve  Estimates 
Obtained  from  Partially - Paired  Datasets ,   Medical  Decision  Making ,  Vol.   18 ,  No.   1 ,   1998 , 
pp.  110  –  124 .  

    Mitchell ,  T. M.  ,  Does Machine Learning Really Work?   AI Magazine , Fall  1997a , pp.  11  –  20 .  
    Mitchell ,  T.  ,  Machine Learning ,  McGraw Hill ,  New York ,  1997b .  

BIBLIOGRAPHY 

515

    Nisbet ,  R.  ,   J.   Elder  ,   G.   Miner  ,  Classiﬁ cation , in  Handbook of Statistical Analysis and Data Mining 
Applications ,    R.    Nisbet  ,    J.    Elder  ,    J.  F.    Elder  ,    G.    Miner  ,  eds.,  Academic  Press ,  Amsterdam, 
NL ,  2009a , pp.  235  –  258 .  

    Nisbet ,  R.  ,   J.   Elder  ,   G.   Miner  ,  Model Evaluation and Enhancement , in  Handbook of Statistical 
Analysis  and  Data  Mining  Applications ,    R.    Nisbet  ,    J.    Elder  ,    J.  F.    Elder  ,    G.    Miner  ,  eds., 
 Academic Press ,  Amsterdam, NL ,  2009b , pp.  285  –  312 .  

    Ortega ,  P.  ,   C.   Figueroa  ,   G.   Ruz  ,  A Medical Claim Fraud/Abuse Detection System Based on Data 

Mining: A Case Study in Chile ,  DMIN  Conference  ,  2006 .  

    Platt ,   J.  ,   Probabilistic  Outputs  for  Support  Vector  Machines  and  Comparisons  to  Regularized 
Likelihood  Methods ,  in   Advances  in  Large  Margin  Classiﬁ ers ,    A.    Smola  ,    P.    Bartlett  ,    B.  
 Scholkopf  ,   D.   Schuurmans  , eds.,  The MIT Press ,  Cambridge ,  1999 .  

    Poole ,  D.  ,   A.   Mackworth  ,   R.   Goebel  ,  Computational Intelligence: A Logical Approach ,  Oxford 

University Press, Inc. ,  New York ,  1998 .  

    Pyle ,  D.  ,  Getting the Initial Model: Basic Practices of Data Mining ,  Business Modeling and Data 

Mining ,  2003 , pp.  361  –  425 .  

    Rao ,  R.  ,  Improved Cardiac Care via Automated Mining of Medical Patient Records ,  Proceedings 

of the First International Workshop on Data Mining Case Studies ,  2005 .  

    Thrun ,   S.  ,    C.    Faloutsos  ,   Automated  Learning  and  Discovery ,   AI  Magazine ,  Fall   1999 ,  pp. 

 78  –  82 .  

    Wu ,  X.  , et al.,  Top 10 Algorithms in Data Mining ,  Knowledge and Information Systems , Vol.  14 , 

 2008 , pp.  1  –  37 .  

    Xie ,  Y.  ,  An Introduction to Support Vector Machine and Implementation in R ,  http://yihui.name/

cv/images/SVM_Report_Yihui.pdf , May,  2007 .  

    Zhong - Hui ,   W.  ,    W.    Li  ,    Y.    Cai  ,    X.    Xu  ,   An  Empirical  Comparison  of  Ensemble  Classiﬁ cation 
Algorithms with Support Vector Machines ,  Proceedings of the Third International Conference 
on Machine Laming and Cybernetics , Shanghai, August  2004 .  

    Zweig ,   M.  ,    G.    Campbell  ,   Receiver_Operating  Characteristic  (ROC)  Plots:  A  Fundamental 
Evaluation  Tool  in  Clinical  Medicine ,   Clinical  Chemistry ,  Vol.   39 ,  No.   4 ,   1993 ,  pp. 
 561  –  576 .   

  CHAPTER 5 

    Bow ,  S.  ,  Pattern Recognition and Image Preprocessing ,  Marcel Dekker ,  New York ,  1992 .  
    Brandt ,  S.  ,  Data Analysis: Statistical and Computational Methods for Scientists and Engineers , 

 3rd  edition,  Springer ,  New York ,  1999 .  

    Cherkassky ,  V.  ,   F.   Mulier  ,  Learning from Data: Concepts, Theory and Methods ,  John Wiley & 

Sons, Inc. ,  New York ,  1998 .  

    Christensen ,  R.  ,  Log - Linear Models ,  Springer - Verlag ,  New York ,  1990 .  
    Eddy ,  W. F.  ,  Large Data Sets in Statistical Computing ,  International Encyclopedia of the Social 

 &  Behavioral Sciences ,  2004 , pp.  8382  –  8386 .  

    Ezawa ,   K.  J.  ,    S.  W.    Norton  ,   Constructing  Bayesian  Network  to  Predict  Uncollectible 
Telecommunications Accounts ,  IEEE Expert: Intelligent Systems  &  Their Applications , Vol. 
 11 , No.  5 ,  1996 , pp.  45  –  51 .  

    Golden ,   B.  ,    E.    Condon  ,    S.    Lee  ,    E.    Wasil  ,   Pre - Processing  for  Visualization  Using  Principal 
Component  Analysis ,   Proceedings  of  the  ANNEC ’ 2000  Conference ,  St.  Louis,   2000 , 
pp.  429  –  436 .  

516 

BIBLIOGRAPHY

    Gose ,  E.  ,   R.   Johnsonbaugh  ,   S.   Jost  ,  Pattern Recognition and Image Analysis ,  Prentice Hall, Inc. , 

 Upper Saddle River, NJ ,  1996 .  

    Han ,  J.  ,   M.   Kamber  ,  Data Mining: Concepts and Techniques ,  2nd  edition,  Morgan Kaufmann , 

 San Francisco, CA ,  2006 .  

    Hand ,  D.  ,   H.   Mannila  ,   P.   Smyth  ,  Principles of Data Mining ,  The MIT Press ,  Cambridge, MA , 

 2001 .  

    Jackson ,   J.  ,   Data  Mining:  A  Conceptual  Overview ,   Communications  of  the  Association  for 

Information Systems , Vol.  8 ,  2002 , pp.  267  –  296 .  

    Jain ,  A.  ,   R. P. W.   Duin  ,   J.   Mao  ,  Statistical Pattern Recognition ,  IEEE Transactions on Pattern 

Analysis and Machine Intelligence , Vol.  22 , No.  1 ,  2000 , pp.  4  –  37 .  

    Kennedy ,   R.  L.  ,  et  al.,   Solving  Data  Mining  Problems  through  Pattern  Recognition ,   Prentice 

Hall ,  Upper Saddle River, NJ ,  1998 .  

    McCullagh ,  P.  ,   J. A.   Nelder  ,  Generalized Linear Models ,  2nd  edition,  Chapman  &  Hall ,  London , 

 1994 .  

    Metz ,   C.  E.  ,    B. A.    Herman  ,    C. A.    Roe  ,   Statistical  Comparison  of  Two  ROC - Curve  Estimates 
Obtained from Partially - Paired Datasets ,  Medical Decision Making , Vol.  18 , No.  1 ,  1998 , pp. 
 110  –  124 .  

    Nisbet ,   R.  ,    J.    Elder  ,    G.    Miner  ,   Model  Evaluation  and  Enhancement ,   Handbook  of  Statistical 

Analysis and Data Mining Applications ,  2009 , pp.  285  –  312 .  

    Norusis ,  M. J.  ,  SPSS 7.5: Guide to Data Analysis ,  Prentice - Hall, Inc. ,  Upper Saddle River, NJ , 

 1997 .  

    Smith ,  M.  ,  Neural Networks for Statistical Modeling ,  Van Nostrand Reinhold Publ. ,  New York , 

 1993 .  

    Trueblood ,  R. P.  ,   J. N.   Lovett  ,  Data Mining and Statistical Analysis Using SQL ,  Apress ,  Berkeley, 

CA ,  2001 .  

    Walpore ,  R. E.  ,   R. H.   Myers  ,  Probability and Statistics for Engineers and Scientists ,  4th  edition, 

 Macmillan Publishing Company ,  New York ,  1989 .  

    Witten ,   I.  H.  ,    E.    Frank  ,   Data  Mining:  Practical  Machine  Learning  Tools  and  Techniques  with 

Java Implementations ,  Morgan Kaufmannn Publ., Inc. ,  New York ,  1999 .  

    Xie ,   J.  ,    Z.    Qiu  ,   The  Effect  of  Imbalanced  Data  Sets  on  LDA:  A  Theoretical  and  Empirical 

Analysis ,  Pattern Recognition , Vol.  40 , No.  2 ,  2007 , pp.  557  –  562 .  

    Yang ,   Q.  ,    X.    Wu  ,   Challenging  Problems  in  Data  Mining  Research ,   International  Journal  of 

Information Technology Decision Making , Vol.  5 , No.  4 ,  2006 , p.  597 .   

  CHAPTER 6 

    Alpaydin ,  A.  ,  Introduction to Machine Learning ,  2nd  edition,  The MIT Press ,  Cambridge ,  2010 .  
    Cieslak ,  D. A.  ,   N. V.   Chawla  ,  Learning Decision Trees for Unbalanced Data ,  European Conference 
on Principles and Practice of Knowledge Discovery in Databases (ECML/PKDD) , Antwerp, 
Belgium,  2008 .  

    Darlington ,  J.  ,   Y.   Guo  ,   J.   Sutiwaraphun  ,   H. W.   To  ,  Parallel Induction Algorithms for Data Mining , 
  Proceedings of the Third International Conference on Knowledge Discovery and Data Mining  
KDD ’ 97 ,  1997 , pp.  35  –  43 .  

    Diettrich ,   T.  G.  ,   Machine - Learning  Research:  Four  Current  Directions ,   AI  Magazine ,  Winter 

 1997 , pp.  97  –  136 .  

BIBLIOGRAPHY 

517

    Dzeroski ,  S.  ,   N.   Lavrac  , eds.,  Relational Data Mining ,  Springer ,  Berlin ,  2001 .  
    Finn ,  P.  ,   S.   Muggleton  ,   D.   Page  ,   A.   Srinivasan  ,  Pharmacophore Discovery Using the Inductive 
Logic  Programming  System  Prolog ,   Machine  Learning,  Special  Issue  on  Applications  and 
Knowledge Discovery , Vol.  33 , No.  1 ,  1998 , pp.  13  –  47 .  

    Hand ,  D.  ,   H.   Mannila  ,   P.   Smyth  ,  Principles of Data Mining ,  The MIT Press ,  Cambridge, MA , 

 2001 .  

   Integral Solutions ,  1999 ,  Clementine ,  http://www.isl.co.uk/clem.html .  
    John ,   G.  H.  ,   Stock  Selection  Using  Rule  Induction ,   IEEE  Expert:  Intelligent  Systems   &   Their 

Applications , Vol.  11 , No.  5 ,  1996 , pp.  52  –  58 .  

    King ,   R.  D.  ,  et  al.,   Is  It  Better  to  Combine  Predictions?    Protein  Engineering ,  Vol.   13 ,  No.   1 , 

 2000 , pp.  15  –  19 .  

    Leondes ,  C. T.  ,  Knowledge - Based Systems: Techniques and Applications ,  Academic Press ,  San 

Diego, CA ,  2000 .  

    Li ,  W.  ,    J.    Han  ,    J.    Pei  ,   CMAR: Accurate  and  Efﬁ cient  Classiﬁ cation  Based  on  Multiple  Class -
 Association Rules ,   Proceedings on 2001 International Conference on Data Mining  (ICDM ’ 01) , 
San Jose, CA, November  2001 .  

    Luger ,  G. F.  ,   W. A.   Stubbleﬁ eld  ,  Artiﬁ cial Intelligence: Structures and Strategies for Complex 

Problem Solving ,  Addison Wesley Longman, Inc. ,  Harlow, England ,  1998 .  

    Maimon ,  O.  ,   M.   Last  ,  Knowledge Discovery and Data Mining: The Info - Fuzzy Network (IFN) 

Methodology ,  Kluwer Academic Publishers ,  Boston, MA ,  2001 .  

    McCarthy ,  J.  ,  Phenomenal Data Mining ,  CACM , Vol.  43 , No.  8 ,  2000 , pp.  75  –  79 .  
    Mitchell ,  T. M.  ,  Does Machine Learning Really Work?   AI Magazine , Fall  1997a , pp.  11  –  20 .  
    Mitchell ,  T.  ,  Machine Learning ,  McGraw Hill ,  New York ,  1997b .  
    Nisbet ,  R.  ,   J.   Elder  ,   G.   Miner  ,  Classiﬁ cation , in  Handbook of Statistical Analysis and Data Mining 
Applications ,    R.    Nisbet  ,    J.    Elder ,     J.  F.    Elder  ,    G.    Miner  ,  eds.,  Academic  Press, Amsterdam, 
NL ,  2009 , pp.  235  –  258 .  

    Piramuthu ,  S.  ,  Input Data for Decision Trees ,  Expert Systems with Applications , Vol.  34 , No.  2 , 

 2008 , pp.  1220  –  1226 .  

    Poole ,  D.  ,   A.   Mackworth  ,   R.   Goebel  ,  Computational Intelligence: A Logical Approach ,  Oxford 

University Press, Inc. ,  New York ,  1998 .  

    Quinlan ,  J. R.  ,  C4.5: Programs for Machine Learning ,  Morgan Kaufmann Publ. Inc. ,  San Mateo, 

CA ,  1992 .  

    Russell ,  S.  ,   P.   Norvig  ,  Artiﬁ cial Intelligence: A Modern Approach ,  Prentice Hall ,  Upper Saddle 

River, NJ ,  1995 .  

    Thrun ,   S.  ,    C.    Faloutsos  ,   Automated  Learning  and  Discovery ,   AI  Magazine ,  Fall   1999 ,  pp. 

 78  –  82 .  

    Witten ,  I. H.  ,   E.   Frank  ,  Data Mining: Practical Machine Learning Tools and Techniques ,  2nd  

edition,  Elsevier Inc. ,  St. Louis, MO ,  2005 .  

    Wu ,  X.  , et al.,  Top 10 Algorithms in Data Mining ,  Knowledge and Information Systems , Vol.  14 , 

 2008 , pp.  1  –  37 .   

  CHAPTER 7 

    Benitez ,   J.  M.  ,    J.  L.    Castro  ,    I.    Requena  ,  Are Artiﬁ cial  Neural  Networks  Black  Boxes?    IEEE 

Transactions on Neural Networks , Vol.  8 , No.  5 ,  1997 , pp.  1156  –  1164 .  

    Berthold ,   M.  ,    D.  J.    Hand  ,  eds.,   Intelligent  Data  Analysis — An  Introduction ,   Springer ,   Berlin , 

 1999 .  

518 

BIBLIOGRAPHY

    Castro ,   J.  L.  ,    C.  J.    Mantas  ,    J.  M.    Benitez  ,   Interpretation  of  Artiﬁ cial  Neural  Networks  by 
Means  of  Fuzzy  Rules ,   IEEE  Transactions  on  Neural  Networks ,  Vol.   13 ,  No.   1 ,   2002 , 
pp.  101  –  116 .  

    Cechin ,  A. L.  ,   E.   Battistella  ,  The Interpretation of Feedforward Neural Networks for Secondary 
Structure Prediction Using Sugeno Fuzzy Rules ,  International Journal of Hybrid Intelligent 
Systems , Vol.  4 , No.  1 ,  2007 , pp.  3  –  16 .  

    Cherkassky ,  V.  ,   F.   Mulier  ,  Learning from Data: Concepts, Theory and Methods ,  John Wiley & 

Sons, Inc. ,  New York ,  1998 .  

    Cios ,  K. J.  ,   W.   Pedrycz  ,   R. W.   Swiniarski  ,   L. A.   Kurgan  ,  Data Mining: A Knowledge Discovery 

Approach ,  Springer ,  New York ,  2007 .  

    Dreyfus ,  G.  ,  Neural Networks: Methodology and Applications ,  Springer ,  Berlin ,  2005 .  
    Embrechts ,  M. J.  ,  Neural Network for Data Mining , in  Intelligent Engineering Systems through 
Artiﬁ cial Neural Networks ,   P.   Chen  ,   B. R.   Fernandez  ,   J.   Gosh  , eds.,  ASME Press ,  New York , 
 1995 , pp.  771  –  778 .  

    Engel ,  A.  ,   C.   Van den Broeck  ,  Statistical Mechanics of Learning ,  Cambridge University Press , 

 Cambridge, UK ,  2001 .  

    Fayyad ,   U.  M.  ,    G.    Piatetsky - Shapiro  ,    P.    Smith  ,    R.    Uthurusamy  ,  eds.,   Advances  in  Knowledge 

Discovery and Data Mining ,  AAAI Press/MIT Press ,  Cambridge ,  1996 .  

    Finn ,  P.  ,   S.   Muggleton  ,   D.   Page  ,   A.   Srinivasan  ,  Pharmacophore Discovery Using the Inductive 
Logic  Programming  System  Prolog ,   Machine  Learning,  Special  Issue  on  Applications  and 
Knowledge Discovery , Vol.  33 , No.  1 ,  1998 , pp.  13  –  47 .  

    Fu ,  L.  ,  Neural Networks in Computer Intelligence ,  Mc Graw - Hill Inc. ,  New York ,  1994 .  
    Fu ,   L.  ,   An  Expert  Network  for  DNA  Sequence  Analysis ,   IEEE  Intelligent  Systems ,  January/

February  1999 , pp.  65  –  71 .  

    Hagan ,  M. T.  ,   H. B.   Demuth  ,   M.   Beale  ,  Neural Network Design ,  PWS Publishing Co. ,  Boston , 

 1996 .  

    Hand ,  D.  ,   H.   Mannila  ,   P.   Smyth  ,  Principles of Data Mining ,  The MIT Press ,  Cambridge, MA , 

 2001 .  

    Haykin ,  S.  ,  Neural Networks: A Comprehensive Foundation ,  Prentice Hall ,  Upper Saddle River, 

NJ ,  1999 .  

    Haykin ,  S.  ,  Neural Networks and Learning Machines ,  3rd  edition,  Pearson Education Co. ,  Upper 

Saddle River, NJ ,  2009 .  

    Heaton ,   J.  ,   Introduction  to  Neural  Networks  with  Java ,   Heaton  Research ,   Chesterﬁ eld,  MD ,  

2005 .  

    Holena ,   M.  ,   Neural  Networks  for  Extraction  of  Fuzzy  Logic  Rules  with Application  to  EEG 
Data ,  in   Adaptive  and  Natural  Computing  Algorithms ,    B.    Ribeiro  ,  ed.,  Part  IV,   Springer , 
 Secaucus, NJ ,  2005 , pp.  369  –  372 .  

   Integral Solutions ,  1999 ,  Clementine ,  http://www.isl.co.uk/clem.html .  
    Jang ,  J. R.  ,   C.   Sun  ,  Neuro - Fuzzy Modeling and Control ,  Proceedings of the IEEE , Vol.  83 , No. 

 3 ,  1995 , pp.  378  –  406 .  

    Jang ,   J. - S.  R.  ,    C. - T.    Sun  ,    E.    Mizutani  ,   Neuro - Fuzzy  and  Soft  Computing:  A  Computational 
Approach to Learning and Machine Intelligence ,  Prentice Hall, Inc. ,  Upper Saddle River, NJ , 
 1997 .  
 H.  , 

 Expanding  Self - Organizing  Map  for  Data 
Visualization  and  Cluster  Analysis ,   Information  Sciences ,  Vol.   163 ,  Nos.   1 – 3 ,   2004 , 
pp.  157  –  173 .  

 Leung  , 

 Wong  , 

 Shum  , 

    Jin , 

  M.  

  H.  

  K.  

BIBLIOGRAPHY 

519

    Kanevski ,  M.  ,  Classiﬁ cation of Interest Rate Curves Using Self - Organizing Maps , February  2008 , 

 http://arxiv.org/PS_cache/arxiv/pdf/0709/0709.4401v1.pdf .  

    Kanevski ,  M.  ,  Advanced Mapping of Environmental Data/Geostatistics, Machine Learning and 

Bayesian Maximum Entropy ,  EPFL Press ,  Lausanne ,  2008 .  

    Kantardzic ,  M.  ,   A. A.   Aly  ,   A. S.   Elmaghraby  ,  Visualization of Neural - Network Gaps Based on 
Error Analysis ,  IEEE Transactions on Neural Networks , Vol.  10 , No.  2 ,  1999 , pp.  419  –  426 .  
    Kaudel ,  A.  ,    M.    Last  ,    H.    Bunke  ,  eds.,   Data  Mining  and  Computational  Intelligence ,   Physica -

 Verlag ,  Heidelberg, Germany ,  2001 .  

    King ,   R.  D.  ,  et  al.,   Is  It  Better  to  Combine  Predictions?    Protein  Engineering ,  Vol.   13 ,  No.   1 , 

 2000 , pp.  15  –  19 .  

    Kukar ,   M.  ,   Quality  Assessment  of  Individual  Classiﬁ cations  in  Machine  Learning  and  Data 

Mining ,  Knowledge and Information Systems , Vol.  9 , No.  3 ,  2006 , pp.  364  –  384 .  

    Munakata ,  T.  ,   Fundamentals  of  the  New Artiﬁ cial  Intelligence:  Beyond  Traditional  Paradigm , 

 Springer ,  New York ,  1998 .  

    Pal ,  S. K.  ,   S.   Mitra  ,  Neuro - Fuzzy Pattern Recognition: Methods in Soft Computing ,  John Wiley 

& Sons, Inc. ,  New York ,  1999 .  

    Petlenkov ,   A.  ,  et  al.,   Application  of  Self - Organizing  Kohonen  Map  to  Detection  of  Surgeon 
Motions During Endoscopic Surgery ,   In   Proceedings of the 2008 IEEE World Congress on 
Computational Intelligence (WCCI2008)    , Hong Kong,  2008 .  

    Rocha ,  M.  ,   P.   Cortez  ,   J.   Neves  ,  Evolution of Neural Networks for Classiﬁ cation and Regression , 

 Neurocomputing , Vol.  70 , No.  16 – 18 ,  2007 , pp.  2809  –  2816 .  

    Smith ,  M.  ,  Neural Networks for Statistical Modeling ,  Van Nostrand Reinhold Publ. ,  New York , 

 1993 .  

    Taha ,  I. A.  ,   J.   Ghosh  ,  Symbolic Interpretation of Artiﬁ cial Neural Networks ,  IEEE Transactions 

on Knowledge and Data Engineering , Vol.  11 ,  1999 , pp.  448  –  463 .  

    Van Rooij ,  A. J. F.  ,   L. C.   Jain  ,   R. P.   Johnson  ,  Neural Network Training Using Genetic Algorithms , 

 World Scientiﬁ c Publ. Co. ,  Singapore ,  1996 .  

    Zurada ,  J. M.  ,  Introduction to Artiﬁ cial Neural Systems ,  West Publishing Co. ,  St. Paul, MN ,  1992 .   

  CHAPTER 8 

    Brown ,  G.  ,  Ensemble Learning , in  Encyclopedia of Machine Learning ,   C.   Sammut  ,   G. I.   Webb  , 

eds.,  Springer Press ,  Secaucus, NJ ,  2010 .  

    Cios ,  K. J.  ,   W.   Pedrycz  ,   R. W.   Swiniarski  ,   L. A.   Kurgan  ,  Data Mining: A Knowledge Discovery 

Approach ,  Springer ,  New York ,  2007 .  

    Dietterich ,  T. G.  ,  Ensemble Methods in Machine Learning , in  Lecture Notes in Computer Science 
on Multiple Classiﬁ er Systems ,   J.   Kittler  ,   F.   Roli  , eds., Vol.  1857 ,  Springer ,  Berlin/Heidelberg , 
 2000 .  

    Kuncheva ,  L. I.  ,  Combining Pattern Classiﬁ ers: Methods and Algorithms ,  Wiley ,  Hoboken, NJ , 

 2004 .  

     Ö zyer ,   T.  ,    R.    Alhajj  ,    K.    Barker  ,   Intrusion  Detection  by  Integrating  Boosting  Genetic  Fuzzy 
Classiﬁ er and Data Mining Criteria for Rule Pre - Screening ,  Journal of Network and Computer 
Applications , Vol.  30 , No.  1 ,  2007 , pp.  99  –  113 .  

    Roli ,   F.  ,   Mini  Tutorial  on  Multiple  Classiﬁ er  Systems ,   School  on  the  Analysis  of  Patterns , 

Cagliari, Italy,  2009 .  

    Settles ,   B.  ,   Active  Learning  Literature  Survey ,   Computer  Sciences  Technical  Report  1648 , 

University of Wisconsin – Madison, January  2010 .  

520 

BIBLIOGRAPHY

    Sewell ,   M.  ,   Ensemble  Learning ,  University  College  London,  August   2008 .   http://machine - 

learning.martinsewell.com/ensembles/ensemble - learning.pdf .  

    Stamatatos ,   E.  ,    G.    Widmar  ,   Automatic  Identiﬁ cation  of  Music  Performers  with  Learning 

Ensembles ,  Artiﬁ cial Intelligence , Vol.  165 , No.  1 ,  2005 , pp.  37  –  56 .  

    Zhong - Hui ,   W.  ,    W.    Li  ,    Y.    Cai  ,    X.    Xu  ,   An  Empirical  Comparison  of  Ensemble  Classiﬁ cation 
Algorithms with Support Vector Machines ,  Proceedings of the Third International Conference 
on Machine Laming and Cybernetics , Shanghai, August  2004 .   

  CHAPTER 9 

    Boriah ,   S.  ,   V.    Chandola  ,   V.    Kumar  ,   Similarity  Measures  for  Categorical  Data: A  Comparative 

Evaluation ,  SIAM  Conference  ,  2008 , pp.  243  –  254 .  

    Bow ,  S.  ,  Pattern Recognition and Image Preprocessing ,  Marcel Dekker ,  New York ,  1992 .  
    Chen ,   C.  H.  ,    L.  F.    Pau  ,    P.  S.  P.   Wang  ,   Handbook  of  Pattern  Recognition   &   Computer  Vision , 

 World Scientiﬁ c Publ. Co. ,  Singapore ,  1993 .  

    Dzeroski ,  S.  ,   N.   Lavrac  , eds.,  Relational Data Mining ,  Springer ,  Berlin ,  2001 .  
    Gose ,  E.  ,   R.   Johnsonbaugh  ,   S.   Jost  ,  Pattern Recognition and Image Analysis ,  Prentice Hall, Inc. , 

 Upper Saddle River, NJ ,  1996 .  

    Han ,   J.  ,    M.    Kamber  ,   Data  Mining:  Concepts  and  Techniques ,   2nd   edition,   Elsevier  Inc .,   San 

Francisco, CA ,  2006 .  

    Han ,  J.  , et al.,  Spatial Clustering Methods in Data Mining: A Survey , in  Geographic Data Mining 
and Knowledge Discovery ,   H.   Miller  ,   J.   Han  , eds.,  Taylor  &  Francis Publ. Inc .,  London ,  2001 .  
    Hand ,  D.  ,   H.   Mannila  ,   P.   Smyth  ,  Principles of Data Mining ,  The MIT Press ,  Cambridge, MA , 

 2001 .  

    Jain ,  A. K.  ,  Data Clustering: 50 Years Beyond K - Means ,  Pattern Recognition Letters , Vol.  31 , 

No.  8 ,  2010 , pp.  651  –  666 .  

    Jain ,  A. K.  ,   M. N.   Murty  ,   P. J.   Flynn  ,  Data Clustering: A Review ,  ACM Computing Surveys , Vol. 

 31 , No.  3 ,  1999 , pp.  264  –  323 .  

    Jin ,  H.  ,   H.   Shum  ,   K.   Leung  ,   M.   Wong  ,  Expanding Self - Organizing Map for Data Visualization 

and Cluster Analysis ,  Information Sciences , Vol.  163 , Nos.  1 – 3 ,  2004 , pp.  157  –  173 .  

    Karypis ,  G.  ,   E.   Han  ,   V.   Kumar  ,  Chameleon: Hierarchical Clustering Using Dynamic Modeling , 

 Computer , Vol.  32 , No.  8 ,  1999 , pp.  68  –  75 .  

    Lee ,  I.  ,   J.   Yang  ,  Common Clustering Algorithms ,  Comprehensive Chemometrics ,  2009 , Chapter 

2.27, pp.  577  –  618 .  

    Moore ,  S. K.  ,  Understanding the Human Genoma ,  Spectrum , Vol.  37 , No.  11 ,  2000 , pp.  33  –  35 .  
    Munakata ,  T.  ,   Fundamentals  of  the  New Artiﬁ cial  Intelligence:  Beyond  Traditional  Paradigm , 

 Springer ,  New York ,  1998 .  

    Norusis ,  M. J.  ,  SPSS 7.5: Guide to Data Analysis ,  Prentice - Hall, Inc. ,  Upper Saddle River, NJ , 

 1997 .  

    Poole ,  D.  ,   A.   Mackworth  ,   R.   Goebel  ,  Computational Intelligence: A Logical Approach ,  Oxford 

University Press, Inc. ,  New York ,  1998 .  

    Tan ,   P. - N.  ,    M.    Steinbach  ,    V.    Kumar  ,   Introduction  to  Data  Mining ,   Pearson  Addison - Wesley , 

 Boston ,  2006 .  

    Westphal ,   C.  ,    T.    Blaxton  ,   Data  Mining  Solutions:  Methods  and  Tools  for  Solving  Real - World 

Problems ,  John Wiley & Sons, Inc. ,  New York ,  1998 .  

    Witten ,   I.  H.  ,    E.    Frank  ,   Data  Mining:  Practical  Machine  Learning  Tools  and  Techniques  with 

Java Implementations ,  Morgan Kaufmannn Publ., Inc. ,  New York ,  1999 .   

BIBLIOGRAPHY 

  CHAPTER 10 

521

    Adamo ,   J.  ,   Data  Mining  for  Association  Rules  and  Sequential  Patterns ,   Springer ,   New York , 

 2001 .  

    Beyer ,  K.  ,   R.   Ramakrishnan  ,  Bottom - Up Computation of Sparse and Iceberg Cubes ,  Proceedings 
of 1999 ACM - SIGMOD Int. Conf. on Management of Data (SIGMOD ’ 99) , Philadelphia, PA, 
June,  1999 , pp.  359  –  370 .  

    Bollacker ,   K.  D.  ,    S.    Lawrence  ,    C.  L.    Giles  ,   Discovering  Relevant  Scientiﬁ c  Literature  on  the 

Web ,  IEEE Intelligent Systems , March/April  2000 , pp.  42  –  47 .  

    Chakrabarti ,  S.  ,  Data Mining for Hypertext: A Tutorial Survey ,  SIGKDD Explorations , Vol.  1 , 

No.  2 ,  2000 , pp.  1  –  11 .  

    Chakrabarti ,   S.  ,  et  al.,   Mining  the  Web ’ s  Link  Structure ,   Computer ,  Vol.   32 ,  No.   8 ,   1999 , 

pp.  60  –  67 .  

    Chang ,   G.  ,    M.  J.    Haeley  ,    J. A.  M.    McHugh  ,    J.  T.  L.    Wang  ,   Mining  the  World  Wide  Web:  An 

Information Search Approach ,  Kluwer Academic Publishers ,  Boston, MA ,  2001 .  

    Chen ,  M.  ,   J.   Park  ,   P. S.   Yu  ,  Efﬁ cient Data Mining for Path Traversal Patterns ,  IEEE Transactions 

on Knowledge and Data Engineering , Vol.  10 , No.  2 ,  1998 , pp.  209  –  214 .  

    Cios ,  K. J.  ,   W.   Pedrycz  ,   R. W.   Swiniarski  ,   L. A.   Kurgan  ,  Data Mining: A Knowledge Discovery 

Approach ,  Springer ,  New York ,  2007 .  

    Cromp ,   R.  F.  ,    W.  J.    Campbell  ,   Data  Mining  of  Multidimensional  Remotely  Sansad  Images , 

 Proceedings of the CIKM ’ 93 Conference , Washington, DC,  1993 , pp.  471  –  480 .  

    Darlington ,  J.  ,   Y.   Guo  ,   J.   Sutiwaraphun  ,   H. W.   To  ,  Parallel Induction Algorithms for Data Mining , 
  Proceedings of the Third International Conference on Knowledge Discovery and Data Mining  
KDD ’ 97 ,  1997 , pp.  35  –  43 .  

    Fayyad ,   U.  M.  ,    G.    Piatetsky - Shapiro  ,    P.    Smith  ,    R.    Uthurusamy  ,  eds.,   Advances  in  Knowledge 

Discovery and Data Mining ,  AAAI Press/MIT Press ,  Cambridge ,  1996 .  

    Fukada ,   T.  ,    Y.    Morimoto  ,    S.    Morishita  ,    T.    Tokuyama  ,   Data  Mining  Using  Two - Dimensional 
Optimized  Association  Rules:  Scheme,  Algorithms,  and  Visualization ,   Proceedings  of 
SIGMOD ’ 96 Conference , Montreal,  1996 , pp.  13  –  23 .  

    Han ,  J.  ,  Towards On - Line Analytical Mining in Large Databases ,  SIGMOD Record , Vol.  27 , No. 

 1 ,  1998 , pp.  97  –  107 .  

    Han ,   J.  ,    M.    Kamber  ,   Data  Mining:  Concepts  and  Techniques ,   2nd   edition,   Elsevier  Inc .,   San 

Francisco, CA ,  2006 .  

    Han ,   J.  ,    J.    Pei  ,   Mining  Frequent  Patterns  by  Pattern - Growth:  Methodology  and  Implications , 

 SIGKDD Explorations , Vol.  2 , No.  2 ,  2000 , pp.  14  –  20 .  

    Han ,  E.  ,   G.   Karypis  ,   V.   Kumar  ,  Scalable Parallel Data Mining for Association Rules ,  Proceedings 

of the SIGMOD ’ 97 Conference , Tucson,  1997a , pp.  277  –  288 .  

    Han ,   J.  ,    K.    Koperski  ,    N.    Stefanovic  ,   GeoMiner: A  System  Prototype  for  Spatial  Data  Mining , 

 Proceedings of the SIGMOD ’ 97 Conference , Arizona,  1997b , pp.  553  –  556 .  

    Han ,  J.  ,   S.   Nishio  ,   H.   Kawano  ,   W.   Wang  ,  Generalization - Based Data Mining in Object - Oriented 
Databases  Using  an  Object  Cube  Model ,   Proceedings  of  the  CASCON ’ 97  Conference , 
Toronto, November  1997c , pp.  221  –  252 .  

    Hedberg ,   S.  R.  ,   Data  Mining  Takes  Off  at  the  Speed  of  the  Web ,   IEEE  Intelligent  Systems , 

November/December  1999 , pp.  35  –  37 .  

    Hilderman ,   R.  J.  ,    H.  J.    Hamilton  ,   Knowledge  Discovery  and  Measures  of  Interest ,   Kluwer 

Academic Publishers ,  Boston, MA ,  2001 .  

   Integral Solutions ,  1999 ,  Clementine ,  http://www.isl.co.uk/clem.html .  

522 

BIBLIOGRAPHY

    Kasif ,   S.  ,   Datascope:  Mining  Biological  Sequences ,   IEEE  Intelligent  Systems ,  November/

December  1999 , pp.  38  –  43 .  

    Kosala ,  R.  ,   H.   Blockeel  ,  Web Mining Research: A Survey ,  SIGKDD Explorations , Vol.  2 , No.  1 , 

 2000 , pp.  1  –  15 .  

    Kowalski ,   G.  J.  ,    M.  T.    Maybury  ,   Information  Storage  and  Retrieval  Systems:  Theory  and 

Implementation ,  Kluwer Academic Publishers ,  Boston ,  2000 .  

    Liu ,  B.  ,   W.   Hsu  ,   L.   Mun  ,   H.   Lee  ,  Finding Interesting Patterns Using User Expectations ,  IEEE 
Transactions on Knowledge and Data Engineering , Vol.  11 , No.  6 ,  1999 , pp.  817  –  825 .  

    McCarthy ,  J.  ,  Phenomenal Data Mining ,  CACM , Vol.  43 , No.  8 ,  2000 , pp.  75  –  79 .  
    Moore ,  S. K.  ,  Understanding the Human Genome ,  Spectrum , Vol.  37 , No.  11 ,  2000 , pp.  33  –  35 .  
    Mulvenna ,   M.  D.  ,  et  al.,  eds.,   Personalization  on  the  Net  Using Web  Mining, A  Collection  of 

Articles ,  CACM , Vol.  43 , No.  8 ,  2000 .  

    Ng ,   R.  T.  ,    L.  V.  S.    Lakshmanan  ,    J.    Han  ,    A.    Pang  ,   Exploratory  Mining  and  Optimization  of 
Constrained  Association  Queries ,  Technical  Report,  University  of  British  Columbia  and 
Concordia University, October  1997 .  

    Park ,  J. S.  ,   M.   Chen  ,   P. S.   Yu  ,  Efﬁ cient Parallel Data Mining for Association Rules ,  Proceedings 

of the CIKM ’ 95 Conference , Baltimore, MD,  1995 , pp.  31  –  36 .  

    Pinto ,   H.  ,    J.    Han  ,    J.    Pei  ,    K.    Wang  ,    Q.    Chen  ,    U.    Dayal  ,   Multi - Dimensional  Sequential  Pattern 
Mining ,   Proc.  2001  Int.  Conf.  on  Information  and  Knowledge  Management  (CIKM ’ 01) , 
Atlanta, GA, November  2001 .  

    Salzberg ,   S.  L.  ,   Gene  Discovery  in  DNA  Sequences ,   IEEE  Intelligent  Systems ,  November/

December  1999 , pp.  44  –  48 .  

    Spiliopoulou ,  M.  ,  The Laborious Way from Data Mining to Web Log Mining ,  Computer Systems 

in Science  &  Engineering , Vol.  2 ,  1999 , pp.  113  –  125 .  

    Thuraisingham ,  B.  ,  Managing and Mining Multimedia Databases ,  CRC Press LLC ,  Boca Raton, 

FL ,  2001 .  

    Witten ,   I.  H.  ,    E.    Frank  ,   Data  Mining:  Practical  Machine  Learning  Tools  and  Techniques  with 

Java Implementations ,  Morgan Kaufmannn Publ., Inc. ,  New York ,  1999 .  

    Wu ,  X.  , et al.,  Top 10 Algorithms in Data Mining ,  Knowledge and Information Systems , Vol.  14 , 

 2008 , pp.  1  –  37 .  

    Yang ,  Q.  ,   X.   Wu  ,  10 Challenging Problems in Data Mining Research ,  International Journal of 

Information Technology Decision Making , Vol.  5 , No.  4 ,  2006 , pp.  597  –  604 .   

  CHAPTER 11 

    Akerkar ,   R.  ,    P.    Lingras  ,   Building  an  Intelligent  Web:  Theory  and  Practice ,   Jones  and  Bartlett 

Publishers ,  Sudbury, MA ,  2008 .  

    Chang ,   G.  ,    M.  J.    Haeley  ,    J. A.  M.    McHugh  ,    J.  T.  L.    Wang  ,   Mining  the  World  Wide  Web:  An 

Information Search Approach ,  Kluwer Academic Publishers ,  Boston, MA ,  2001 .  

    Fan ,  F.  ,   L.   Wallace  ,   S.   Rich  ,   Z.   Zhang  ,  Tapping the Power of Text Mining ,  Communications of 

ACM , Vol.  49 , No.  9 ,  2006 , pp.  76  –  82 .  

    Garcia ,   E.  ,   SVD  and  LSI  Tutorial  4:  Latent  Semantic  Indexing  (LSI)  How - to  Calculations ,  Mi 
Islita,  2006 ,  http://www.miislita.com/information - retrieval - tutorial/svd - lsi - tutorial - 4 - lsi - how -
 to - calculations.html .  

BIBLIOGRAPHY 

523

    Han ,  J.  ,   M.   Kamber  ,  Data Mining: Concepts and Techniques ,  2nd  edition,  San Francisco ,  Morgan 

Kaufmann ,  2006 .  

    Jackson ,  P.  ,   I.   Moulinier  ,  Natural Language Processing for Online Applications: Text Retrieval, 

Extraction and Categorization ,  John Benjamins Publ. Co. ,  Amsterdam ,  2007 .  

    Langville ,  A. N.  ,   C. D.   Meyer  ,  Google ’ s PageRank and Beyond: The Science of Search Engine 

Rankings ,  Princeton University Press ,  Princeton ,  2006 .  

    Liu ,  B.  ,  Web Data Mining: Exploring Hyperlinks, Contents and Usage Data ,  Springer ,  Heidelberg , 

 2007 .  

    Mulvenna ,  M. D.  , et al., eds.,  Personalization on the Net Using Web Mining ,  CACM , Vol.  43 , 

No.  8 ,  2000 .  

    Nisbet ,  R.  ,   J.   Elder  ,   G.   Miner  ,  Advanced Algorithms for Data Mining , in  Handbook of Statistical 
Analysis  and  Data  Mining  Applications ,    R.    Nisbet  ,    J.    Elder  ,    J.  F.    Elder  ,    G.    Miner  ,  eds., 
 Academic Press ,  Amsterdam, NL ,  2009 , pp.  151  –  172 .  

    Sirmakessis ,  S.  ,  Text Mining and Its Applications ,  Springer - Verlag ,  Berlin ,  2003 .  
    Zhang ,  Q.  ,   R. S.   Segall  ,  Review of Data, Text and Web Mining Software ,  Kybernetes , Vol.  39 , 

No.  4 ,  2010 , pp.  625  –  655 .  

    Zhang ,  Y.  , et al.,  Computational Web Intelligence: Intelligent Technology for Web Applications , 

 World Scientiﬁ c Publ. Co. ,  Singapore ,  2004 .  

    Zhang ,  X.  ,   J.   Edwards  ,   J.   Harding  ,  Personalised Online Sales Using Web Usage Data Mining , 

 Computers in Industry , Vol.  58 , No.  8 – 9 ,  2007 , pp.  772  –  782 .   

  CHAPTER 12 

    Antunes ,   C.  ,   A.    Oliveira  ,   Temporal  Data  Mining: An  Overview ,   Proceedings  of  Workshop  on 

Temporal Data Mining (KDD'01) .  2001 , pp.  1  –  13 .  

    Bar - Or ,   A.  ,    R.    Wolff  ,    A.    Schuster  ,    D.    Keren  ,   Decision  Tree  Induction  in  High  Dimensional, 
Hierarchically  Distributed  Databases ,   Proceedings  of  2005  SIAM  International  Conference 
on Data Mining (SDM ’ 05) , Newport Beach, CA, April  2005 .  

    Basak ,   J.  ,    R.    Kothari  ,   A  Classiﬁ cation  Paradigm  for  Distributed  Vertically  Partitioned  Data , 

 Neural Computation , Vol.  16 , No.  7 ,  2004 , pp.  1525  –  1544 .  

    Bhaduri ,  K.  ,   R.   Wolff  ,   C.   Giannella  ,   H.   Kargupta  ,  Distributed Decision - Tree Induction in Peer -
 to - Peer Systems ,  Statistical Analysis and Data Mining , Vol.  1 , No.  2 ,  2008 , pp.  85  –  103 .  

    Bishop ,  C. M.  ,  Pattern Recognition and Machine Learning ,  Springer ,  New York ,  2006 .  
    Branch ,  J.  ,   B.   Szymanski  ,   R.   Wolff  ,   C.   Gianella  ,   H.   Kargupta  ,  In - network Outlier Detection in 
Wireless Sensor Networks ,  Proceedings of the 26th International Conference on Distributed 
Computing Systems (ICDCS) , July  2006 , pp.  102  –  111 .  

    Cannataro ,   M.  ,    D.    Talia  ,   The  Knowledge  Grid ,   Communications  of  the  ACM ,  Vol.   46 ,  No.   1 , 

 2003 , pp.  89  –  93 .  

    Cios ,  K. J.  ,   W.   Pedrycz  ,   R. W.   Swiniarski  ,   L. A.   Kurgan  ,  Data Mining: A Knowledge Discovery 

Approach ,  Springer ,  New York ,  2007 .  

    Congiusta ,  A.  ,   D.   Talia  ,   P.   Trunﬁ o  ,  Service - Oriented Middleware for Distributed Data Mining on 
the Grid ,  Journal of Parallel and Distributed Computing , Vol.  68 , No.  1 ,  2008 , pp.  3  –  15 .  
    Copp ,  C.  ,  Data Mining and Knowledge Discovery Techniques ,  Defence Today , NCW 101,  2008 , 

 http://www.ausairpower.net/NCW - 101 - 17.pdf .  

    Datta ,  S.  ,   K.   Bhaduri  ,   C.   Giannella  ,   R.   Wolff  ,   H.   Kargupta  ,  Distributed Data Mining in Peer - to -

 Peer Networks ,  IEEE Internet Computing , Vol.  10 , No.  4 ,  2006 , pp.  18  –  26 .  

524 

BIBLIOGRAPHY

    Ester ,  M.  ,   H. - P.   Kriegel  ,   J.   Sander  ,  Spatial Data Mining: A Database Approach ,  Proceedings of 

5th International Symposium on Advances in Spatial Databases ,  1997 , pp.  47  –  66 .  

    Faloutsos ,   C.  ,   Mining  Time  Series  Data ,   Tutorial  ICML  2003 ,  Washington,  DC,  August  

2003 .  

    Fuchs ,  E.  ,   T.   Gruber  ,   J.   Nitschke  ,   B.   Sick  ,  On - Line Motif Detection in Time Series with Swift 

Motif ,  Pattern Recognition , Vol.  42 ,  2009 , pp.  3015  –  3031 .  

    Gorodetsky ,   V.  ,    O.    Karsaeyv  ,    V.    Samoilov  ,   Software  Tool  for  Agent  Based  Distributed  Data 
Mining ,  International Conference on Integration of Knowledge Intensive Multi - Agent Systems 
(KIMAS) , Boston, MA, October  2003 .  

    Guo ,  H.  ,   W.   Hsu  ,  A Survey of Algorithms for Real - Time Bayesian Network Inference ,  AAAI - 02/

KDD - 02/UAI - 02 Workshop on Real - Time Decision Support  and  Diagnosis ,  2002 .  

    Hammouda ,  K.  ,   M.   Kamel  ,  HP2PC: Scalable Hierarchically - Distributed Peer - to - Peer Clustering , 
 Proceedings  of  the  2007  SIAM  International  Conference  on  Data  Mining  (SDM   ’ 07) , 
Philadelphia, PA,  2007 .  

    Januzaj ,   E.  ,  et  al.,   Towards  Effective  and  Efﬁ cient  Distributed  Clustering ,   Proceedings  of  the 

ICDM 2003 Conference, Florida ,  2003 .  

    Keogh ,  E.  ,  Data Mining and Machine Learning in Time Series Databases ,  Tutorial ECML/PKDD 

2003 , Cavtat - Dubrovnik (Croatia), September  2003 .  

    Koperski ,  K.  , et al.,  Spatial Data Mining: Progress and Challenges ,  SIGMOD ’ 96 Workshop on 

Research Issues on Data Mining and Knowledge Discovery,   1996 .  

    Kotecha ,  J. H.  ,   V.   Ramachandran  ,   A. M.   Sayeed  ,  Distributed Multitarget Classiﬁ cation in Wireless 
Sensor Networks,   IEEE Journal of Selected Areas in Communications , Vol.  23 , No.  4 ,  2005 , 
pp.  703  –  713 .  

    Kriegel ,   H.  P.  ,  et  al.,   Future  Trends  in  Data  Mining ,   Data  Mining  and  Knowledge  Discovery , 

Vol.  15 ,  2007 , pp.  87  –  97 .  

    Kumar ,  A.  ,    M.    Kantardzic  ,    S.    Madden  ,   Guest  Editors,  Introduction:  Distributed  Data  Mining –
 Framework  and  Implementations ,   IEEE  Internet  Computing ,  Vol.   10 ,  No.   4 ,   2006 ,  pp. 
 15  –  17 .  

    Lavrac ,  N.  , et al.,  Introduction: Lessons Learned from Data Mining Applications and Collaborative 

Problem Solving ,  Machine Learning , Vol.  57 ,  2004 , pp.  13  –  34 .  

    Laxman ,   S.  ,    P.  S.    Sastry  ,  A  Survey  of Temporal  Data  Mining ,   Sadhana , Vol.   31 ,  No.   2 ,   2006 , 

pp.  173  –  198 .  

    Li ,  T.  ,   S.   Zhu  ,   M.   Ogihara  ,  Algorithms for Clustering High Dimensional and Distributed Data , 

 Intelligent Data Analysis Journal , Vol.  7 , No.  4 ,  2003 .  

    Li ,   S.  ,    T.    Wu  ,    W.  M.    Pottenger  ,   Distributed  Higher  Order  Association  Rule  Mining  Using 
Information  Extracted  from  Textual  Data ,   SIGKDD  Exploration ,  Vol.   7 ,  No.   1 ,   2005 ,  pp. 
 26  –  35 .  

    Liu ,   K.  ,    H.    Kargupta  ,    J.    Ryan  ,   Random  Projection - Based  Multiplicative  Data  Perturbation  for 
Privacy  Preserving  Distributed  Data  Mining ,   IEEE  Transactions  on  Knowledge  and  Data 
Engineering (TKDE) , Vol.  18 , No.  1 ,  2006 , pp.  92  –  106 .  

    Miller ,  H. J.  ,  Geographic Data Mining and Knowledge Discovery , in  Handbook of Geographic 
Information Science     ,   J.   Wilson  ,   A.   Stewart Fotheringham  , eds.,  Blackwell Publishing ,  Malden, 
MA ,  2008 .  

    Nisbet ,  R.  ,   J.   Elder  ,   G.   Miner  ,  Advanced Algorithms for Data Mining , in  Handbook of Statistical 
Analysis  and  Data  Mining  Applications ,    R.    Nisbet  ,    J.    Elder  ,    J.  F.    Elder  ,    G.    Miner  ,  eds., 
 Academic Press ,  Amsterdam, NL ,  2009 , pp.  151  –  172 .  

    Pearl ,  J.  ,  Causality ,  Cambridge University Press ,  New York ,  2000 .  
    Pearl ,   J.  ,   Statistics  and  Causal  Inference:  A  Review ,   Sociedad  de  Estad í stica  e  Investigaci ó n 

Operativa Test , Vol.  12 , No.  2 ,  2003 , pp.  281  –  345 .  

BIBLIOGRAPHY 

525

    Roddick ,   J.  F.  ,    M.    Spiliopoulou  ,  A  Survey  of Temporal  Knowledge  Discovery  Paradigms  and 
Methods ,  IEEE Transactions on Knowledge and Data Engineering , Vol.  14 , No.  4 ,  2002 .  
    Russell ,  S. J.  ,   P.   Norvig  ,  Artiﬁ cial Intelligence ,  Pearson Education ,  Upper Saddle River, NJ ,  2003 .  
    Shekhar ,   S.  ,    S.    Chawla  ,   Introduction  to  Spatial  Data  Mining,  in   Spatial  Databases:  A  Tour  , 

 Prentice Hall ,  Upper Saddle River, NJ ,  2003 .  

    Shekhar ,  S.  ,   P.   Zhang  ,   Y.   Huang  ,   R.   Vatsavai  ,  Trends in Spatial Data Mining , in  Data Mining: 
Next  Generation  Challenges  and  Future  Directions ,    H.    Kargupta  ,   A.    Joshi  ,    K.    Sivakumar  , 
  Y.   Yesha  , eds.,  AAAI/MIT Press ,  Menlo Park, CA ,  2004 .  

    Wasserman ,   S.  ,    K.    Faust  ,   Social  Network  Analysis:  Methods  and  Applications ,   Cambridge 

University Press ,  New York ,  1994 .  

    Wu ,   Q.  ,  et  al.,   On  Computing  Mobile  Agent  Routes  for  Data  Fusion  in  Distributed  Sensor 
Networks ,   IEEE  Transactions  on  Knowledge  and  Data  Engineering ,  Vol.   16 ,   2004 ,  pp. 
 740  –  753 .  

    Xu ,  X.  ,   N.   Yuruk  ,   Z.   Feng  ,   T.   Schweiger  ,  SCAN: A Structural Clustering Algorithm for Networks , 
 Proceedings of the 13th International Conference on Knowledge Discovery and Data Mining 
(KDD  ’ 07) , New York NY,  2007 , pp.  824  –  833 .  

    Yang ,  Q.  ,   X.   Wu  ,  10 Challenging Problems in Data Mining Research ,  International Journal of 

Information Technology and Decision Making , Vol.  5 , No.  4 ,  2006 , pp.  597  –  604 .  

    Yu ,  H.  ,   E. - C.   Chang  ,  Distributed Multivariate Regression Based on Inﬂ uential Observations ,  The 
Ninth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining , 
Washington, DC, August  2003 .  

    Zaki ,   M.  ,   Y.    Pan  ,   Introduction:  Recent  Development  in  Parallel  and  Distributed  Data  Mining , 

 Distributed and Parallel Databases , Vol.  11 , No.  2 ,  2002 .   

  CHAPTER 13 

    Cox ,   E.  ,   Fuzzy  Modeling  and  Genetic  Algorithms  for  Data  Mining  and  Exploration ,   Morgan 

Kaufmann ,  San Francisco, CA ,  2005 .  

    Dehuri ,  S.  , et al.,  Genetic Algorithms for Multi - Criterion Classiﬁ cation and Clustering in Data 
Mining ,   International  Journal  of  Computing   &   Information  Sciences ,  Vol.   4 ,  No.   3 ,   2006 , 
pp.  143  –  154 .  

    Fogel ,   D.  ,   An  Introduction  to  Simulated  Evolutionary  Optimization ,   IEEE  Transactions  on 

Neural Networks , Vol.  5 , No.  1 ,  1994 , pp.  3  –  14 .  

    Fogel ,  D. B.  , ed.,  Evolutionary Computation ,  IEEE Press ,  New York ,  1998 .  
    Fogel ,  D. B.  ,  Evolutionary Computing ,  Spectrum , Vol.  37 , No.  2 ,  2000 , pp.  26  –  32 .  
    Freitas ,  A.  ,  A Survey of Evolutionary Algorithms for Data Mining and Knowledge Discovery , in 
 Advances in Evolutionary Computing: Theory and Applications ,   A.   Ghosh  ,   S.   Tsutsui  , eds., 
 Springer Verlag ,  New York ,  2003 .  

    Goldenberg ,  D. E.  ,  Genetic Algorithms in Search, Optimization and Machine Learning ,  Addison 

Wesley ,  Reading, MA ,  1989 .  

    Hruschka ,  E.  ,   R.   Campello  ,   A.   Freitas  ,   A.   Carvalho  ,  A Survey of Evolutionary Algorithms for 
Clustering ,  IEEE Transactions on Systems, Man, and Cybernetics, Part C: Applications and 
Reviews , Vol.  39 , No.  2 ,  2009 , pp.  133  –  155 .  

    Kaudel ,  A.  ,    M.    Last  ,    H.    Bunke  ,  eds.,   Data  Mining  and  Computational  Intelligence ,   Physica -

 Verlag ,  Heidelberg, Germany ,  2001 .  

526 

BIBLIOGRAPHY

    Michalewicz ,  Z.  ,  Genetic Algorithms  +  Data Structures  =  Evolution Programs ,  Springer ,  Berlin , 

 1999 .  

    Munakata ,  T.  ,   Fundamentals  of  the  New Artiﬁ cial  Intelligence:  Beyond  Traditional  Paradigm , 

 Springer ,  New York ,  1998 .  

    Navet ,   N.  ,    S.    Chen  ,   Financial  Data  Mining  with  Genetic  Programming:  A  Survey  and  Look 
Forward ,  The 56th Session of the International Statistical Institute (ISI2007) , Lisbon, August 
 2007 .  

    Salleb - Aouissi ,  A.  ,   C.   Christel Vrain  ,   C.   Nortet  ,  QuantMiner: A Genetic Algorithm for Mining 

Quantitative Association Rules ,  Proceedings of the IJCAI - 07 ,  2007 , pp.  1035  –  1040 .  

    Shah ,  S. C.  ,   A.   Kusiak  ,  Data Mining and Genetic Algorithm Based Gene/SNP Selection ,  Artiﬁ cial 

Intelligence in Medicine , Vol.  31 , No.  3 ,  2004 , pp.  183  –  196 .  

    Van Rooij ,  A. J. F.  ,   L. C.   Jain  ,   R. P.   Johnson  ,  Neural Network Training Using Genetic Algorithms , 

 World Scientiﬁ c Publ. Co. ,  Singapore ,  1996 .   

  CHAPTER 14 

    Chen ,  S.  ,  A Fuzzy Reasoning Approach for Rule - Based Systems Based on Fuzzy Logic ,  IEEE 

Transactions on System, Man, and Cybernetics , Vol.  26 , No.  5 ,  1996 , pp.  769  –  778 .  

    Chen ,   C.  H.  ,    L.  F.    Pau  ,    P.  S.  P.   Wang  ,   Handbook  of  Pattern  Recognition   &   Computer  Vision , 

 World Scientiﬁ c Publ. Co. ,  Singapore ,  1993 .  

    Chen ,  Y.  ,   T.   Wang  ,   B.   Wang  ,   Z.   Li  ,  A Survey of Fuzzy Decision Tree Classiﬁ er ,  Fuzzy Information 

and Engineering , Vol.  1 , No.  2 ,  2009 , pp.  149  –  159 .  

    Cox ,   E.  ,   Fuzzy  Modeling  and  Genetic  Algorithms  for  Data  Mining  and  Exploration ,   Morgan 

Kaufmann ,  San Francisco, CA ,  2005 .  

    H ü llermeier ,   E.  ,   Fuzzy  Sets  in  Machine  Learning  and  Data  Mining ,   Applied  Soft  Computing, 

 January  2008 .  

    Jang ,  J. R.  ,   C.   Sun  ,  Neuro - Fuzzy Modeling and Control ,  Proceedings of the IEEE , Vol.  83 , No. 

 3 ,  1995 , pp.  378  –  406 .  

    Jang ,  J.  ,   C.   Sun  ,   E.   Mizutani  ,  Neuro - Fuzzy and Soft Computing: A Computational Approach to 
Learning and Machine Intelligence ,  Prentice Hall, Inc. ,  Upper Saddle River, NJ ,  1997 .  
    Kaudel ,  A.  ,    M.    Last  ,    H.    Bunke  ,  eds.,   Data  Mining  and  Computational  Intelligence ,   Physica -

 Verlag ,  Heidelberg, Germany ,  2001 .  

    Klir ,  G. J.  ,   B.   Yuan  ,  Fuzzy Sets and Fuzzy Logic: Theory and Applications ,  Prentice Hall, Inc. , 

 Upper Saddle River, NJ ,  1995 .  

    Koczy ,  L. T.  ,   K.   Hirota  ,  Size Reduction by Interpolation in Fuzzy Rule Bases ,  IEEE Transactions 

on System, Man, and Cybernetics , Vol.  27 , No.  1 ,  1997 , pp.  14  –  25 .  

    Kruse ,  R.  ,   A.   Klose  ,  Recent Advances in Exploratory Data Analysis with Neuro - Fuzzy Methods , 

 Soft Computing , Vol.  8 , No.  6 ,  2004 , pp.  381  –  382 .  

    Laurent ,   A.  ,    M.    Lesot  ,  eds.,   Scalable  Fuzzy  Algorithms  for  Data  Management  and  Analysis, 

Methods and Design ,  IGI Global ,  Hershey, PA ,  2010 .  

    Lee ,   E.  S.  ,    H.    Shih  ,   Fuzzy  and  Multi - level  Decision  Making:  An  Interactive  Computational 

Approach ,  Springer ,  London ,  2001 .  

    Li ,  H. X.  ,   V. C.   Yen  ,  Fuzzy Sets and Fuzzy Decision - Making ,  CRC Press, Inc. ,  Boca Raton, FL ,  1995 .  
    Lin ,  T. Y.  ,   N.   Cerone  ,  Rough Sets and Data Mining ,  Kluwer Academic Publishers, Inc. ,  Boston , 

 1997 .  

BIBLIOGRAPHY 

527

    Maimon ,  O.  ,   M.   Last  ,  Knowledge Discovery and Data Mining: The Info - Fuzzy Network (IFN) 

Methodology ,  Kluwer Academic Publishers ,  Boston, MA ,  2001 .  

    Mendel ,  J.  ,  Fuzzy Logic Systems for Engineering: A Tutorial ,  Proceedings of the IEEE , Vol.  83 , 

No.  3 ,  1995 , pp.  345  –  377 .  

    Miyamoto ,   S.  ,   Fuzzy  Sets  in  Information  Retrieval  and  Cluster  Analysis ,   Kluwer  Academic 

Publishers ,  Dordrecht ,  1990 .  

    Munakata ,  T.  ,   Fundamentals  of  the  New Artiﬁ cial  Intelligence:  Beyond  Traditional  Paradigm , 

 Springer ,  New York ,  1998 .  

     Ö zyer ,   T.  ,    R.    Alhajj  ,    K.    Barker  ,   Intrusion  Detection  by  Integrating  Boosting  Genetic  Fuzzy 
Classiﬁ er and Data Mining Criteria for Rule Pre - Screening ,  Journal of Network and Computer 
Applications , Vol.  30 , No.  1 ,  2007 , pp.  99  –  113 .  

    Pal ,  S. K.  ,   S.   Mitra  ,  Neuro - Fuzzy Pattern Recognition: Methods in Soft Computing ,  John Wiley 

& Sons, Inc. ,  New York ,  1999 .  

    Pedrycz ,  W.  ,   F.   Gomide  ,  An Introduction to Fuzzy Sets: Analysis and Design ,  The MIT Press , 

 Cambridge ,  1998 .  

    Pedrycz ,   W.  ,    J.    Waletzky  ,   Fuzzy  Clustering  with  Partial  Supervision ,   IEEE  Transactions  on 

System, Man, and Cybernetics , Vol.  27 , No.  5 ,  1997 , pp.  787  –  795 .  

    Yager ,  R. R.  ,  Targeted E - Commerce Marketing Using Fuzzy Intelligent Agents ,  IEEE Intelligent 

Systems , November/December  2000 , pp.  42  –  45 .  

    Yeung ,   D.  S.  ,    E.  C.  C.    Tsang  ,   A  Comparative  Study  on  Similarity - Based  Fuzzy  Reasoning 
Methods ,   IEEE  Transactions  on  System,  Man,  and  Cybernetics ,  Vol.   27 ,  No.   2 ,   1997 ,  pp. 
 216  –  227 .  

    Zadeh ,  L. A.  ,  Knowledge Representation in Fuzzy Logic ,  IEEE Transactions on Knowledge and 

Data Engineering , Vol.  1 , No.  1 ,  1989 , pp.  89  –  99 .  

    Zadeh ,  L. A.  ,  Fuzzy Logic  =  Computing with Words ,  IEEE Transactions on Fuzzy Systems , Vol. 

 4 , No.  2 ,  1996 , pp.  103  –  111 .   

  CHAPTER 15 

    Barry ,  A. M. S.  ,  Visual Intelligence ,  State University of New York Press ,  New York ,  1997 .  
    Bohlen ,  M.  ,  3D Visual Data Mining — Goals and Experiences ,  Computational Statistics  &  Data 

Analysis , Vol.  43 , No.  4 ,  2003 , pp.  445  –  469 .  

    Buja ,  A.  ,   D.   Cook  ,   D. F.   Swayne  ,  Interactive High - Dimensional Data Visualization ,  1996 ,  http://

www.research.att.com/andreas/xgobi/heidel .  

    Chen ,  C.  ,   R. J.   Paul  ,  Visualizing a Knowledge Domain ’ s Intellectual Structure ,  Computer , Vol. 

 36 , No.  3 ,  2001 , pp.  65  –  72 .  

    Draper ,   G.  M.  ,    L.  Y.    Livnat  ,    R.  F.    Riesenfeld  ,   A  Survey  of  Radial  Methods  for  Information 
Visualization ,  IEEE Transactions on Visualization and Computer Graphics , Vol.  15 , No.  5 , 
 2009 , pp.  759  –  776 .  

    Eick ,  S. G.  ,  Visual Discovery and Analysis ,  IEEE Transactions on Visualization and Computer 

Graphics , Vol.  6 , No.  1 ,  2000a , pp.  44  –  57 .  

    Eick ,   S.  G.  ,   Visualizing  Multi - Dimensional  Data ,   Computer  Graphics ,  Vol.   34 ,   2000b ,  pp. 

 61  –  67 .  

    Elmqvist ,   N.  ,    J.    Fekete  ,   Hierarchical  Aggregation  for  Information  Visualization:  Overview, 
Techniques  and  Design  Guidelines ,   IEEE  Transactions  on  Visualization  and  Computer 
Graphics , Vol.  16 , No.  3 ,  2010 , pp.  439  –  454 .  

528 

BIBLIOGRAPHY

    Estrin ,  D.  , et al.,  Network Visualization with Nam, the VINT Network Animator ,  Computer , Vol. 

 33 , No.  11 ,  2000 , pp.  63  –  68 .  

    Faloutsos ,  C.  ,   K.   Lin  ,  FastMap: A Fast Algorithm for Indexing, Data - Mining and Visualization 
of Traditional and Multimedia Datasets ,  Proceedings of SIGMOD ’ 95 Conference , San Jose, 
 1995 , pp.  163  –  174 .  

    Fayyad ,   U.  ,    G.    Georges  Grinstein  ,    A.    Wierse  ,   Information  Visualization  in  Data  Mining  and 

Knowledge Discovery ,  1st  edition,  Morgan Kaufmann ,  San Francisco, CA ,  2001 .  

    Fayyad ,   U.  M.  ,    G.  G.    Grinstein  ,    A.    Wierse  ,   Information  Visualization  in  Data  Mining  and 

Knowledge Discovery ,  Academic Press ,  San Diego ,  2002a .  

    Fayyad ,   U.  ,    G.  G.    Grinstein  ,    A.    Wierse  ,  eds.,   Information  Visualization  in  Data  Mining  and 

Knowledge Discovery ,  Morgan Kaufmann Publishers ,  San Francisco, CA ,  2002b .  

    Ferreira de Oliveira ,  M. C.  ,   H.   Levkowitz  ,  From Visual Data Exploration to Visual Data Mining: 
A Survey ,  IEEE Transactions on Visualization and Computer Graphics , Vol.  9 , No.  3 ,  2003 , 
pp.  378  –  394 .  

    Gallaghar ,   R.  S.  ,   Computer  Visualization:  Graphics  Techniques  for  Scientiﬁ c  and  Engineering 

Analysis ,  CRC Press ,  Inc., Boca Raton, FL ,  1995 .  

    Hinneburg ,  A.  ,   D. A.   Keim  ,   M.   Wawryniuk  ,  HD - Eye: Visual Mining of High - Dimensional Data , 

 IEEE Computer Graphics and Applications , Vol.  19 ,  1999 , pp.  22  –  31 .  

    Hofman ,  P.  ,  Radviz ,  1997 ,  http:www.cs.uml.edu/phoffman/viz .  
   IBM ,  Parallel Visual Explorer at Work in the Money Market ,  1997 ,  http://www.ibm.com/news/

950203/pve - 03html .  

    Inselberg ,   A.  ,    B.    Dimsdale  ,   Visualizing  Multi - Variate  Relations  with  Parallel  Coordinates , 
 Proceedings  of  the  Third  International  Conference  on  Human - Computer  Interaction ,  New 
York,  1989 , pp.  460  –  467 .  

    Mackinlay ,   J.  D.  ,   Opportunities  for  Information  Visualization ,   IEEE  Computer  Graphics  and 

Applications , Vol.  20 ,  2000 , pp.  22  –  23 .  

    Masseglia ,  F.  ,   P.   Poncelet  ,   T.   Teisseire  ,  Successes and New Directions in Data Mining ,  Idea Group 

Inc. ,  Hershey, PA ,  2007 .  

    Plaisant ,   C.  ,  The  Challenge  of  Information Visualization  Evaluation ,   IEEE  Proc.  of Advanced 

Visual Interfaces , Gallipoli, Italy,  2004 , pp.  109  –  116 .  

    Pu ,   P.  ,    G.    Melissargos  ,   Visualizing  Resource Allocation  Tasks ,   IEEE  Computer  Graphics  and 

Applications , Vol.  4 ,  1997 , pp.  6  –  9 .  

    Roth ,  S. F.  ,   M. C.   Chuah  ,   S.   Kerpedjiev  ,   J. A.   Kolojejchick  ,   P.   Lukas  ,  Towards an Information 
Visualization  Workspace:  Combining  Multiple  Means  of  Expressions ,   Human - Computer 
Interaction Journal , Vol.  12 ,  1997 , pp.  61  –  70 .  

    Spence ,  R.  ,  Information Visualization ,  Addison Wesley ,  Harlow, UK ,  2001 .  
    Tergan ,   S.  ,    T.    Keller  ,   Knowledge  and  Information  Visualization:  Searching  for  Synergies , 

 Springer ,  Secaucus, NJ ,  2005 .  

    Thomsen ,  E.  ,  OLAP Solution: Building Multidimensional Information System ,  John Wiley ,  New 

York ,  1997 .  

    Tufte ,  E. R.  ,  Beautiful Evidence ,  2nd  edition,  Graphic Press, LLC ,  CT ,  2007 .  
   Two  Crows  Corp. ,   Introduction  to  Data  Mining  and  Knowledge  Discovery ,   Two  Crows 

Corporation ,  Maryland ,  2005 .  

    Wong ,   P.  C.  ,   Visual  Data  Mining ,   IEEE  Computer  Graphics  and  Applications ,  Vol.   14 ,   1999 , 

pp.  20  –  21 .

INDEX

A posterior distribution  146
A priori algorithm  283
Partition-based  287
Sampling-based  287
Incremental updating  287
Concept hierarchy  288

A prior distribution  146
A priori knowledge  5, 88
Approximating functions  90
Activation function  201
Agglomerative clustering algorithms  260
Aggregation  16
Allela  386
Alpha cut  419
Alternation  396
Analysis of variance (ANOVA)  150, 155
Anchored visualization  457
Andrews’s curve  452
Approximate reasoning  430
Approximation by rounding  76
Artiﬁ cial neural network (ANN)  105, 199
Artiﬁ cial neural network, architecture  205

feedforward  205
recurrent  205
Competitive  221
Self-organizing map (SOM)  225

Artiﬁ cial neuron  202
Association rules  105, 280

Apriori  283
FPgrowth  288
Classiﬁ cation based on multiple association 

rules (CMAR)  290
Asymptotic consistency  94
Autoassociation  211
Authorities  305

Bar chart  450
Bayesian inference  146
Bayesian networks  370
Bayes theorem  147
Binary features  255
Bins  74
Bins cutoff  74
Bootstrap method  125
Boxplot  144
Building blocks  402

Candidate counting  283
Candidate generation  283
Cardinality  419
Cases reduction  104
Causality  369
Censoring  41
Centroid  252, 263
Chameleon  262
Change detection  3, 104
Chernoff’s faces  453
ChiMerge technique  77
Chi-squared test  79, 161
Chromozome  386
Circular coordinates  458
City block distance  254
Classiﬁ cation  3
CART  189
C4.5  185
ID3  172
k-NN  118
SVM  105

Classiﬁ er  118, 139, 240
CLS  173
Cluster analysis  105, 249

Data Mining: Concepts, Models, Methods, and Algorithms, Second Edition. Mehmed Kantardzic.
© 2011 by Institute of Electrical and Electronics Engineers. Published 2011 by John Wiley & Sons, Inc.

529

530 

INDEX

Cluster feature vector (CF)  268
Clustering  3, 250
BIRCH  272
DBSCAN  270
Validation  275
k-means  264
k-medoids  266
Incremental  266
Using genetic algorithms  409

Clustering tree  252
Competitive learning rule  221
Complete-link method  260
Conﬁ dence  282, 291
Conﬁ rmatory visualization  450
Confusion matrix  126
Contingency table  77, 159
Control theory  5, 208
Core  419
Correlation coefﬁ cient  154
Correspondence analysis  159
Cosine correlation  255
Covariance matrix  45, 62
Crisp approximation  438
Crossover  392
Curse of dimensionality  29

Data cleansing  15
Data scrubbing  15
Data collection  7
Data constellations  454
Data cube  451
Data discovery  6
Data integration  15
Data mart  14
Data mining  2
Privacy  377
Security  379
Regal aspects  378
Data mining process  6
Data mining roots  4
Data mining tasks  3
Data preprocessing  8
Data quality  13
Data set  2
Iris  72
messy  32
preparation  33
quality  13
raw  32

semistructured  11
structured  11
temporal  28
time-dependent  37
transformation  15
unstructured  11

Data set dimensions  54

cases  54
columns  54
feature values  54

Data sheet  454
Data smoothing  34
Data types,

alphanumeric  11
categorical  27
dynamic  28
numeric  11, 26
symbolic  27
Data warehouse  14
Data representation  26, 395
Decimal scaling  33
Decision node  173
Decision rules  105, 185
Decision tree  105,183
Deduction  88
Default class  188
Defuzziﬁ cation  433
Delta rule  208
Dendogram  262
Dependency modeling  3, 103
Descriptive accuracy  55
Descriptive data mining  2
Designed experiment  7
Deviation detection  3, 104
Differences  35
Dimensional stacking  454
Directed acyclic graph (DAG)  371
Discrete optimization  388
Discrete Fourier Transform  348
Discrete Wavelet Transform  348
Discriminant function  163
Distance error  75
Distance measure  254
Distributed data mining  360
Distributed DBSCAN  366

Divisible clustering algorithms  260
Document visualization  319
Domain-speciﬁ c knowledge  7
Don’t care symbol  400

INDEX 

531

Eigenvalue  72
Eigenvector  72
Empirical risk  94
Empirical risk minimization (ERM)  94
Encoding  8
Encoding scheme  389
Ensemble learning  235

Bagging  241
Boosting  242
AdaBoost  243

Entropy  70
Error back-propagation algorithm  214
Error energy  208
Error-correction learning  208
Error rate  126
Euclidean distance  65, 69, 120, 254
Exponential moving average  39
Exploratory analysis  2
Exploratory visualizations  450
Extension principle  426

False acceptance rate (FAR)  130
False reject rate (FRT)  130
Fault tolerance  201
Feature discretization  79
Features composition  58
Features ranking  59
Features reduction  56
Features selection  57

Relief  66

Filtering data  212
First-principle models  1
Fitness evaluation  390
Free parameters  100, 207
F-list  291
FP-tree  281
Function approximation  211
Fuzzy inference systems  105
Fuzzy logic  429
Fuzzy number  420
Fuzzy relation  425
containment  425
equality  425
Fuzzy rules  430
Fuzzy set  415
Fuzzy set operation  420
complement  421
cartesian product  421
concentration  424

dilation  424
intersection  420
normalization  424
union  420
Fuzziﬁ cation  433

Gain function  175
Gain-ratio function  180
Gaussian membership function  418
Gene  386
Generalization  95, 122, 219, 288, 301
Generalized Apriori  171
Generalized modus ponens  431
Genetic algorithm  105, 386
Genetic operators  387, 390

crossover  392
mutation  393
selection  390

Geometric projection visualization  451
GINI index  189
Glyphs  453
Gradviz  460
Graph mining  329
Centrality  336
Closeness  336
Betweenness  336
Graph compression  341
Graph clustering  341
Gray coding  390
Greedy optimization  97
Grid-based rule  436
Growth function  95

Hamming distance  422
Hamming networks  223
Hard limit function  203
Heteroassociation  211
Hidden node  217
Hierarchical clustering  252
Hierarchical visualization techniques  454
Histogram  450
Holdout method  125
Hubs  305
Hyperbolic tangent sigmoid  203
Hypertext  317

Icon-based visualization  453
Induction  88
Inductive-learning methods  97

532 

INDEX

Inductive machine learning  89
Inductive principle  93
Info function  175
Information visualization  450
Information retrieval (IR)  304
Initial population  395
Interesting association rules  286
Internet searching  316
Interval scale  27
Inverse document frequency  317
Itemset  283

Jaccard coefﬁ cient  256

Kernel function  114
Knowledge distillation  318

Large data set  9
Large itemset  283
Large reference sequence  312
Lateral inhibition  222
Latent semantic analysis (LSA)  320
Learning machine  89
Learning method  89
Learning process  88
Learning tasks  101
Learning theory  93
Learning rate  209
Learning system  99
Learning with teacher  99
Learning without teacher  99
Leave-one-out method  125
Lift chart  126
Line chart  450
Linear discriminant analysis (LDA)  162
Linguistic variable  424
Local gradient  216
Locus  386
Logical classiﬁ cation models  173
Log-linear models  158
Log-sigmoid function  203
Longest common sequence (LCS)  349
Loss function  92

Market basket analysis  281
Markov Model (MM)  351

Hidden Markov Model (HMM)  351

Max-min composition  428
MD-pattern  294
Mean  34, 44, 60, 143
Median  143
Membership function  416
Metric distance measure  254
Minkowski metric  255
Min-max normalization  33
Misclassiﬁ cation  92
Missing data  36
Mode  143
Model  6

estimation  126
selection  122
validation  126
veriﬁ cation  126

Momentum constant  218
Moving average  32
Multidimensional association rules  293
Multifactorial evaluation  433
Multilayer perceptron  213
Multiple discriminant analysis  164
Multiple regression  152
Multiscape  454
Mutual neighbor distance (MND)  258

Naïve Bayesian classiﬁ er  147
N-dimensional data  101
N-dimensional space  101
N-dimensional visualization  105
N-fold cross-validation  125
Necessity measure  423
Negative border  285
Neighbor number (NN)  258
Neuro-Fuzzy system  442
Nominal scale  27
Normalization  33
NP hard problem  47
Null hypothesis  142

Machine learning  4
Mamdani model  436
Manipulative visualization  450
Multivariate analysis of variance (MANOVA) 

156

Objective function  110, 388
Observational approach  7
OLAP (Online analytical processing)  17
Optimization  98
Ordinal scale  28
Outlier analysis  41

INDEX 

533

Outlier detection  7, 42
Outlier detection, distance based  45
Overﬁ tting (overtraining)  97

PageRank algorithm  313
Parabox  454
Parallel coordinates  455
Parameter identiﬁ cation  5
Partially matched crossover (PMC)  403
Partitional clustering  263
Pattern  6
Pattern association  211
Pattern recognition  211
Pearson correlation coefﬁ cient  61
Perception  488
Perceptron  200
Pie chart  451
Piecewise aggregate approximation (PAA) 

346

Pixel-oriented visualization  453
Population  141, 390
Possibility measure  423
Postpruning  184
Prediction  2
Predictive accuracy  124
Predictive data mining  2
Predictive regression  149
Prepruning  184
Principal Component Analysis (PCA)  70
Principal components  64
Projected database  292
Pruning decision tree  184

Radial visualization (Radviz)  460
Random variable  150
Rao’s coefﬁ cient  256
Ratio scale  27
Ratios  35
Receiver operating characteristic (ROC)  130
Receiver operating characteristic (ROC) 

curve  130

Regression  3,102
Logistic  157
Linear  150
Nonlinear  153
Multiple  152

Regression equation  150
Resampling methods  124, 150
Resubstitution method  125

Return on investment (ROI) chart  129
Risk functional  92
Rotation method  125
RuleExchange  408
RuleGeneralization  408
RuleSpecialization  408
RuleSplit  408

Sample  6
Sampling  81
average  82
incremental  82
inverse  83
random  82
stratiﬁ ed  83
systematic  82

Saturating linear function  203
Scaling  8
Scatter plot  451
Schemata  399
ﬁ tness  401
length  401
order  400

Scientiﬁ c visualization  449
Scrubbing  15
Sensitivity  98
Sequence  311
Sequence mining  311
Sequential pattern  351
Similarity measure  68, 253, 349
Simple matching coefﬁ cient (SMC)  256
Single-link method  260
Smoothing data  212
Spatial data mining  357

Autoregressive model  359
Spatial outlier  359

Speciﬁ city  131
Split-info function  182
SQL (Structured query language)  17
SSE (Sum of squares of the errors)  150
Standard deviation  34, 43, 144
Star display  453
Statistics  4
Statistical dependency  91
Statistical inference  140
Statistical learning theory (SLT)  93
Statistical methods  105
Statistical testing  142
Stochastic approximation  97

534 

INDEX

Stopping rules  98
Strong rules  282
Structure identiﬁ cation  5
Structural risk minimization (SRM)  96
Summarization  3, 103
Supervised learning  99
Support  282, 291, 339, 354, 419
Survey plot  452
Survival data  41
Synapse  201
System identiﬁ cation  5

Tchebyshev distance  422
Temporal data Mining  343

Sequences  344
Time series  344
Test of hypothesis  142
Testing sample  119, 192
Text analysis  316
Text database  316
Text mining  316
Text-reﬁ ning  319
Time lag (time window)  37
Time series, multivariate  40
Time series, univariate  40
Training sample  94, 214, 239
Transduction  88
Traveling salesman problem (TSP) 

402

Trial and error  6
True risk functional  94

Ubiquitous data mining  356
Underﬁ tting  97
Unobserved inputs  13
Unsupervised learning  99

Value reduction  73
Variables  12

continuous  27
discrete  27
categorical  27
dependent  12
independent  12
nominal  27
numeric  26
ordinal  28
periodic  28
unobserved  13

Variance  61
Variogram cloud technique  359
Vapnik-Chervonenkis (VC) theory 

93

Vapnik-Chervonenkis (VC) dimension 

95

Visual clustering  466
Visual data mining  449
Visualization  448
Visualization tool  450
Voronoi diagram  119

Web mining  300
content  302
HITS(Hyperlink-Induced Topic Search) 

algorithm  306

LOGSOM algorithm  308
path-traversal patterns  310
structure  304
usage  304

Web page content  301
Web page design  301
Web page quality  302
Web site design  301
Web site structure  302
Widrow-Hoff rule  208
Winner-take-all rule  222, 227

XOR problem  206

